80 lines
2.0 KiB
YAML
80 lines
2.0 KiB
YAML
{
|
|
"apiVersion": 1,
|
|
"datasources": [
|
|
{
|
|
"access": "proxy",
|
|
"isDefault": true,
|
|
"jsonData": {
|
|
"serverName": "prometheus",
|
|
"tlsAuth": true,
|
|
"tlsAuthWithCACert": true
|
|
},
|
|
"name": "Prometheus",
|
|
"secureJsonData": {
|
|
"tlsCACert": "$__file{/pki/ca.crt}",
|
|
"tlsClientCert": "$__file{/identity/grafana.crt}",
|
|
"tlsClientKey": "$__file{/identity/grafana.key}"
|
|
},
|
|
"type": "prometheus",
|
|
"uid": "prometheus",
|
|
"url": "https://prometheus-tls:9090"
|
|
},
|
|
{
|
|
"access": "proxy",
|
|
"jsonData": {
|
|
"derivedFields": [
|
|
{
|
|
"datasourceUid": "tempo",
|
|
"matcherRegex": "trace_id",
|
|
"matcherType": "label",
|
|
"name": "TraceID",
|
|
"url": "$${__value.raw}"
|
|
}
|
|
],
|
|
"serverName": "loki",
|
|
"tlsAuth": true,
|
|
"tlsAuthWithCACert": true
|
|
},
|
|
"name": "Loki",
|
|
"secureJsonData": {
|
|
"tlsCACert": "$__file{/pki/ca.crt}",
|
|
"tlsClientCert": "$__file{/identity/grafana.crt}",
|
|
"tlsClientKey": "$__file{/identity/grafana.key}"
|
|
},
|
|
"type": "loki",
|
|
"uid": "loki",
|
|
"url": "https://loki-tls:3100"
|
|
},
|
|
{
|
|
"access": "proxy",
|
|
"jsonData": {
|
|
"serverName": "tempo",
|
|
"tlsAuth": true,
|
|
"tlsAuthWithCACert": true,
|
|
"tracesToLogsV2": {
|
|
"datasourceUid": "loki",
|
|
"filterBySpanID": true,
|
|
"filterByTraceID": true,
|
|
"spanEndTimeShift": "1m",
|
|
"spanStartTimeShift": "-1m",
|
|
"tags": [
|
|
{
|
|
"key": "service.name",
|
|
"value": "service_name"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"name": "Tempo",
|
|
"secureJsonData": {
|
|
"tlsCACert": "$__file{/pki/ca.crt}",
|
|
"tlsClientCert": "$__file{/identity/grafana.crt}",
|
|
"tlsClientKey": "$__file{/identity/grafana.key}"
|
|
},
|
|
"type": "tempo",
|
|
"uid": "tempo",
|
|
"url": "https://tempo-tls:3200"
|
|
}
|
|
]
|
|
}
|