Skip to content

Commit

Permalink
Add health check to OTEL
Browse files Browse the repository at this point in the history
  • Loading branch information
Depechie committed Jun 5, 2023
1 parent f5dfdd5 commit 4735bc9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
9 changes: 5 additions & 4 deletions docker-compose-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ services:
- ${PWD}/otel/otel.yml:/etc/otel-collector-config.yaml
restart: unless-stopped
ports:
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "4317:4317" # OTLP gRPC receiver
- "9200:55679" # zpages
- 8888:8888 # Prometheus metrics exposed by the collector
- 8889:8889 # Prometheus exporter metrics
- 4317:4317 # OTLP gRPC receiver
- 9200:55679 # zpages
- 13133:13133 # Health check
networks:
otel:

Expand Down
9 changes: 5 additions & 4 deletions docker-compose-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ services:
- /var/lib/docker/volumes/pluralsightotel/otel/otel.yml:/etc/otel-collector-config.yaml
restart: unless-stopped
ports:
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "4317:4317" # OTLP gRPC receiver
- "9200:55679" # zpages
- 8888:8888 # Prometheus metrics exposed by the collector
- 8889:8889 # Prometheus exporter metrics
- 4317:4317 # OTLP gRPC receiver
- 9200:55679 # zpages
- 13133:13133 # Health check
networks:
otel:

Expand Down
3 changes: 2 additions & 1 deletion otel/otel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ exporters:
insecure: true

extensions:
health_check:
zpages:
endpoint: otel:55679

service:
extensions: [zpages] # Enable zpages
extensions: [zpages, health_check] # Enable zpages
pipelines:
metrics:
receivers: [otlp]
Expand Down

0 comments on commit 4735bc9

Please sign in to comment.