Skip to content

Commit 83fd3e0

Browse files
Add Prometheus metrics endpoint to dashboard
1 parent 7b3e44c commit 83fd3e0

18 files changed

Lines changed: 635 additions & 11 deletions

compose.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ services:
99
postgres
1010
-c shared_preload_libraries=pg_stat_statements
1111
-c pg_stat_statements.track=all
12+
13+
prometheus:
14+
image: prom/prometheus
15+
ports:
16+
- 9090:9090
17+
volumes:
18+
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro

docker/prometheus/prometheus.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
global:
2+
scrape_interval: 15s
3+
4+
scrape_configs:
5+
- job_name: openworkflow_dashboard
6+
metrics_path: /metrics
7+
static_configs:
8+
- targets: ["host.docker.internal:3000"]

0 commit comments

Comments
 (0)