Update docker-compose.yml
This commit is contained in:
parent
de29f7f28e
commit
2883182f53
@ -4,6 +4,7 @@ services:
|
||||
grafana:
|
||||
image: ${GRAFANA_IMAGE}
|
||||
container_name: ${GRAFANA_CONTAINER_NAME}
|
||||
hostname: ${GRAFANA_CONTAINER_NAME}
|
||||
restart: always
|
||||
environment:
|
||||
- GF_PATHS_DATA=/var/lib/grafana/data
|
||||
@ -30,6 +31,7 @@ services:
|
||||
loki:
|
||||
image: ${LOKI_IMAGE}
|
||||
container_name: ${LOKI_CONTAINER_NAME}
|
||||
hostname: ${LOKI_CONTAINER_NAME}
|
||||
restart: always
|
||||
command: -config.file=/etc/loki/local-config.yaml
|
||||
volumes:
|
||||
@ -46,8 +48,8 @@ services:
|
||||
prometheus:
|
||||
image: ${PROMETHEUS_IMAGE}
|
||||
container_name: ${PROMETHEUS_CONTAINER_NAME}
|
||||
hostname: ${PROMETHEUS_CONTAINER_NAME}
|
||||
restart: always
|
||||
|
||||
environment:
|
||||
TZ: "Asia/Irkutsk"
|
||||
volumes:
|
||||
@ -62,6 +64,20 @@ services:
|
||||
- loki
|
||||
- proxy
|
||||
|
||||
otel-collector:
|
||||
image: ${OTEL-COLLECTOR_IMAGE}
|
||||
container_name: ${OTEL-COLLECTOR_CONTAINER_NAME}
|
||||
hostname: ${OTEL-COLLECTOR_CONTAINER_NAME}
|
||||
command: ["--config=/etc/otel-collector-config.yaml"]
|
||||
volumes:
|
||||
- ./configs/otel-collector-configs/config.yaml:/etc/otel-collector-config.yaml
|
||||
ports:
|
||||
# - "8888:8888" # Prometheus metrics exposed by the collector for scrape
|
||||
- "8889:8889" # Prometheus exporter metrics
|
||||
- "13133:13133" # health_check extension
|
||||
- "4317:4317" # OTLP gRPC receiver
|
||||
- "4318:4318" # OTLP http receiver
|
||||
|
||||
|
||||
|
||||
networks:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user