Fixed grafana deploy annotations in the dashboard config, so it shows for those not managing matrix.org (#15957)

Removed the 'matrix.org' hardcorded instance setting

Originally introduced in #15674

Co-authored-by: wrjlewis <will.lewis@askattest.com>
pull/15975/head
Will Lewis 2023-07-20 13:33:06 +01:00 committed by GitHub
parent fd44053b84
commit 835174180b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/15957.bugfix Normal file
View File

@ -0,0 +1 @@
Fixed deploy annotations in the provided Grafana dashboard config, so that it shows for any homeserver and not just matrix.org. Contributed by @wrjlewis.

View File

@ -63,7 +63,7 @@
"uid": "${DS_PROMETHEUS}" "uid": "${DS_PROMETHEUS}"
}, },
"enable": true, "enable": true,
"expr": "changes(process_start_time_seconds{instance=\"matrix.org\",job=~\"synapse\"}[$bucket_size]) * on (instance, job) group_left(version) synapse_build_info{instance=\"matrix.org\",job=\"synapse\"}", "expr": "changes(process_start_time_seconds{instance=\"$instance\",job=~\"synapse\"}[$bucket_size]) * on (instance, job) group_left(version) synapse_build_info{instance=\"$instance\",job=\"synapse\"}",
"iconColor": "purple", "iconColor": "purple",
"name": "deploys", "name": "deploys",
"titleFormat": "Deployed {{version}}" "titleFormat": "Deployed {{version}}"