mirror of
https://github.com/jcwimer/docker-swarm-autoscaler
synced 2026-05-18 10:34:45 +00:00
Changed naming
This commit is contained in:
2
prometheus-swarm-autoscaler/Dockerfile
Normal file
2
prometheus-swarm-autoscaler/Dockerfile
Normal file
@@ -0,0 +1,2 @@
|
||||
FROM prom/prometheus
|
||||
COPY prometheus.yml /etc/prometheus/prometheus.yml
|
||||
18
prometheus-swarm-autoscaler/prometheus.yml
Normal file
18
prometheus-swarm-autoscaler/prometheus.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
global:
|
||||
scrape_interval: 30s
|
||||
evaluation_interval: 30s
|
||||
|
||||
scrape_configs:
|
||||
- job_name: 'prometheus'
|
||||
dns_sd_configs:
|
||||
- names:
|
||||
- 'tasks.prometheus'
|
||||
type: 'A'
|
||||
port: 9090
|
||||
|
||||
- job_name: 'cadvisor'
|
||||
dns_sd_configs:
|
||||
- names:
|
||||
- 'tasks.cadvisor'
|
||||
type: 'A'
|
||||
port: 8080
|
||||
Reference in New Issue
Block a user