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:
parent
a005a0c359
commit
d75036ea45
@ -2,10 +2,10 @@ prometheus:
|
|||||||
build: "prom/"
|
build: "prom/"
|
||||||
ports:
|
ports:
|
||||||
- "9090:9090"
|
- "9090:9090"
|
||||||
container_name: prometheus
|
name: prometheus
|
||||||
links:
|
links:
|
||||||
- "exporter:export"
|
- "exporter:export"
|
||||||
- "cadvisor:cad"
|
- "cadvisor:cadvisor"
|
||||||
|
|
||||||
exporter:
|
exporter:
|
||||||
image: "prom/container-exporter"
|
image: "prom/container-exporter"
|
||||||
@ -16,7 +16,7 @@ exporter:
|
|||||||
- "9104:9104"
|
- "9104:9104"
|
||||||
expose:
|
expose:
|
||||||
- "9104"
|
- "9104"
|
||||||
container_name: exporter
|
name: exporter
|
||||||
|
|
||||||
sqlite3:
|
sqlite3:
|
||||||
image: "prom/promdash"
|
image: "prom/promdash"
|
||||||
@ -37,7 +37,7 @@ promdash:
|
|||||||
- /tmp/prom:/tmp/prom
|
- /tmp/prom:/tmp/prom
|
||||||
environment:
|
environment:
|
||||||
- "DATABASE_URL=sqlite3:/tmp/prom/file.sqlite3"
|
- "DATABASE_URL=sqlite3:/tmp/prom/file.sqlite3"
|
||||||
container_name: promdash
|
name: "promdash"
|
||||||
|
|
||||||
cadvisor:
|
cadvisor:
|
||||||
image: "google/cadvisor"
|
image: "google/cadvisor"
|
||||||
@ -50,4 +50,4 @@ cadvisor:
|
|||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
expose:
|
expose:
|
||||||
- "8080"
|
- "8080"
|
||||||
container_name: cadvisor
|
name: "cadvisor"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM prom/prometheus:latest
|
FROM prom/prometheus:0.16.1
|
||||||
|
|
||||||
ADD prometheus.yml /etc/prometheus/prometheus.yml
|
ADD prometheus.yml /etc/prometheus/prometheus.yml
|
||||||
|
|
||||||
|
@ -4,8 +4,9 @@ global:
|
|||||||
evaluation_interval: 15s # By default, scrape targets every 15 seconds.
|
evaluation_interval: 15s # By default, scrape targets every 15 seconds.
|
||||||
# scrape_timeout is set to the global default (10s).
|
# scrape_timeout is set to the global default (10s).
|
||||||
|
|
||||||
# Attach these extra labels to all timeseries collected by this Prometheus instance.
|
# Attach these labels to any time series or alerts when communicating with
|
||||||
labels:
|
# external systems (federation, remote storage, Alertmanager).
|
||||||
|
external_labels:
|
||||||
monitor: 'codelab-monitor'
|
monitor: 'codelab-monitor'
|
||||||
|
|
||||||
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
|
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
|
||||||
@ -27,4 +28,4 @@ scrape_configs:
|
|||||||
# scheme defaults to 'http'.
|
# scheme defaults to 'http'.
|
||||||
|
|
||||||
target_groups:
|
target_groups:
|
||||||
- targets: ['localhost:9090','exporter:9104','cadvisor:8080']
|
- targets: ['localhost:9090','cadvisor:8080']
|
||||||
|
Loading…
Reference in New Issue
Block a user