wow a lot of changes happend since I set this up in October. I locked down the Prometheus version to 0.16.1, fixed the docker-compose to align the new config commands, and updated the prometheus.yml format to the new standard.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
FROM prom/prometheus:latest
|
||||
FROM prom/prometheus:0.16.1
|
||||
|
||||
ADD prometheus.yml /etc/prometheus/prometheus.yml
|
||||
|
||||
|
@ -4,8 +4,9 @@ global:
|
||||
evaluation_interval: 15s # By default, scrape targets every 15 seconds.
|
||||
# scrape_timeout is set to the global default (10s).
|
||||
|
||||
# Attach these extra labels to all timeseries collected by this Prometheus instance.
|
||||
labels:
|
||||
# Attach these labels to any time series or alerts when communicating with
|
||||
# external systems (federation, remote storage, Alertmanager).
|
||||
external_labels:
|
||||
monitor: 'codelab-monitor'
|
||||
|
||||
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
|
||||
@ -27,4 +28,4 @@ scrape_configs:
|
||||
# scheme defaults to 'http'.
|
||||
|
||||
target_groups:
|
||||
- targets: ['localhost:9090','exporter:9104','cadvisor:8080']
|
||||
- targets: ['localhost:9090','cadvisor:8080']
|
||||
|
Reference in New Issue
Block a user