Update dashboard

main
Max Ignatenko 2024-05-21 17:02:36 +01:00
parent e6176a2217
commit 51986e34c6
1 changed files with 1105 additions and 898 deletions

View File

@ -1475,6 +1475,109 @@
"title": "1st party firehose", "title": "1st party firehose",
"type": "row" "type": "row"
}, },
{
"datasource": {
"type": "prometheus",
"uid": "${DS1}"
},
"description": "Percentage of time during the last 24h when connection to a given PDS was live",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 1,
"axisSoftMin": 0,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percentunit",
"unitScale": true
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 35
},
"id": 47,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true,
"sortBy": "Last *",
"sortDesc": false
},
"tooltip": {
"mode": "multi",
"sort": "asc"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS1}"
},
"editorMode": "code",
"expr": "label_replace(sum_over_time((clamp_max(sum by(remote) (consumer_connection_up{remote=~\"https://.*\\\\.bsky\\\\.(network|social)\"}), 1) )[24h:1m]) / 24 / 60, \"remote\", \"$1\", \"remote\", \"https://((?U).*)(\\\\.host\\\\.bsky\\\\.network)?\")",
"format": "time_series",
"instant": false,
"legendFormat": "{{remote}}",
"range": true,
"refId": "A"
}
],
"title": "Connection uptime over 24h",
"type": "timeseries"
},
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
@ -1578,7 +1681,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 35 "y": 44
}, },
"id": 10, "id": 10,
"options": { "options": {
@ -1697,7 +1800,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 35 "y": 44
}, },
"id": 14, "id": 14,
"options": { "options": {
@ -1835,7 +1938,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 44 "y": 53
}, },
"id": 32, "id": 32,
"options": { "options": {
@ -1857,7 +1960,7 @@
"uid": "${DS1}" "uid": "${DS1}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "label_replace(deriv(repo_commit_received_timestamp{job=\"consumer\",remote=~\"https://.*\\\\.bsky\\\\.(network|social)\"}[$rate_interval]), \"remote\", \"$1\", \"remote\", \"https://((?U).*)(\\\\\\\\.host\\\\\\\\.bsky\\\\\\\\.network)?\")", "expr": "label_replace(deriv(repo_commit_received_timestamp{job=\"consumer\",remote=~\"https://.*\\\\.bsky\\\\.(network|social)\"}[$rate_interval]), \"remote\", \"$1\", \"remote\", \"https://((?U).*)(\\\\.host\\\\.bsky\\\\.network)?\")",
"hide": false, "hide": false,
"legendFormat": "{{remote}}", "legendFormat": "{{remote}}",
"range": true, "range": true,
@ -1971,7 +2074,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 44 "y": 53
}, },
"id": 25, "id": 25,
"options": { "options": {
@ -2079,7 +2182,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 53 "y": 62
}, },
"id": 36, "id": 36,
"options": { "options": {
@ -2164,7 +2267,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 53 "y": 62
}, },
"id": 37, "id": 37,
"options": { "options": {
@ -2321,7 +2424,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 61 "y": 70
}, },
"id": 38, "id": 38,
"options": { "options": {
@ -2358,15 +2461,123 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"collapsed": true, "collapsed": false,
"gridPos": { "gridPos": {
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 70 "y": 79
}, },
"id": 39, "id": 39,
"panels": [ "panels": [],
"title": "3rd party firehose",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${DS1}"
},
"description": "Percentage of time during the last 24h when connection to a given PDS was live",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 1,
"axisSoftMin": 0,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percentunit",
"unitScale": true
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 80
},
"id": 48,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "table",
"placement": "right",
"showLegend": true,
"sortBy": "Last *",
"sortDesc": false
},
"tooltip": {
"mode": "multi",
"sort": "asc"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS1}"
},
"editorMode": "code",
"expr": "label_replace(sum_over_time((clamp_max(sum by(remote) (consumer_connection_up{remote!~\"https://.*\\\\.bsky\\\\.(network|social)\"}), 1) )[24h:1m]) / 24 / 60, \"remote\", \"$1\", \"remote\", \"https://((?U).*)(\\\\.host\\\\.bsky\\\\.network)?\")",
"format": "time_series",
"instant": false,
"legendFormat": "{{remote}}",
"range": true,
"refId": "A"
}
],
"title": "Connection uptime over 24h",
"type": "timeseries"
},
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
@ -2470,7 +2681,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 9 "y": 89
}, },
"id": 45, "id": 45,
"options": { "options": {
@ -2589,7 +2800,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 9 "y": 89
}, },
"id": 46, "id": 46,
"options": { "options": {
@ -2727,7 +2938,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 18 "y": 98
}, },
"id": 43, "id": 43,
"options": { "options": {
@ -2863,7 +3074,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 18 "y": 98
}, },
"id": 44, "id": 44,
"options": { "options": {
@ -2971,7 +3182,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 27 "y": 107
}, },
"id": 41, "id": 41,
"options": { "options": {
@ -3056,7 +3267,7 @@
"h": 8, "h": 8,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 27 "y": 107
}, },
"id": 42, "id": 42,
"options": { "options": {
@ -3213,7 +3424,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 35 "y": 115
}, },
"id": 40, "id": 40,
"options": { "options": {
@ -3248,10 +3459,6 @@
], ],
"title": "Firehose connection errors", "title": "Firehose connection errors",
"type": "timeseries" "type": "timeseries"
}
],
"title": "3rd party firehose",
"type": "row"
}, },
{ {
"collapsed": false, "collapsed": false,
@ -3259,7 +3466,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 71 "y": 124
}, },
"id": 22, "id": 22,
"panels": [], "panels": [],
@ -3350,7 +3557,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 72 "y": 125
}, },
"id": 8, "id": 8,
"options": { "options": {
@ -3493,7 +3700,7 @@
"h": 9, "h": 9,
"w": 12, "w": 12,
"x": 12, "x": 12,
"y": 72 "y": 125
}, },
"id": 31, "id": 31,
"links": [], "links": [],
@ -3827,6 +4034,6 @@
"timezone": "", "timezone": "",
"title": "Bluesky indexer", "title": "Bluesky indexer",
"uid": "bskyIndexer", "uid": "bskyIndexer",
"version": 21, "version": 22,
"weekStart": "" "weekStart": ""
} }