diff --git a/grafana.yml b/grafana.yml index 02b8b2e..62d152d 100644 --- a/grafana.yml +++ b/grafana.yml @@ -9,6 +9,7 @@ services: volumes: - ./log-analyser/grafana:/var/lib/grafana - ./log-analyser/grafana-provisioning/dashboards/:/etc/grafana/provisioning/dashboards/ + - ./log-analyser/grafana-provisioning/datasources/:/etc/grafana/provisioning/datasources/ ports: - "3000:3000" networks: diff --git a/log-analyser/grafana-provisioning/datasources/datasource_loki.yml b/log-analyser/grafana-provisioning/datasources/datasource_loki.yml index 83c34b6..31213c4 100644 --- a/log-analyser/grafana-provisioning/datasources/datasource_loki.yml +++ b/log-analyser/grafana-provisioning/datasources/datasource_loki.yml @@ -2,8 +2,8 @@ apiVersion: 1 datasources: - name: Loki - isDefault: true type: loki + uid: a4bdfb3e-762a-46e5-a79f-2e7bbe88d444 access: proxy url: http://loki:3100 editable: true @@ -11,9 +11,9 @@ datasources: - name: Prometheus type: prometheus + uid: d301145e-8c4e-4027-bf6e-43e81f095020 access: proxy url: http://prometheus:9090 - isDefault: true editable: true jsonData: timeInterval: "5s"