{ "uid": "scrobbler-federation", "title": "Scrobbler: Federation", "description": "ActivityPub: how the fediverse finds and talks to users sharing their listening. Empty unless FEDERATION_ENABLED is on.", "tags": [ "scrobbler" ], "timezone": "browser", "editable": true, "graphTooltip": 1, "refresh": "30s", "time": { "from": "now-6h", "to": "now" }, "schemaVersion": 41, "version": 1, "templating": { "list": [] }, "annotations": { "list": [] }, "links": [ { "type": "dashboards", "tags": [ "scrobbler" ], "asDropdown": true, "title": "Scrobbler", "includeVars": false } ], "panels": [ { "type": "row", "title": "Discovery", "id": 1, "collapsed": false, "gridPos": { "x": 0, "y": 0, "w": 24, "h": 1 }, "panels": [] }, { "type": "timeseries", "title": "Lookups / min by kind", "description": "WebFinger, actor, NodeInfo and profile-page lookups. 'not_found' covers both unknown users and users not sharing.", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (kind, result) (rate(scrobbler_federation_lookups_total[$__rate_interval])) * 60", "legendFormat": "{{kind}} {{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": 2, "gridPos": { "x": 0, "y": 1, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Sharing switched on / off", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (change) (increase(scrobbler_federation_sharing_changes_total[$__rate_interval]))", "legendFormat": "{{change}}", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "short", "custom": { "lineWidth": 1, "fillOpacity": 70, "showPoints": "never", "spanNulls": true, "drawStyle": "bars" }, "min": 0 }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "id": 3, "gridPos": { "x": 12, "y": 1, "w": 12, "h": 8 } }, { "type": "row", "title": "Traffic", "id": 4, "collapsed": false, "gridPos": { "x": 0, "y": 9, "w": 24, "h": 1 }, "panels": [] }, { "type": "timeseries", "title": "Federation requests / s by endpoint", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (endpoint) (rate(scrobbler_http_requests_total{endpoint=~\"(federation|Federation)[.].*\"}[$__rate_interval]))", "legendFormat": "{{endpoint}}", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "reqps", "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": 5, "gridPos": { "x": 0, "y": 10, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "p95 latency by endpoint", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.95, sum by (le, endpoint) (rate(scrobbler_http_request_duration_seconds_bucket{endpoint=~\"(federation|Federation)[.].*\"}[$__rate_interval])))", "legendFormat": "{{endpoint}}", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "s", "custom": { "lineWidth": 2, "fillOpacity": 10, "showPoints": "never", "spanNulls": true }, "min": 0 }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "id": 6, "gridPos": { "x": 12, "y": 10, "w": 12, "h": 8 } }, { "type": "row", "title": "Followers", "id": 7, "collapsed": false, "gridPos": { "x": 0, "y": 18, "w": 24, "h": 1 }, "panels": [] }, { "type": "stat", "title": "Followers", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max(scrobbler_federation_followers{state=\"accepted\"})", "legendFormat": "__auto", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "short", "thresholds": { "mode": "absolute", "steps": [ { "color": "text", "value": null } ] } }, "overrides": [] }, "options": { "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "colorMode": "value", "graphMode": "area", "textMode": "auto", "justifyMode": "auto" }, "id": 8, "gridPos": { "x": 0, "y": 19, "w": 6, "h": 5 } }, { "type": "stat", "title": "Follow requests waiting", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max(scrobbler_federation_followers{state=\"pending\"})", "legendFormat": "__auto", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "short", "thresholds": { "mode": "absolute", "steps": [ { "color": "text", "value": null } ] } }, "overrides": [] }, "options": { "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "colorMode": "value", "graphMode": "area", "textMode": "auto", "justifyMode": "auto" }, "id": 9, "gridPos": { "x": 6, "y": 19, "w": 6, "h": 5 } }, { "type": "stat", "title": "Deliveries waiting", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max(scrobbler_federation_queue{queue=\"deliveries\",status=\"pending\"})", "legendFormat": "__auto", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "short", "thresholds": { "mode": "absolute", "steps": [ { "color": "text", "value": null }, { "color": "orange", "value": 50 }, { "color": "red", "value": 100 } ] } }, "overrides": [] }, "options": { "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "colorMode": "value", "graphMode": "area", "textMode": "auto", "justifyMode": "auto" }, "id": 10, "gridPos": { "x": 12, "y": 19, "w": 6, "h": 5 } }, { "type": "stat", "title": "Inbox waiting", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max(scrobbler_federation_queue{queue=\"inbox\",status=\"queued\"})", "legendFormat": "__auto", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "short", "thresholds": { "mode": "absolute", "steps": [ { "color": "text", "value": null }, { "color": "orange", "value": 10 }, { "color": "red", "value": 50 } ] } }, "overrides": [] }, "options": { "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "colorMode": "value", "graphMode": "area", "textMode": "auto", "justifyMode": "auto" }, "id": 11, "gridPos": { "x": 18, "y": 19, "w": 6, "h": 5 } }, { "type": "row", "title": "Inbox", "id": 12, "collapsed": false, "gridPos": { "x": 0, "y": 24, "w": 24, "h": 1 }, "panels": [] }, { "type": "timeseries", "title": "Activities received / min", "description": "queued/duplicate/blocked/invalid at intake; processed/rejected/failed after verification.", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (type, result) (rate(scrobbler_federation_inbox_activities_total[$__rate_interval])) * 60", "legendFormat": "{{type}} {{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": 13, "gridPos": { "x": 0, "y": 25, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Incoming signatures by result", "description": "Per minute. Anything but 'ok' is a delivery we refused; bad_signature after a refresh usually means a forged or broken sender.", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (scheme, result) (rate(scrobbler_federation_signatures_total{direction=\"in\"}[$__rate_interval])) * 60", "legendFormat": "{{scheme}} {{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": 14, "gridPos": { "x": 12, "y": 25, "w": 12, "h": 8 } }, { "type": "row", "title": "Deliveries", "id": 15, "collapsed": false, "gridPos": { "x": 0, "y": 33, "w": 24, "h": 1 }, "panels": [] }, { "type": "timeseries", "title": "Deliveries / min by result", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (result) (rate(scrobbler_federation_deliveries_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": [ { "matcher": { "id": "byName", "options": "delivered" }, "properties": [ { "id": "color", "value": { "mode": "fixed", "fixedColor": "green" } } ] }, { "matcher": { "id": "byName", "options": "retry" }, "properties": [ { "id": "color", "value": { "mode": "fixed", "fixedColor": "orange" } } ] }, { "matcher": { "id": "byName", "options": "abandoned" }, "properties": [ { "id": "color", "value": { "mode": "fixed", "fixedColor": "red" } } ] }, { "matcher": { "id": "byName", "options": "gone" }, "properties": [ { "id": "color", "value": { "mode": "fixed", "fixedColor": "purple" } } ] } ] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "id": 16, "gridPos": { "x": 0, "y": 34, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Delivery latency", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.50, sum by (le) (rate(scrobbler_federation_delivery_seconds_bucket[$__rate_interval])))", "legendFormat": "p50", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.95, sum by (le) (rate(scrobbler_federation_delivery_seconds_bucket[$__rate_interval])))", "legendFormat": "p95", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "s", "custom": { "lineWidth": 2, "fillOpacity": 10, "showPoints": "never", "spanNulls": true }, "min": 0 }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "id": 17, "gridPos": { "x": 12, "y": 34, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Queues", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max(scrobbler_federation_queue{queue=\"deliveries\",status=\"pending\"})", "legendFormat": "deliveries waiting", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max(scrobbler_federation_queue{queue=\"inbox\",status=\"queued\"})", "legendFormat": "inbox waiting", "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max(scrobbler_federation_queue{queue=\"inbox\",status=\"processing\"})", "legendFormat": "inbox processing", "refId": "C" } ], "fieldConfig": { "defaults": { "unit": "short", "custom": { "lineWidth": 2, "fillOpacity": 10, "showPoints": "never", "spanNulls": true }, "min": 0 }, "overrides": [] }, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "desc" } }, "id": 18, "gridPos": { "x": 0, "y": 42, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Outgoing signatures by scheme", "description": "Which scheme deliveries were finally sent with. rfc9421 means the first try got a 401 (double-knocking).", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (scheme) (rate(scrobbler_federation_signatures_total{direction=\"out\"}[$__rate_interval])) * 60", "legendFormat": "{{scheme}}", "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": 19, "gridPos": { "x": 12, "y": 42, "w": 12, "h": 8 } }, { "type": "row", "title": "Posts", "id": 20, "collapsed": false, "gridPos": { "x": 0, "y": 50, "w": 24, "h": 1 }, "panels": [] }, { "type": "timeseries", "title": "Posts / min by kind and visibility", "description": "Weekly summaries and milestones actually published.", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (kind, visibility) (rate(scrobbler_federation_posts_total[$__rate_interval])) * 60", "legendFormat": "{{kind}} {{visibility}}", "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": 21, "gridPos": { "x": 0, "y": 51, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Post deletions / min by reason", "description": "'manual' from the web UI, 'sharing_off' when a user turns sharing off.", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (reason) (rate(scrobbler_federation_post_deletions_total[$__rate_interval])) * 60", "legendFormat": "{{reason}}", "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": 22, "gridPos": { "x": 12, "y": 51, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Weekly summary checks / min by result", "description": "disabled, skipped_empty, already_posted or posted.", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (result) (rate(scrobbler_federation_weekly_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": 23, "gridPos": { "x": 0, "y": 59, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Milestone checks / min by result", "description": "disabled, none or posted.", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (result) (rate(scrobbler_federation_milestone_checks_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": 24, "gridPos": { "x": 12, "y": 59, "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 } } ] }