feat(grafana): lab6 provision metrics, logs and traces data sources

This commit is contained in:
Голиков Maximillian Антон
2026-11-17 15:42:08 +03:00
parent 94865e05a9
commit 6f37282ee8
2 changed files with 51 additions and 0 deletions
+20
View File
@@ -386,6 +386,25 @@ services:
networks:
- internal
grafana:
image: grafana/grafana:13.3.0
restart: unless-stopped
environment:
GF_SECURITY_ADMIN_USER: "${GRAFANA_ADMIN_USER:-admin}"
GF_SECURITY_ADMIN_PASSWORD: "${GRAFANA_ADMIN_PASSWORD:-admin}"
GF_PLUGINS_PREINSTALL_SYNC: grafana-opensearch-datasource@2.34.7
ports:
- "127.0.0.1:${GRAFANA_PORT:-3000}:3000"
volumes:
- grafana_data:/var/lib/grafana
- ./infra/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
depends_on:
- prometheus
- opensearch
- jaeger
networks:
- internal
secrets:
postgres_password:
file: ./secrets/postgres_password
@@ -410,6 +429,7 @@ volumes:
prometheus_data:
opensearch_data:
jaeger_data:
grafana_data:
networks:
internal:
@@ -0,0 +1,31 @@
apiVersion: 1
datasources:
- name: Prometheus
uid: prometheus
type: prometheus
access: proxy
url: http://prometheus:9090
isDefault: true
editable: false
- name: OpenSearch
uid: opensearch
type: grafana-opensearch-datasource
access: proxy
url: http://opensearch:9200
editable: false
jsonData:
flavor: opensearch
version: "2.19.4"
database: messenger-logs*
timeField: "@timestamp"
logMessageField: body
logLevelField: severityText
- name: Jaeger
uid: jaeger
type: jaeger
access: proxy
url: http://jaeger:16686
editable: false