projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 1976: MON fails to collect disk metrics fixed
[osm/MON.git]
/
osm_mon
/
dashboarder
/
dashboarder.py
diff --git
a/osm_mon/dashboarder/dashboarder.py
b/osm_mon/dashboarder/dashboarder.py
index
68f339a
..
f3bd97e
100644
(file)
--- a/
osm_mon/dashboarder/dashboarder.py
+++ b/
osm_mon/dashboarder/dashboarder.py
@@
-146,6
+146,7
@@
class Dashboarder:
time.sleep(int(self.conf.get("dashboarder", "interval")))
continue
try:
time.sleep(int(self.conf.get("dashboarder", "interval")))
continue
try:
+ self.grafana_cleanup()
self.create_dashboards()
time.sleep(int(self.conf.get("dashboarder", "interval")))
except Exception:
self.create_dashboards()
time.sleep(int(self.conf.get("dashboarder", "interval")))
except Exception:
@@
-154,3
+155,10
@@
class Dashboarder:
def create_dashboards(self):
self.service.create_dashboards()
log.debug("Dashboarder Service > create_dashboards called!")
def create_dashboards(self):
self.service.create_dashboards()
log.debug("Dashboarder Service > create_dashboards called!")
+
+ def grafana_cleanup(self):
+ # Cleaning up non existing users from grafana
+ self.service.delete_non_existing_users()
+ # TODO
+ # Cleanup of teams from grafana
+ log.debug("Deleted non existing users from dashbaorder service")