Make hostname abbreviations uniform

main
Max Ignatenko 2024-04-16 16:46:02 +01:00
parent 5cb8befb0d
commit 4c3b1c7acc
1 changed files with 30 additions and 38 deletions

View File

@ -571,8 +571,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -775,8 +774,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -1250,11 +1248,15 @@
"type": "prometheus", "type": "prometheus",
"uid": "${DS1}" "uid": "${DS1}"
}, },
"disableTextWrap": false,
"editorMode": "builder", "editorMode": "builder",
"expr": "sum by(remote, success) (rate(indexer_repos_fetched_count{success=\"true\"}[$rate_interval]))", "expr": "label_replace(sum by(remote) (rate(indexer_repos_fetched_count{success=\"true\"}[$rate_interval])), \"remote\", \"$1\", \"remote\", \"https://((?U).*)(\\\\.host\\\\.bsky\\\\.network)?\")",
"legendFormat": "{{success}} {{remote}}", "fullMetaSearch": false,
"includeNullMetadata": true,
"legendFormat": "{{remote}}",
"range": true, "range": true,
"refId": "A" "refId": "A",
"useBackend": false
}, },
{ {
"datasource": { "datasource": {
@ -1270,22 +1272,7 @@
} }
], ],
"title": "Repo fetch rate", "title": "Repo fetch rate",
"transformations": [ "transformations": [],
{
"id": "renameByRegex",
"options": {
"regex": "true https://([^.]*).*",
"renamePattern": "$1"
}
},
{
"id": "renameByRegex",
"options": {
"regex": "false https://([^.]*).*",
"renamePattern": "$1:fail"
}
}
],
"type": "timeseries" "type": "timeseries"
}, },
{ {
@ -1613,7 +1600,7 @@
}, },
"disableTextWrap": false, "disableTextWrap": false,
"editorMode": "builder", "editorMode": "builder",
"expr": "time() - label_replace(label_replace(repo_commit_received_timestamp{job=\"consumer\"}, \"remote\", \"$1\", \"remote\", \"https://(.*)\\\\.us-(east|west)\\\\.host\\\\.bsky\\\\.network\"), \"remote\", \"$1\", \"remote\", \"https://(.*)\")", "expr": "time() - label_replace(repo_commit_received_timestamp{job=\"consumer\"}, \"remote\", \"$1\", \"remote\", \"https://((?U).*)(\\\\.host\\\\.bsky\\\\.network)?\")",
"fullMetaSearch": false, "fullMetaSearch": false,
"includeNullMetadata": true, "includeNullMetadata": true,
"legendFormat": "{{remote}}", "legendFormat": "{{remote}}",
@ -1732,7 +1719,7 @@
}, },
"disableTextWrap": false, "disableTextWrap": false,
"editorMode": "builder", "editorMode": "builder",
"expr": "label_replace(label_replace(sum by(remote) (rate(repo_commits_received_counter[$rate_interval])), \"remote\", \"$1\", \"remote\", \"https://([^.]+)\\\\..*\\\\.bsky\\\\.network\"), \"remote\", \"$1\", \"remote\", \"https://(.*)\")", "expr": "label_replace(sum by(remote) (rate(repo_commits_received_counter[$rate_interval])), \"remote\", \"$1\", \"remote\", \"https://((?U).*)(\\\\.host\\\\.bsky\\\\.network)?\")",
"fullMetaSearch": false, "fullMetaSearch": false,
"includeNullMetadata": true, "includeNullMetadata": true,
"legendFormat": "__auto", "legendFormat": "__auto",
@ -1869,7 +1856,7 @@
"uid": "${DS1}" "uid": "${DS1}"
}, },
"editorMode": "code", "editorMode": "code",
"expr": "label_replace(label_replace(deriv(repo_commit_received_timestamp{job=\"consumer\"}[$rate_interval]), \"remote\", \"$1\", \"remote\", \"https://(.*)\\\\.us-(east|west)\\\\.host\\\\.bsky\\\\.network\"),\"remote\", \"$1\", \"remote\", \"https://(.*)\")", "expr": "label_replace(deriv(repo_commit_received_timestamp{job=\"consumer\"}[$rate_interval]), \"remote\", \"$1\", \"remote\", \"https://((?U).*)(\\\\\\\\.host\\\\\\\\.bsky\\\\\\\\.network)?\")",
"hide": false, "hide": false,
"legendFormat": "{{remote}}", "legendFormat": "{{remote}}",
"range": true, "range": true,
@ -2074,7 +2061,8 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green" "color": "green",
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -2113,7 +2101,7 @@
}, },
"disableTextWrap": false, "disableTextWrap": false,
"editorMode": "builder", "editorMode": "builder",
"expr": "label_replace(sum by(pds) (consumer_bad_records), \"pds\", \"$1\", \"pds\", \"https://([^.]+)((\\\\..+)?\\\\.bsky\\\\.network)?\")", "expr": "label_replace(sum by(pds) (consumer_bad_records), \"pds\", \"$1\", \"pds\", \"https://((?U).*)(\\\\.host\\\\.bsky\\\\.network)?\")",
"fullMetaSearch": false, "fullMetaSearch": false,
"includeNullMetadata": true, "includeNullMetadata": true,
"instant": false, "instant": false,
@ -2149,7 +2137,8 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green" "color": "green",
"value": null
} }
] ]
}, },
@ -2314,7 +2303,8 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green" "color": "green",
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -2353,7 +2343,7 @@
}, },
"disableTextWrap": false, "disableTextWrap": false,
"editorMode": "builder", "editorMode": "builder",
"expr": "label_replace(sum by(remote) (rate(consumer_connection_failures[$rate_interval])), \"remote\", \"$1\", \"remote\", \"https://(.*)(\\\\.host\\\\.bsky\\\\.network)?\")", "expr": "label_replace(sum by(remote) (rate(consumer_connection_failures[$rate_interval])), \"remote\", \"$1\", \"remote\", \"https://((?U).*)(\\\\.host\\\\.bsky\\\\.network)?\")",
"fullMetaSearch": false, "fullMetaSearch": false,
"includeNullMetadata": false, "includeNullMetadata": false,
"instant": false, "instant": false,
@ -2428,7 +2418,8 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green" "color": "green",
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -2578,7 +2569,8 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green" "color": "green",
"value": null
} }
] ]
}, },
@ -2675,20 +2667,20 @@
"auto_min": "10s", "auto_min": "10s",
"current": { "current": {
"selected": false, "selected": false,
"text": "1m", "text": "5m",
"value": "1m" "value": "5m"
}, },
"hide": 0, "hide": 0,
"label": "Rate interval", "label": "Rate interval",
"name": "rate_interval", "name": "rate_interval",
"options": [ "options": [
{ {
"selected": true, "selected": false,
"text": "1m", "text": "1m",
"value": "1m" "value": "1m"
}, },
{ {
"selected": false, "selected": true,
"text": "5m", "text": "5m",
"value": "5m" "value": "5m"
}, },
@ -2938,6 +2930,6 @@
"timezone": "", "timezone": "",
"title": "Bluesky indexer", "title": "Bluesky indexer",
"uid": "bskyIndexer", "uid": "bskyIndexer",
"version": 17, "version": 18,
"weekStart": "" "weekStart": ""
} }