Style-check for monitoring scripts
[bottlenecks.git] / monitor / automated_dashboard_datasource.py
similarity index 95%
rename from monitor/automated-dashboard-datasource.py
rename to monitor/automated_dashboard_datasource.py
index 69f3ebe..ee60504 100644 (file)
@@ -23,7 +23,7 @@ def _create_dashboard(ip, port, path):
         data = jsonutils.load(f)
     try:
         post(url, {"dashboard": data})
-        logger.info( "Trying to post dashboard json!")
+        logger.info("Trying to post dashboard json!")
     except Exception:
         logger.info("Create dashboard failed")
         raise
@@ -66,6 +66,6 @@ ip_address = socket.gethostbyname(socket.gethostname())
 _create_data_source(ip_address, 3000)
 _create_dashboard(ip_address, 3000, '/var/lib/grafana/' +
                   'dashboards/' +
-                  'prometheus-system_rev1.json')
+                  'prometheus_system_rev1.json')
 _create_dashboard(ip_address, 3000,
                   'prototype_dashboard_collapsible.json')