{ "uid": "scrobbler-album-art", "title": "Scrobbled: Album Art", "description": "Album art endpoint, background resolver and MusicBrainz / Cover Art Archive upstreams", "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": "Scrobbled", "includeVars": false } ], "panels": [ { "type": "row", "title": "Cache", "id": 1, "collapsed": false, "gridPos": { "x": 0, "y": 0, "w": 24, "h": 1 }, "panels": [] }, { "type": "stat", "title": "Cached: found", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max(scrobbler_art_cache{status=\"found\"})", "legendFormat": "__auto", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "short", "decimals": 0, "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": 2, "gridPos": { "x": 0, "y": 1, "w": 6, "h": 5 } }, { "type": "stat", "title": "Cached: not found", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max(scrobbler_art_cache{status=\"not_found\"})", "legendFormat": "__auto", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "short", "decimals": 0, "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": 3, "gridPos": { "x": 6, "y": 1, "w": 6, "h": 5 } }, { "type": "stat", "title": "Cached: error", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max(scrobbler_art_cache{status=\"error\"})", "legendFormat": "__auto", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "short", "decimals": 0, "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": 4, "gridPos": { "x": 12, "y": 1, "w": 6, "h": 5 } }, { "type": "stat", "title": "Oldest pending request", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max(scrobbler_art_oldest_pending_seconds)", "legendFormat": "__auto", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "s", "decimals": 0, "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": 5, "gridPos": { "x": 18, "y": 1, "w": 6, "h": 5 } }, { "type": "row", "title": "Endpoint", "id": 6, "collapsed": false, "gridPos": { "x": 0, "y": 6, "w": 24, "h": 1 }, "panels": [] }, { "type": "timeseries", "title": "Responses / min by result", "description": "queued = first sighting of an album; pending = still being resolved; unavailable = settled with no art; override = served from the user's own upload/correction.", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (result) (rate(scrobbler_art_requests_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": 7, "gridPos": { "x": 0, "y": 7, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Endpoint latency (p95) 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=~\"Art[.].*\"}[$__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": 8, "gridPos": { "x": 12, "y": 7, "w": 12, "h": 8 } }, { "type": "row", "title": "Worker", "id": 9, "collapsed": false, "gridPos": { "x": 0, "y": 15, "w": 24, "h": 1 }, "panels": [] }, { "type": "timeseries", "title": "Resolutions / min by result", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (source, result) (rate(scrobbler_art_resolutions_total[$__rate_interval])) * 60", "legendFormat": "{{source}} {{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": 10, "gridPos": { "x": 0, "y": 16, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Time to resolve one album (p50 / p95)", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.5, sum by (le) (rate(scrobbler_art_worker_resolve_seconds_bucket[$__rate_interval])))", "legendFormat": "p50", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.95, sum by (le) (rate(scrobbler_art_worker_resolve_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": 11, "gridPos": { "x": 12, "y": 16, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Cache rows by status", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max by (status) (scrobbler_art_cache)", "legendFormat": "{{status}}", "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": 12, "gridPos": { "x": 0, "y": 24, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Downloaded image size (p50 / p95)", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.5, sum by (le) (rate(scrobbler_art_image_bytes_bucket[$__rate_interval])))", "legendFormat": "p50", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.95, sum by (le) (rate(scrobbler_art_image_bytes_bucket[$__rate_interval])))", "legendFormat": "p95", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "bytes", "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": 13, "gridPos": { "x": 12, "y": 24, "w": 12, "h": 8 } }, { "type": "row", "title": "Upstreams", "id": 14, "collapsed": false, "gridPos": { "x": 0, "y": 32, "w": 24, "h": 1 }, "panels": [] }, { "type": "timeseries", "title": "Upstream latency (p95)", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.95, sum by (le, service) (rate(scrobbler_art_upstream_seconds_bucket[$__rate_interval])))", "legendFormat": "{{service}}", "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": 15, "gridPos": { "x": 0, "y": 33, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Upstream errors / min", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (service, error) (rate(scrobbler_art_upstream_errors_total[$__rate_interval])) * 60", "legendFormat": "{{service}} {{error}}", "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": 16, "gridPos": { "x": 12, "y": 33, "w": 12, "h": 8 } }, { "type": "row", "title": "Manual art", "id": 17, "collapsed": false, "gridPos": { "x": 0, "y": 41, "w": 24, "h": 1 }, "panels": [] }, { "type": "timeseries", "title": "Uploads / min by result", "description": "Anything other than ok was rejected: empty, too_large or bad_type.", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (result) (rate(scrobbler_art_uploads_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": 18, "gridPos": { "x": 0, "y": 42, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Accepted upload size (p50 / p95)", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.5, sum by (le) (rate(scrobbler_art_upload_bytes_bucket[$__rate_interval])))", "legendFormat": "p50", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.95, sum by (le) (rate(scrobbler_art_upload_bytes_bucket[$__rate_interval])))", "legendFormat": "p95", "refId": "B" } ], "fieldConfig": { "defaults": { "unit": "bytes", "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": 19, "gridPos": { "x": 12, "y": 42, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Manual actions / min", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (action) (rate(scrobbler_art_override_actions_total[$__rate_interval])) * 60", "legendFormat": "{{action}}", "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": 20, "gridPos": { "x": 0, "y": 50, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Correction outcomes / min", "description": "input is mbid (a release-group ID was given) or search (corrected text).", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (input, result) (rate(scrobbler_art_correction_resolutions_total[$__rate_interval])) * 60", "legendFormat": "{{input}} {{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": 21, "gridPos": { "x": 12, "y": 50, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Correction wait (p50 / p95)", "description": "From the user asking for a correction to the worker finishing it.", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.5, sum by (le) (rate(scrobbler_art_correction_wait_seconds_bucket[$__rate_interval])))", "legendFormat": "p50", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.95, sum by (le) (rate(scrobbler_art_correction_wait_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": 22, "gridPos": { "x": 0, "y": 58, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Worker time per correction (p95)", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.95, sum by (le) (rate(scrobbler_art_override_worker_seconds_bucket[$__rate_interval])))", "legendFormat": "corrections", "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "histogram_quantile(0.95, sum by (le) (rate(scrobbler_art_worker_resolve_seconds_bucket[$__rate_interval])))", "legendFormat": "shared lookups", "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": 23, "gridPos": { "x": 12, "y": 58, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "User art by kind and status", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max by (kind, status) (scrobbler_art_overrides)", "legendFormat": "{{kind}} {{status}}", "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": 0, "y": 66, "w": 12, "h": 8 } }, { "type": "timeseries", "title": "Own art vs shared art served / min", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "sum by (result) (rate(scrobbler_art_requests_total{result=~\"override|served\"}[$__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": 12, "y": 66, "w": 12, "h": 8 } }, { "type": "stat", "title": "Oldest pending correction", "description": "", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max(scrobbler_art_override_oldest_pending_seconds)", "legendFormat": "__auto", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "s", "decimals": 0, "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": 26, "gridPos": { "x": 0, "y": 74, "w": 6, "h": 5 } }, { "type": "stat", "title": "Albums needing manual art", "description": "Not found or errored in the shared cache, and not fixed by any user.", "datasource": { "type": "prometheus", "uid": "prometheus" }, "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "expr": "max(scrobbler_art_unresolved_albums)", "legendFormat": "__auto", "refId": "A" } ], "fieldConfig": { "defaults": { "unit": "short", "decimals": 0, "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": 27, "gridPos": { "x": 6, "y": 74, "w": 6, "h": 5 } } ] }