2018-05-29 20:00:46 +08:00
|
|
|
apiVersion: 1
|
|
|
|
|
|
2021-04-13 21:13:50 +08:00
|
|
|
deleteDatasources:
|
|
|
|
|
- name: gdev-influxdb
|
|
|
|
|
- name: gdev-influxdb-telegraf
|
|
|
|
|
- name: gdev-influxdb2
|
|
|
|
|
- name: gdev-influxdb2-influxql
|
2021-04-14 19:23:59 +08:00
|
|
|
- name: gdev-loki-0.3
|
|
|
|
|
- name: gdev-loki-0.4
|
2022-05-16 14:34:38 +08:00
|
|
|
- name: gdev-elasticsearch-v2-metrics
|
|
|
|
|
- name: gdev-elasticsearch-v2-logs
|
|
|
|
|
- name: gdev-elasticsearch-v5-metrics
|
|
|
|
|
- name: gdev-elasticsearch-v5-logs
|
|
|
|
|
- name: gdev-elasticsearch-v56-metrics
|
|
|
|
|
- name: gdev-elasticsearch-v56-logs
|
|
|
|
|
- name: gdev-elasticsearch-v6-metrics
|
|
|
|
|
- name: gdev-elasticsearch-v6-logs
|
|
|
|
|
- name: gdev-elasticsearch-v6-filebeat
|
2022-09-26 19:00:29 +08:00
|
|
|
- name: gdev-elasticsearch-v7-metrics
|
|
|
|
|
- name: gdev-elasticsearch-v7-logs
|
|
|
|
|
- name: gdev-elasticsearch-v7-filebeat
|
|
|
|
|
- name: gdev-elasticsearch-v7-metricbeat
|
2021-04-13 21:13:50 +08:00
|
|
|
|
2018-05-29 20:00:46 +08:00
|
|
|
datasources:
|
2018-07-07 20:40:17 +08:00
|
|
|
- name: gdev-graphite
|
2018-05-29 20:00:46 +08:00
|
|
|
type: graphite
|
|
|
|
|
access: proxy
|
2019-05-24 14:09:51 +08:00
|
|
|
url: http://localhost:8180
|
2018-05-29 20:00:46 +08:00
|
|
|
jsonData:
|
2025-08-04 18:20:12 +08:00
|
|
|
graphiteVersion: '1.1'
|
2018-07-07 20:40:17 +08:00
|
|
|
|
2021-03-30 15:25:27 +08:00
|
|
|
- name: gdev-graphite-1.0
|
|
|
|
|
type: graphite
|
|
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:8280
|
|
|
|
|
jsonData:
|
2025-08-04 18:20:12 +08:00
|
|
|
graphiteVersion: '1.0'
|
2021-03-30 15:25:27 +08:00
|
|
|
|
|
|
|
|
- name: gdev-graphite-0.9
|
|
|
|
|
type: graphite
|
|
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:8380
|
|
|
|
|
jsonData:
|
2025-08-04 18:20:12 +08:00
|
|
|
graphiteVersion: '0.9'
|
2021-03-30 15:25:27 +08:00
|
|
|
|
2022-04-30 00:53:14 +08:00
|
|
|
- name: gdev-alertmanager
|
|
|
|
|
type: alertmanager
|
|
|
|
|
uid: gdev-alertmanager
|
|
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:9093
|
|
|
|
|
jsonData:
|
|
|
|
|
implementation: prometheus
|
|
|
|
|
|
2018-07-07 20:40:17 +08:00
|
|
|
- name: gdev-prometheus
|
2022-09-27 17:08:02 +08:00
|
|
|
uid: gdev-prometheus
|
2018-05-29 20:00:46 +08:00
|
|
|
type: prometheus
|
|
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:9090
|
2023-07-07 02:11:55 +08:00
|
|
|
basicAuth: true #username: admin, password: admin
|
|
|
|
|
basicAuthUser: admin
|
2021-11-30 22:37:03 +08:00
|
|
|
jsonData:
|
2022-04-30 00:53:14 +08:00
|
|
|
manageAlerts: true
|
|
|
|
|
alertmanagerUid: gdev-alertmanager
|
2022-10-25 03:53:11 +08:00
|
|
|
prometheusType: Prometheus #Cortex | Mimir | Prometheus | Thanos
|
|
|
|
|
prometheusVersion: 2.40.0
|
2023-07-22 00:02:20 +08:00
|
|
|
exemplarTraceIdDestinations:
|
2025-08-04 18:20:12 +08:00
|
|
|
- name: traceID
|
|
|
|
|
datasourceUid: gdev-tempo
|
2023-07-07 02:11:55 +08:00
|
|
|
secureJsonData:
|
|
|
|
|
basicAuthPassword: admin #https://grafana.com/docs/grafana/latest/administration/provisioning/#using-environment-variables
|
2018-07-07 20:40:17 +08:00
|
|
|
|
2019-05-08 16:09:48 +08:00
|
|
|
- name: gdev-slow-prometheus
|
2023-06-12 16:05:50 +08:00
|
|
|
uid: gdev-slow-prometheus-uid
|
2019-05-08 16:09:48 +08:00
|
|
|
type: prometheus
|
|
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:3011
|
2023-10-10 18:28:39 +08:00
|
|
|
basicAuth: true #username: admin, password: admin
|
|
|
|
|
basicAuthUser: admin
|
2021-11-30 22:37:03 +08:00
|
|
|
jsonData:
|
|
|
|
|
manageAlerts: false
|
2023-10-10 18:28:39 +08:00
|
|
|
prometheusType: Prometheus #Cortex | Mimir | Prometheus | Thanos
|
|
|
|
|
prometheusVersion: 2.40.0
|
|
|
|
|
secureJsonData:
|
|
|
|
|
basicAuthPassword: admin #https://grafana.com/docs/grafana/latest/administration/provisioning/#using-environment-variables
|
2019-05-08 16:09:48 +08:00
|
|
|
|
2018-07-16 18:12:13 +08:00
|
|
|
- name: gdev-testdata
|
2025-08-04 18:20:12 +08:00
|
|
|
uid: PD8C576611E62080A
|
2019-02-13 21:09:04 +08:00
|
|
|
isDefault: true
|
2019-11-26 05:26:18 +08:00
|
|
|
type: testdata
|
2018-07-16 18:12:13 +08:00
|
|
|
|
2021-04-13 21:13:50 +08:00
|
|
|
- name: gdev-influxdb1-influxql
|
2018-05-29 20:00:46 +08:00
|
|
|
type: influxdb
|
|
|
|
|
access: proxy
|
|
|
|
|
user: grafana
|
2021-04-13 21:13:50 +08:00
|
|
|
url: http://localhost:8087
|
2019-04-15 17:11:17 +08:00
|
|
|
secureJsonData:
|
|
|
|
|
password: grafana
|
2023-01-31 21:38:02 +08:00
|
|
|
jsonData:
|
|
|
|
|
dbName: site
|
2021-03-30 15:25:27 +08:00
|
|
|
|
2021-04-13 21:13:50 +08:00
|
|
|
- name: gdev-influxdb-flux
|
2021-02-23 23:30:35 +08:00
|
|
|
type: influxdb
|
|
|
|
|
access: proxy
|
2021-04-13 21:13:50 +08:00
|
|
|
url: http://localhost:8086
|
2021-02-23 23:30:35 +08:00
|
|
|
user: grafana
|
|
|
|
|
secureJsonData:
|
|
|
|
|
token: mytoken
|
|
|
|
|
password: grafana12345
|
|
|
|
|
jsonData:
|
|
|
|
|
version: Flux
|
|
|
|
|
organization: myorg
|
|
|
|
|
defaultBucket: mybucket
|
2019-06-12 21:30:33 +08:00
|
|
|
|
2021-04-13 21:13:50 +08:00
|
|
|
- name: gdev-influxdb-influxql
|
2021-03-09 23:56:42 +08:00
|
|
|
type: influxdb
|
|
|
|
|
access: proxy
|
2021-04-13 21:13:50 +08:00
|
|
|
url: http://localhost:8086
|
2021-03-09 23:56:42 +08:00
|
|
|
jsonData:
|
2023-01-31 21:38:02 +08:00
|
|
|
dbName: mybucket
|
2025-08-04 18:20:12 +08:00
|
|
|
httpHeaderName1: 'Authorization'
|
2021-03-09 23:56:42 +08:00
|
|
|
secureJsonData:
|
2025-08-04 18:20:12 +08:00
|
|
|
httpHeaderValue1: 'Token mytoken'
|
2021-03-09 23:56:42 +08:00
|
|
|
|
2018-07-07 20:40:17 +08:00
|
|
|
- name: gdev-opentsdb
|
2018-05-29 20:00:46 +08:00
|
|
|
type: opentsdb
|
|
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:4242
|
2018-07-07 20:40:17 +08:00
|
|
|
jsonData:
|
2018-05-29 20:00:46 +08:00
|
|
|
tsdbResolution: 1
|
|
|
|
|
tsdbVersion: 1
|
|
|
|
|
|
2021-06-30 21:58:44 +08:00
|
|
|
- name: gdev-opentsdb-v2.3
|
|
|
|
|
type: opentsdb
|
|
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:4242
|
|
|
|
|
jsonData:
|
|
|
|
|
tsdbResolution: 1
|
|
|
|
|
tsdbVersion: 3
|
|
|
|
|
|
2025-02-25 22:59:58 +08:00
|
|
|
- name: gdev-opentsdb-v2.4
|
|
|
|
|
type: opentsdb
|
|
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:4242
|
|
|
|
|
jsonData:
|
|
|
|
|
tsdbResolution: 1
|
|
|
|
|
tsdbVersion: 4
|
|
|
|
|
|
2022-05-19 14:29:23 +08:00
|
|
|
- name: gdev-elasticsearch
|
|
|
|
|
type: elasticsearch
|
2023-04-05 20:43:19 +08:00
|
|
|
uid: gdev-elasticsearch
|
2022-05-19 14:29:23 +08:00
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:9200
|
|
|
|
|
jsonData:
|
2025-08-04 18:20:12 +08:00
|
|
|
index: '[logs-]YYYY.MM.DD'
|
2022-05-19 14:29:23 +08:00
|
|
|
interval: Daily
|
2025-08-04 18:20:12 +08:00
|
|
|
timeField: '@timestamp'
|
2022-05-19 14:29:23 +08:00
|
|
|
logLevelField: level
|
|
|
|
|
logMessageField: line
|
2019-04-25 15:41:13 +08:00
|
|
|
|
2022-09-26 19:00:29 +08:00
|
|
|
- name: gdev-elasticsearch-filebeat
|
2019-04-25 15:41:13 +08:00
|
|
|
type: elasticsearch
|
|
|
|
|
access: proxy
|
2022-09-26 19:00:29 +08:00
|
|
|
url: http://localhost:9200
|
2019-04-25 15:41:13 +08:00
|
|
|
jsonData:
|
2025-08-04 18:20:12 +08:00
|
|
|
index: '[filebeat-]YYYY.MM.DD'
|
2019-04-25 15:41:13 +08:00
|
|
|
interval: Daily
|
2025-08-04 18:20:12 +08:00
|
|
|
timeField: '@timestamp'
|
|
|
|
|
timeInterval: '10s'
|
2019-06-25 04:15:03 +08:00
|
|
|
logMessageField: message
|
|
|
|
|
logLevelField: fields.level
|
2019-04-25 15:41:13 +08:00
|
|
|
|
2022-09-26 19:00:29 +08:00
|
|
|
- name: gdev-elasticsearch-metricbeat
|
2019-05-27 15:55:58 +08:00
|
|
|
type: elasticsearch
|
|
|
|
|
access: proxy
|
2022-09-26 19:00:29 +08:00
|
|
|
url: http://localhost:9200
|
2019-05-27 15:55:58 +08:00
|
|
|
jsonData:
|
2025-08-04 18:20:12 +08:00
|
|
|
index: '[metricbeat-]YYYY.MM.DD'
|
2019-05-27 15:55:58 +08:00
|
|
|
interval: Daily
|
2025-08-04 18:20:12 +08:00
|
|
|
timeField: '@timestamp'
|
|
|
|
|
timeInterval: '10s'
|
2019-05-27 15:55:58 +08:00
|
|
|
|
2018-07-07 20:40:17 +08:00
|
|
|
- name: gdev-mysql
|
2018-05-29 20:00:46 +08:00
|
|
|
type: mysql
|
|
|
|
|
url: localhost:3306
|
|
|
|
|
user: grafana
|
2022-12-13 16:56:52 +08:00
|
|
|
jsonData:
|
|
|
|
|
database: grafana
|
2019-04-15 17:11:17 +08:00
|
|
|
secureJsonData:
|
|
|
|
|
password: password
|
2018-05-29 20:00:46 +08:00
|
|
|
|
2018-07-27 00:12:00 +08:00
|
|
|
- name: gdev-mysql-ds-tests
|
|
|
|
|
type: mysql
|
|
|
|
|
url: localhost:3306
|
|
|
|
|
user: grafana
|
2022-12-13 16:56:52 +08:00
|
|
|
jsonData:
|
|
|
|
|
database: grafana_ds_tests
|
2019-04-15 17:11:17 +08:00
|
|
|
secureJsonData:
|
|
|
|
|
password: password
|
2018-07-27 00:12:00 +08:00
|
|
|
|
2018-07-07 20:40:17 +08:00
|
|
|
- name: gdev-mssql
|
2018-05-29 20:00:46 +08:00
|
|
|
type: mssql
|
|
|
|
|
url: localhost:1433
|
|
|
|
|
user: grafana
|
2022-12-13 16:56:52 +08:00
|
|
|
jsonData:
|
|
|
|
|
database: grafana
|
2018-07-27 00:12:00 +08:00
|
|
|
secureJsonData:
|
|
|
|
|
password: Password!
|
|
|
|
|
|
2022-01-26 22:00:18 +08:00
|
|
|
- name: gdev-mssql-tls
|
|
|
|
|
type: mssql
|
|
|
|
|
url: localhost:1434
|
|
|
|
|
user: grafana
|
|
|
|
|
jsonData:
|
2022-12-13 16:56:52 +08:00
|
|
|
database: grafana
|
2025-08-04 18:20:12 +08:00
|
|
|
encrypt: 'true'
|
2022-01-26 22:00:18 +08:00
|
|
|
tlsSkipVerify: true
|
|
|
|
|
secureJsonData:
|
|
|
|
|
password: Password!
|
|
|
|
|
|
2018-07-27 00:12:00 +08:00
|
|
|
- name: gdev-mssql-ds-tests
|
|
|
|
|
type: mssql
|
|
|
|
|
url: localhost:1433
|
|
|
|
|
user: grafana
|
2022-12-13 16:56:52 +08:00
|
|
|
jsonData:
|
|
|
|
|
database: grafanatest
|
2018-07-27 00:12:00 +08:00
|
|
|
secureJsonData:
|
|
|
|
|
password: Password!
|
2018-05-29 20:00:46 +08:00
|
|
|
|
2018-07-07 20:40:17 +08:00
|
|
|
- name: gdev-postgres
|
2018-05-29 20:00:46 +08:00
|
|
|
type: postgres
|
|
|
|
|
url: localhost:5432
|
|
|
|
|
user: grafana
|
2018-07-18 22:21:32 +08:00
|
|
|
secureJsonData:
|
|
|
|
|
password: password
|
2018-05-29 20:00:46 +08:00
|
|
|
jsonData:
|
2025-08-04 18:20:12 +08:00
|
|
|
sslmode: 'disable'
|
2022-12-13 16:56:52 +08:00
|
|
|
database: grafana
|
2018-05-29 20:00:46 +08:00
|
|
|
|
2018-07-27 00:12:00 +08:00
|
|
|
- name: gdev-postgres-ds-tests
|
|
|
|
|
type: postgres
|
|
|
|
|
url: localhost:5432
|
|
|
|
|
user: grafanatest
|
|
|
|
|
secureJsonData:
|
|
|
|
|
password: grafanatest
|
|
|
|
|
jsonData:
|
2025-08-04 18:20:12 +08:00
|
|
|
sslmode: 'disable'
|
2022-12-13 16:56:52 +08:00
|
|
|
database: grafanadstest
|
2018-07-27 00:12:00 +08:00
|
|
|
|
2018-07-07 20:40:17 +08:00
|
|
|
- name: gdev-cloudwatch
|
2024-12-17 18:01:43 +08:00
|
|
|
uid: gdev-cloudwatch
|
2018-05-29 20:00:46 +08:00
|
|
|
type: cloudwatch
|
|
|
|
|
editable: true
|
|
|
|
|
jsonData:
|
|
|
|
|
authType: credentials
|
|
|
|
|
defaultRegion: eu-west-2
|
2025-08-04 18:20:12 +08:00
|
|
|
customMetricsNamespaces: 'CWAgent'
|
2018-05-29 20:00:46 +08:00
|
|
|
|
2019-01-29 20:03:49 +08:00
|
|
|
- name: gdev-loki
|
2025-03-26 18:39:45 +08:00
|
|
|
uid: gdev-loki
|
2019-01-29 20:03:49 +08:00
|
|
|
type: loki
|
|
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:3100
|
|
|
|
|
editable: false
|
2022-07-25 22:19:07 +08:00
|
|
|
correlations:
|
2022-07-27 14:01:46 +08:00
|
|
|
- targetUID: gdev-jaeger
|
2025-08-04 18:20:12 +08:00
|
|
|
label: 'Jaeger traces'
|
|
|
|
|
description: 'Related traces stored in Jaeger'
|
2022-07-27 14:01:46 +08:00
|
|
|
- targetUID: gdev-zipkin
|
2025-08-04 18:20:12 +08:00
|
|
|
label: 'Zipkin traces'
|
|
|
|
|
description: 'Related traces stored in Zipkin'
|
2023-07-19 20:25:18 +08:00
|
|
|
- targetUID: gdev-tempo
|
2025-08-04 18:20:12 +08:00
|
|
|
label: 'Tempo traces'
|
|
|
|
|
description: 'Related traces stored in Tempo'
|
2022-09-27 17:08:02 +08:00
|
|
|
- targetUID: gdev-prometheus
|
2025-08-04 18:20:12 +08:00
|
|
|
label: 'Logs to metrics'
|
|
|
|
|
description: 'Related metrics stored in Prometheus'
|
2022-09-27 17:08:02 +08:00
|
|
|
config:
|
2022-10-04 16:39:55 +08:00
|
|
|
type: query
|
2022-09-27 17:08:02 +08:00
|
|
|
target:
|
2025-08-04 18:20:12 +08:00
|
|
|
expr: '{ job="test" }'
|
|
|
|
|
field: 'traceID'
|
2020-05-05 15:51:21 +08:00
|
|
|
jsonData:
|
2021-11-30 22:37:03 +08:00
|
|
|
manageAlerts: false
|
2020-05-05 15:51:21 +08:00
|
|
|
derivedFields:
|
2025-08-04 18:20:12 +08:00
|
|
|
- name: 'traceID'
|
2020-05-06 16:39:46 +08:00
|
|
|
matcherRegex: "traceID=(\\w+)"
|
2025-08-04 18:20:12 +08:00
|
|
|
url: '$${__value.raw}'
|
2020-05-05 15:51:21 +08:00
|
|
|
datasourceUid: gdev-jaeger
|
2025-08-04 18:20:12 +08:00
|
|
|
- name: 'traceID'
|
2020-05-06 16:39:46 +08:00
|
|
|
matcherRegex: "traceID=(\\w+)"
|
2025-08-04 18:20:12 +08:00
|
|
|
url: '$${__value.raw}'
|
2020-05-05 15:51:21 +08:00
|
|
|
datasourceUid: gdev-zipkin
|
2025-08-04 18:20:12 +08:00
|
|
|
- name: 'traceID'
|
2023-07-19 20:25:18 +08:00
|
|
|
matcherRegex: "traceID=(\\w+)"
|
2025-08-04 18:20:12 +08:00
|
|
|
url: '$${__value.raw}'
|
2023-07-19 20:25:18 +08:00
|
|
|
datasourceUid: gdev-tempo
|
2020-05-05 15:51:21 +08:00
|
|
|
|
|
|
|
|
- name: gdev-jaeger
|
|
|
|
|
type: jaeger
|
|
|
|
|
uid: gdev-jaeger
|
|
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:16686
|
|
|
|
|
editable: false
|
|
|
|
|
|
|
|
|
|
- name: gdev-zipkin
|
|
|
|
|
type: zipkin
|
|
|
|
|
uid: gdev-zipkin
|
|
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:9411
|
|
|
|
|
editable: false
|
2021-03-08 23:04:42 +08:00
|
|
|
|
|
|
|
|
- name: gdev-tempo
|
|
|
|
|
type: tempo
|
|
|
|
|
uid: gdev-tempo
|
|
|
|
|
access: proxy
|
2022-08-12 00:17:21 +08:00
|
|
|
url: http://localhost:3200
|
2021-03-08 23:04:42 +08:00
|
|
|
editable: false
|
2025-03-26 18:39:45 +08:00
|
|
|
correlations:
|
|
|
|
|
- targetUID: gdev-loki
|
2025-08-04 18:20:12 +08:00
|
|
|
label: 'Logs (correlation)'
|
|
|
|
|
description: 'Correlation to logs stored in Loki'
|
2025-03-26 18:39:45 +08:00
|
|
|
config:
|
|
|
|
|
type: query
|
|
|
|
|
target:
|
2025-08-04 18:20:12 +08:00
|
|
|
expr: '{ job="job" }'
|
|
|
|
|
field: 'traceID'
|
2023-08-22 21:54:07 +08:00
|
|
|
jsonData:
|
|
|
|
|
tracesToLogsV2:
|
2025-08-04 18:20:12 +08:00
|
|
|
datasourceUid: gdev-loki
|
|
|
|
|
spanStartTimeShift: '5m'
|
|
|
|
|
spanEndTimeShift: '-5m'
|
|
|
|
|
customQuery: true
|
|
|
|
|
query: '{filename="/var/log/grafana/grafana.log"} |="$${__span.traceId}"'
|
2024-06-07 22:58:24 +08:00
|
|
|
tracesToProfiles:
|
|
|
|
|
datasourceUid: gdev-pyroscope
|
2025-08-04 18:20:12 +08:00
|
|
|
profileTypeId: 'process_cpu:cpu:nanoseconds:cpu:nanoseconds'
|
2025-03-26 18:39:45 +08:00
|
|
|
tracesToMetrics:
|
|
|
|
|
datasourceUid: gdev-prometheus
|
|
|
|
|
spanStartTimeShift: '1h'
|
|
|
|
|
spanEndTimeShift: '-1h'
|
|
|
|
|
tags: [{ key: 'job' }]
|
|
|
|
|
queries:
|
|
|
|
|
- name: 'Metrics'
|
|
|
|
|
query: 'sum(rate({$$__tags}[5m]))'
|
2025-06-18 04:40:40 +08:00
|
|
|
serviceMap:
|
|
|
|
|
datasourceUid: 'gdev-prometheus'
|
2024-06-07 22:58:24 +08:00
|
|
|
|
|
|
|
|
- name: gdev-pyroscope
|
|
|
|
|
type: grafana-pyroscope-datasource
|
|
|
|
|
uid: gdev-pyroscope
|
|
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:4040
|
|
|
|
|
editable: false
|
2024-11-01 15:25:27 +08:00
|
|
|
|
|
|
|
|
- name: gdev-e2etestdatasource
|
|
|
|
|
type: grafana-e2etest-datasource
|
|
|
|
|
uid: gdev-e2etest-datasource
|
|
|
|
|
access: proxy
|
|
|
|
|
url: http://localhost:4040
|
|
|
|
|
editable: false
|