39 lines
869 B
YAML
39 lines
869 B
YAML
# Grafana provisioning — HexaHost GameCloud
|
|
# Mount to /etc/grafana/provisioning/datasources/datasources.yml
|
|
|
|
apiVersion: 1
|
|
|
|
datasources:
|
|
- name: Prometheus
|
|
type: prometheus
|
|
access: proxy
|
|
url: http://prometheus:9090
|
|
isDefault: true
|
|
editable: false
|
|
jsonData:
|
|
timeInterval: 15s
|
|
httpMethod: POST
|
|
|
|
- name: Loki
|
|
type: loki
|
|
access: proxy
|
|
url: http://loki:3100
|
|
editable: false
|
|
jsonData:
|
|
maxLines: 1000
|
|
derivedFields:
|
|
- datasourceUid: prometheus
|
|
matcherRegex: "trace_id=(\\w+)"
|
|
name: TraceID
|
|
url: "$${__value.raw}"
|
|
|
|
- name: Prometheus (external)
|
|
type: prometheus
|
|
access: proxy
|
|
url: http://localhost:9090
|
|
isDefault: false
|
|
editable: true
|
|
jsonData:
|
|
timeInterval: 15s
|
|
# Optional — use when Grafana runs outside the compose network
|