feat(observability): lab6 add Prometheus, OpenSearch and Jaeger

This commit is contained in:
Голиков Maximillian Антон
2026-11-17 11:26:35 +03:00
parent 3460856dc9
commit 9f316d7ed7
2 changed files with 53 additions and 0 deletions
+46
View File
@@ -322,6 +322,49 @@ services:
networks:
- internal
prometheus:
image: prom/prometheus:v3.16.0
restart: unless-stopped
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=7d
volumes:
- ./infra/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
networks:
- internal
opensearch:
image: opensearchproject/opensearch:2.19.7
restart: unless-stopped
environment:
discovery.type: single-node
node.store.allow_mmap: "false"
DISABLE_INSTALL_DEMO_CONFIG: "true"
DISABLE_SECURITY_PLUGIN: "true"
OPENSEARCH_JAVA_OPTS: "-Xms512m -Xmx512m"
volumes:
- opensearch_data:/usr/share/opensearch/data
networks:
- internal
jaeger:
image: jaegertracing/all-in-one:1.76.0
restart: unless-stopped
environment:
COLLECTOR_OTLP_ENABLED: "true"
COLLECTOR_OTLP_GRPC_HOST_PORT: "0.0.0.0:4317"
SPAN_STORAGE_TYPE: badger
BADGER_EPHEMERAL: "false"
BADGER_DIRECTORY_VALUE: /tmp/jaeger/data
BADGER_DIRECTORY_KEY: /tmp/jaeger/key
volumes:
- jaeger_data:/tmp
networks:
- internal
secrets:
postgres_password:
file: ./secrets/postgres_password
@@ -343,6 +386,9 @@ volumes:
redis_data:
minio_data:
rabbitmq_data:
prometheus_data:
opensearch_data:
jaeger_data:
networks:
internal:
+7
View File
@@ -0,0 +1,7 @@
global:
scrape_interval: 15s
scrape_configs:
- job_name: otel-collector
static_configs:
- targets: ["otel-collector:9464"]