cadvisor: reduce CPU usage

single-dockerfile
Ubuntu 2 years ago
parent 07568c6f4b
commit 8aa507e4c6
  1. 3
      prometheus.yaml
  2. 8
      prometheus/prometheus.yaml

@ -15,6 +15,9 @@ services:
image: gcr.io/cadvisor/cadvisor:latest
restart: always
container_name: cadvisor
command:
- '--housekeeping_interval=15s'
- '--docker_only=true'
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw

@ -1,17 +1,17 @@
global:
scrape_interval: 15s
scrape_interval: 30s
external_labels:
monitor: 'codelab-monitor'
scrape_configs:
# nginx vts data
- job_name: 'nginx'
scrape_interval: 5s
scrape_interval: 30s
metrics_path: "/status/format/prometheus"
static_configs:
- targets: ['nginx:80']
- job_name: 'metrics'
scrape_interval: 5s
scrape_interval: 30s
static_configs:
# grafana data from /metrics
- targets: ['dashboard:3000']
@ -20,7 +20,7 @@ scrape_configs:
# cadvisor system
- targets: ['cadvisor:8080']
- job_name: "synapse"
scrape_interval: 15s
scrape_interval: 30s
metrics_path: "/_synapse/metrics"
static_configs:
- targets: ["matrix-synapse:9000"]

Loading…
Cancel
Save