Skip to content

Commit 6f2d2b5

Browse files
committed
Add Prometheus to the metrics profile
1 parent 8c3ad2a commit 6f2d2b5

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ include:
55
- docker-compose/node.override.regtest.yml
66
- path: docker-compose/logger.yml
77
- path: docker-compose/connectivity-check.yml
8-
- path: docker-compose/metrics.yml
98
- path: docker-compose/websocket.yml
9+
- path: docker-compose/metrics.yml
10+
- path: docker-compose/prometheus.yml
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
global:
2+
scrape_interval: 15s
3+
4+
scrape_configs:
5+
- job_name: 'peer-observer-metrics'
6+
static_configs:
7+
- targets: ['metrics:8001']

docker-compose/prometheus.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
services:
2+
prometheus:
3+
image: prom/prometheus:latest
4+
volumes:
5+
- ./prometheus-config.yml:/etc/prometheus/prometheus.yml
6+
command:
7+
- '--config.file=/etc/prometheus/prometheus.yml'
8+
ports:
9+
- "9090:9090"
10+
depends_on:
11+
- metrics
12+
profiles: [monitoring, metrics]

0 commit comments

Comments
 (0)