grafana: Add Go dashboard

This commit is contained in:
Rob Watson 2023-01-14 09:38:00 +01:00
parent 47bc5c3fce
commit ec4bfc39fb
3 changed files with 14 additions and 1 deletions

View File

@ -58,6 +58,15 @@ data:
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \ | sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
> "/var/lib/grafana/dashboards/default/gitea.json" > "/var/lib/grafana/dashboards/default/gitea.json"
curl -skf \
--connect-timeout 60 \
--max-time 60 \
-H "Accept: application/json" \
-H "Content-Type: application/json;charset=UTF-8" \
"https://grafana.com/api/dashboards/6671/revisions/2/download" \
| sed '/-- .* --/! s/"datasource":.*,/"datasource": "Prometheus",/g' \
> "/var/lib/grafana/dashboards/default/go.json"
curl -skf \ curl -skf \
--connect-timeout 60 \ --connect-timeout 60 \
--max-time 60 \ --max-time 60 \

View File

@ -26,7 +26,7 @@ spec:
app.kubernetes.io/name: grafana app.kubernetes.io/name: grafana
app.kubernetes.io/instance: grafana app.kubernetes.io/instance: grafana
annotations: annotations:
checksum/config: 60be875675b2ad83279ee347d5a150559b24646f43fbc740f51b97915a0b9c31 checksum/config: 6cfd9cde9e064705ef04cb503eaf1ec3f1d9ddcd7587d64e86513af5ca827e2c
checksum/dashboards-json-config: 703b33634d715cefba0501f04654c5d6dc28aba46888183ea3420ccdae3c8ecf checksum/dashboards-json-config: 703b33634d715cefba0501f04654c5d6dc28aba46888183ea3420ccdae3c8ecf
checksum/sc-dashboard-provider-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b checksum/sc-dashboard-provider-config: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
spec: spec:

View File

@ -54,3 +54,7 @@ dashboards:
gnetId: 10046 gnetId: 10046
revision: 1 revision: 1
datasource: Prometheus datasource: Prometheus
go:
gnetId: 6671
revision: 2
datasource: Prometheus