Skip to content

Commit

Permalink
Merge pull request #7 from slashrsm/remove_tempo_prometheus_scraping
Browse files Browse the repository at this point in the history
Don't scrape Tempo and Prometheus server metrics, reorg a bit.
  • Loading branch information
catch56 authored Jul 4, 2024
2 parents eb1de53 + 0ba5c70 commit 0ef38dd
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 29 deletions.
20 changes: 7 additions & 13 deletions docker-compose.gander.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,16 @@ services:
container_name: ddev-${DDEV_SITENAME}-otel-collector
command: [ "--config=/etc/otel-collector.yaml" ]
volumes:
- ./otel-collector.yaml:/etc/otel-collector.yaml
- ./gander-config/otel-collector.yaml:/etc/otel-collector.yaml

# To eventually offload to Tempo...
tempo:
image: grafana/tempo:latest
container_name: ddev-${DDEV_SITENAME}-tempo
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./gander-shared/tempo.yaml:/etc/tempo.yaml
- ./gander-config/tempo.yaml:/etc/tempo.yaml
- tempo-data:/tmp/tempo
ports:
- "14268" # jaeger ingest
- "3200" # tempo
- "4317" # otlp grpc
- "4318" # otlp http
- "9411" # zipkin

prometheus:
image: prom/prometheus:latest
Expand All @@ -33,22 +27,22 @@ services:
- --web.enable-remote-write-receiver
- --enable-feature=exemplar-storage
volumes:
- ./gander-shared/prometheus.yaml:/etc/prometheus.yaml
- ./gander-config/prometheus.yaml:/etc/prometheus.yaml
labels:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
environment:
- VIRTUAL_HOST=$DDEV_HOSTNAME
- HTTP_EXPOSE=9090:9090
ports:
- "9090"
- 9090

grafana:
image: grafana/grafana:latest
container_name: ddev-${DDEV_SITENAME}-grafana
volumes:
- ./gander-shared/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
- ./gander-shared/grafana-dashboards.yaml:/etc/grafana/provisioning/dashboards/grafana-dashboards.yaml
- ./gander-config/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
- ./gander-config/grafana-dashboards.yaml:/etc/grafana/provisioning/dashboards/grafana-dashboards.yaml
- ./gander-dashboards:/etc/grafana/dashboards
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
Expand All @@ -62,7 +56,7 @@ services:
com.ddev.site-name: ${DDEV_SITENAME}
com.ddev.approot: $DDEV_APPROOT
ports:
- "3000"
- 3000

volumes:
tempo-data:
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions gander-config/prometheus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#ddev-generated
global:
scrape_interval: 15s
evaluation_interval: 15s
File renamed without changes.
12 changes: 0 additions & 12 deletions gander-shared/prometheus.yaml

This file was deleted.

5 changes: 1 addition & 4 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,9 @@ pre_install_actions:
project_files:
- config.gander.yaml
- docker-compose.gander.yaml
- otel-collector.yaml
- phpunit.xml.example
- gander-shared/
- gander-config/
- gander-dashboards/
# - extra_files/
# - somefile.sh

# List of files and directories that are copied into the global .ddev directory
# DDEV environment variables can be interpolated into these filenames
Expand Down

0 comments on commit 0ef38dd

Please sign in to comment.