From f3d2b5d5786e617ca4f3c6b702d777f24febd6cd Mon Sep 17 00:00:00 2001 From: Matthew Daubney Date: Sat, 26 Sep 2026 17:24:17 +0100 Subject: [PATCH] Dashboard panel for profile updates (phase 4, step 6) One new panel on the Federation dashboard's existing Posts row: profile updates/min by result (sent/throttled). now_playing posts already show up in the Posts / min by kind panel from phase 3, under kind="now_playing" - no changes needed there. No new alert: unlike weekly summaries, now playing is opt-in and most instances will have nobody using it, so there's no "should always be producing something" baseline to alert on the way FederationWeeklySummariesMissing does. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW --- deploy/grafana/dashboards/federation.json | 55 +++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/deploy/grafana/dashboards/federation.json b/deploy/grafana/dashboards/federation.json index d7616af..73af914 100644 --- a/deploy/grafana/dashboards/federation.json +++ b/deploy/grafana/dashboards/federation.json @@ -1189,6 +1189,61 @@ "w": 12, "h": 8 } + }, + { + "type": "timeseries", + "title": "Profile updates / min by result", + "description": "Now-playing Update(Person) pushes: sent, or throttled (still within the 5-minute window since the last one). Posts already appear in the Posts / min panel above, under kind=\"now_playing\".", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "expr": "sum by (result) (rate(scrobbler_federation_profile_updates_total[$__rate_interval])) * 60", + "legendFormat": "{{result}}", + "refId": "A" + } + ], + "fieldConfig": { + "defaults": { + "unit": "short", + "custom": { + "lineWidth": 2, + "fillOpacity": 40, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "mode": "normal", + "group": "A" + } + }, + "min": 0 + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "id": 25, + "gridPos": { + "x": 0, + "y": 67, + "w": 12, + "h": 8 + } } ] }