diff --git a/grafana/dashboard.py b/grafana/dashboard.py index cdcee89..c68d7c9 100644 --- a/grafana/dashboard.py +++ b/grafana/dashboard.py @@ -191,17 +191,19 @@ ts("Backlogs", [prom('max(ipx_deadair_backlog{job="ipx"})', legend="DeadAir to l prom('sum(increase(ipx_events_missed_total{job="ipx"}[$__rate_interval]))', ref="D", legend="live updates missed")], 16, w=8) y += 8 -ts("DeadAir on a file", [prom('max(ipx_deadair_busy_seconds{job="ipx"})', legend="for")], 0, w=8, unit="s", +ts("DeadAir on a file", [prom('max(ipx_deadair_busy_seconds{job="ipx"})', legend="for")], 0, w=12, unit="s", desc="How long DeadAir has been on the file it is analysing; a few seconds each.") ts("Artwork", [prom('max(ipx_art_cache_bytes{job="ipx"}) / max(ipx_art_cache_limit_bytes{job="ipx"})', legend="full"), prom('sum(increase(ipx_art_requests_total{job="ipx", result="hit"}[$__rate_interval])) / ' - 'sum(increase(ipx_art_requests_total{job="ipx"}[$__rate_interval]))', ref="B", legend="served from disk")], - 8, w=8, unit="percentunit", + 'sum(increase(ipx_art_requests_total{job="ipx"}[$__rate_interval]))', ref="B", legend="served from disk"), + prom('sum(increase(ipx_art_evicted_total{job="ipx"}[$__rate_interval]))', ref="C", legend="images evicted")], + 12, w=12, unit="percentunit", desc="Full sits near 100% once the cache has filled, since each sweep trims it to fit. Served from disk is the hit rate: " - "the rest was fetched from the publisher.") -ts("Artwork evicted", [prom('sum(increase(ipx_art_evicted_total{job="ipx"}[$__rate_interval]))', legend="images")], - 16, w=8, bars=True, - desc="Images each sweep threw out to stay under the limit. Many at every sweep, with a falling hit rate, means the limit is too small.") + "the rest was fetched from the publisher. Evicted, on the right, is images each sweep threw out to stay under the " + "limit: many at every sweep, with a falling hit rate, means the limit is too small.")["fieldConfig"]["overrides"] = [ + {"matcher": {"id": "byName", "options": "images evicted"}, + "properties": [{"id": "unit", "value": "short"}, {"id": "custom.axisPlacement", "value": "right"}, + {"id": "custom.drawStyle", "value": "bars"}, {"id": "custom.fillOpacity", "value": 60}]}] y += 8 # ---- Traces