diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-06-28 14:11:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-28 14:11:55 -0700 |
| commit | a1aab8a083111dd9357c7f35397fdf610f23cb6d (patch) | |
| tree | 66b56b09bec60cd1962236b7aad43a37011450b9 /telemetry/docker-compose.yml | |
| parent | 29892c43ff95ad957c0f64ad5cd11e0d43e616e2 (diff) | |
| download | seaweedfs-a1aab8a083111dd9357c7f35397fdf610f23cb6d.tar.xz seaweedfs-a1aab8a083111dd9357c7f35397fdf610f23cb6d.zip | |
add telemetry (#6926)
* add telemetry
* fix go mod
* add default telemetry server url
* Update README.md
* replace with broker count instead of s3 count
* Update telemetry.pb.go
* github action to deploy
Diffstat (limited to 'telemetry/docker-compose.yml')
| -rw-r--r-- | telemetry/docker-compose.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/telemetry/docker-compose.yml b/telemetry/docker-compose.yml new file mode 100644 index 000000000..73f0e8f70 --- /dev/null +++ b/telemetry/docker-compose.yml @@ -0,0 +1,55 @@ +version: '3.8' + +services: + telemetry-server: + build: ./server + ports: + - "8080:8080" + command: [ + "./telemetry-server", + "-port=8080", + "-dashboard=false", # Disable built-in dashboard, use Grafana + "-log=true", + "-cors=true" + ] + networks: + - telemetry + + prometheus: + image: prom/prometheus:latest + ports: + - "9090:9090" + volumes: + - ./prometheus.yml:/etc/prometheus/prometheus.yml + - prometheus_data:/prometheus + command: + - '--config.file=/etc/prometheus/prometheus.yml' + - '--storage.tsdb.path=/prometheus' + - '--web.console.libraries=/etc/prometheus/console_libraries' + - '--web.console.templates=/etc/prometheus/consoles' + - '--storage.tsdb.retention.time=200h' + - '--web.enable-lifecycle' + networks: + - telemetry + + grafana: + image: grafana/grafana:latest + ports: + - "3000:3000" + environment: + - GF_SECURITY_ADMIN_PASSWORD=admin + - GF_USERS_ALLOW_SIGN_UP=false + volumes: + - grafana_data:/var/lib/grafana + - ./grafana-dashboard.json:/var/lib/grafana/dashboards/seaweedfs-telemetry.json + - ./grafana-provisioning:/etc/grafana/provisioning + networks: + - telemetry + +volumes: + prometheus_data: + grafana_data: + +networks: + telemetry: + driver: bridge
\ No newline at end of file |
