mirror of
https://github.com/docker-training/node-bulletin-board.git
synced 2026-01-12 02:26:42 +08:00
Add metrics for P5
This commit is contained in:
3
bulletin-board-metrics/Dockerfile
Normal file
3
bulletin-board-metrics/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM prom/prometheus:v2.0.0
|
||||
|
||||
COPY prometheus.yml /etc/prometheus/prometheus.yml
|
||||
7
bulletin-board-metrics/prometheus.yml
Normal file
7
bulletin-board-metrics/prometheus.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
global:
|
||||
scrape_interval: 5s
|
||||
|
||||
scrape_configs:
|
||||
- job_name: 'bb-app'
|
||||
static_configs:
|
||||
- targets: ['bb-app:8080']
|
||||
Reference in New Issue
Block a user