diff --git a/monitor/grafana/provisioning/_dashboard_generator/generate_wa-status_dashboard.py b/monitor/grafana/provisioning/_dashboard_generator/generate_wa-status_dashboard.py index a0c4237..d10f29f 100755 --- a/monitor/grafana/provisioning/_dashboard_generator/generate_wa-status_dashboard.py +++ b/monitor/grafana/provisioning/_dashboard_generator/generate_wa-status_dashboard.py @@ -130,7 +130,7 @@ def replace_output_single(outHandle, **kwargs): expr = 'count(probe_http_status_code{job=\\"' + kwargs['job'] + '\\"} != 200) OR vector(0)' templateCode = templateCode.replace('', expr) elif kwargs['title'] == 'trackdb refresh': - expr = 'sum((time() - trackdb_refresh_timestamp) / (60*60) > 24) OR vector(0)' + expr = '(time() - trackdb_refresh_timestamp) / (60*60)' templateCode = templateCode.replace('', expr) elif kwargs['title'] == 'trackdb numFound': expr = 'sum(trackdb_numFound - (trackdb_numFound offset 1d))' @@ -210,10 +210,10 @@ def main(): replace_output_single(outHandle, pnl = panelStat, job = 'infrastructure', title = 'Mem', h=2, w=2, x=14, y=10) replace_output_title(outHandle, pnl=panelTitle, job='wa_services', title='WA Services', h=1, w=24, x=0, y=12) - replace_output_single(outHandle, pnl=panelStat, job='trackdb', title='trackdb refresh', h=2, w=3, x=0, y=13, textmode='value', threshold2='22', threshold3='24') + replace_output_single(outHandle, pnl=panelStat, job='trackdb', title='trackdb refresh', h=2, w=3, x=0, y=13, textmode='value', threshold2='22', threshold3='26') # output last panel with final ',' removed to make output json valid # replace_output_single(outHandle, pnl=panelSingle, job='trackdb', title='trackdb numFound', h=2, w=3, x=3, y=13, thresholds='10,100', colour1='#D44A3A', colour3='#299C46', lastPanel=True) - replace_output_single(outHandle, pnl=panelStat, job='trackdb', title='trackdb numFound', h=2, w=3, x=3, y=13, textnode='value', threshold2='10', threshold3='100', colour1='#D44A3A', colour3='#299C46', lastPanel=True) + replace_output_single(outHandle, pnl=panelStat, job='trackdb', title='trackdb numFound', h=2, w=3, x=3, y=13, textmode='value', threshold2='10', threshold3='100', colour1='#D44A3A', colour3='#299C46', lastPanel=True) # amend dashboard values output(outHandle, pnl = panelFooter) diff --git a/monitor/grafana/provisioning/_dashboard_generator/templates/panelStat b/monitor/grafana/provisioning/_dashboard_generator/templates/panelStat index 625809b..cd2cdf5 100644 --- a/monitor/grafana/provisioning/_dashboard_generator/templates/panelStat +++ b/monitor/grafana/provisioning/_dashboard_generator/templates/panelStat @@ -51,7 +51,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" diff --git a/monitor/grafana/provisioning/dashboards/wa_status.json b/monitor/grafana/provisioning/dashboards/wa_status.json index a7bd762..b0aa118 100644 --- a/monitor/grafana/provisioning/dashboards/wa_status.json +++ b/monitor/grafana/provisioning/dashboards/wa_status.json @@ -85,7 +85,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -161,7 +161,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -237,7 +237,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -313,7 +313,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -389,7 +389,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -479,7 +479,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -555,7 +555,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -631,7 +631,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -780,7 +780,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -856,7 +856,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -932,7 +932,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1022,7 +1022,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1098,7 +1098,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1174,7 +1174,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1250,7 +1250,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1326,7 +1326,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1402,7 +1402,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1492,7 +1492,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1568,7 +1568,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1644,7 +1644,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1720,7 +1720,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1810,7 +1810,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1886,7 +1886,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1962,7 +1962,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2038,7 +2038,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2128,7 +2128,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2204,7 +2204,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2280,7 +2280,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2356,7 +2356,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2432,7 +2432,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2522,7 +2522,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2598,7 +2598,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2674,7 +2674,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2750,7 +2750,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2804,7 +2804,7 @@ "color": "#ED8027" }, { - "value": 24, + "value": 26, "color": "#D44A3A" } ] @@ -2840,7 +2840,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "value", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2848,7 +2848,7 @@ "pluginVersion": "7.1.3", "targets": [ { - "expr": "sum((time() - trackdb_refresh_timestamp) / (60*60) > 24) OR vector(0)", + "expr": "(time() - trackdb_refresh_timestamp) / (60*60)", "legendFormat": "", "interval": "", "format": "time_series", @@ -2916,7 +2916,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "value", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" diff --git a/monitor/grafana/provisioning/dashboards/wa_status.json-template b/monitor/grafana/provisioning/dashboards/wa_status.json-template index 35d3eac..e10f160 100644 --- a/monitor/grafana/provisioning/dashboards/wa_status.json-template +++ b/monitor/grafana/provisioning/dashboards/wa_status.json-template @@ -85,7 +85,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -161,7 +161,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -237,7 +237,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -313,7 +313,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -389,7 +389,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -479,7 +479,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -555,7 +555,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -631,7 +631,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -780,7 +780,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -856,7 +856,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -932,7 +932,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1022,7 +1022,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1098,7 +1098,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1174,7 +1174,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1250,7 +1250,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1326,7 +1326,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1402,7 +1402,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1492,7 +1492,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1568,7 +1568,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1644,7 +1644,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1720,7 +1720,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1810,7 +1810,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1886,7 +1886,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -1962,7 +1962,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2038,7 +2038,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2128,7 +2128,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2204,7 +2204,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2280,7 +2280,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2356,7 +2356,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2432,7 +2432,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2522,7 +2522,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2598,7 +2598,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2674,7 +2674,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2750,7 +2750,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "none", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2804,7 +2804,7 @@ "color": "#ED8027" }, { - "value": 24, + "value": 26, "color": "#D44A3A" } ] @@ -2840,7 +2840,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "value", "colorMode": "background", "graphMode": "none", "justifyMode": "auto" @@ -2848,7 +2848,7 @@ "pluginVersion": "7.1.3", "targets": [ { - "expr": "sum((time() - trackdb_refresh_timestamp) / (60*60) > 24) OR vector(0)", + "expr": "(time() - trackdb_refresh_timestamp) / (60*60)", "legendFormat": "", "interval": "", "format": "time_series", @@ -2916,7 +2916,7 @@ "fields": "" }, "orientation": "horizontal", - "textMode": "", + "textMode": "value", "colorMode": "background", "graphMode": "none", "justifyMode": "auto"