Files
hatchet/docker-compose.prometheus.yml
Mohammed Nafees ef498a6235 Introduce tenant Prometheus metrics (#1875)
* introduce tenant workflow completed metric

* expose tenant prom metrics via handler

* fix workflow and worker id in metrics

* correctly add workflow metrics from workflow controller

* use olap DB to gather information for workflow completion

* fix prom metrics endpoint for tenant

* workflow name from external id

* simplify tenant registry based metrics

* add docs for prometheus metrics

* fix docs lint

* run prettier fix

* WIP metrics work

* use federate prom server URL to proxy metrics

* implement workflow duration histogram metric

* separate prom stack docker compose

* fix duration metrics calls

* move scheduler metrics to prom tenant specific file

* update docs for prom metrics

* fix lint

* use proper indices to query for durations

* reorg tenant metrics

* fix lint for doc

* update docs with promql examples and casing around prom metrics enabled

* update prom server url

* fix lint

* enabled prom metrics for v1 only from controller
2025-06-27 11:46:31 -04:00

39 lines
1.2 KiB
YAML

services:
prometheus:
image: prom/prometheus:latest
container_name: hatchet-prometheus
ports:
- "9091:9090"
volumes:
- ./hack/dev/prometheus.yml:/etc/prometheus/prometheus.yml
- ./hack/dev/prometheus.web-config.yml:/etc/prometheus/web-config.yml
- hatchet_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'
- '--web.config.file=/etc/prometheus/web-config.yml'
grafana:
image: grafana/grafana:latest
container_name: hatchet-grafana
ports:
- "3001:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
volumes:
- hatchet_grafana_data:/var/lib/grafana
- ./hack/dev/grafana/provisioning:/etc/grafana/provisioning
- ./hack/dev/grafana/dashboards:/var/lib/grafana/dashboards
depends_on:
- prometheus
volumes:
hatchet_prometheus_data:
hatchet_grafana_data: