diff --git a/compose.yaml b/compose.yaml index 71d49df..33e3cbd 100644 --- a/compose.yaml +++ b/compose.yaml @@ -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: diff --git a/infra/prometheus.yml b/infra/prometheus.yml new file mode 100644 index 0000000..46f6203 --- /dev/null +++ b/infra/prometheus.yml @@ -0,0 +1,7 @@ +global: + scrape_interval: 15s + +scrape_configs: + - job_name: otel-collector + static_configs: + - targets: ["otel-collector:9464"]