mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-19 04:49:19 +00:00
Add prometheus files (fixes #58)
This commit is contained in:
3
prom/Dockerfile
Normal file
3
prom/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM prom/prometheus
|
||||
COPY prometheus.yml /etc/prometheus/prometheus.yml
|
||||
|
||||
17
prom/prometheus.yml
Normal file
17
prom/prometheus.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
global:
|
||||
scrape_interval: 1s
|
||||
scrape_configs:
|
||||
- job_name: 'prometheus'
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
- job_name: 'node'
|
||||
dns_sd_configs:
|
||||
- names: ['tasks.node']
|
||||
type: 'A'
|
||||
port: 9100
|
||||
- job_name: 'cadvisor'
|
||||
dns_sd_configs:
|
||||
- names: ['tasks.cadvisor']
|
||||
type: 'A'
|
||||
port: 8080
|
||||
|
||||
Reference in New Issue
Block a user