shorten prometheus scrape interval from 30s to 15s

This commit is contained in:
oxmox 2023-09-17 01:14:15 +02:00
parent a85644ee2e
commit 3b36a039f1

View file

@ -1,30 +1,25 @@
global: global:
scrape_interval: 30s scrape_interval: 15s
scrape_timeout: 10s scrape_timeout: 10s
evaluation_interval: 1m evaluation_interval: 1m
scrape_configs: scrape_configs:
- job_name: 'traefik' - job_name: 'traefik'
scrape_interval: 1m
static_configs: static_configs:
- targets: ['traefik:8080'] - targets: ['traefik:8080']
- job_name: 'node' - job_name: 'node'
scrape_interval: 1m
static_configs: static_configs:
- targets: ['node-exporter:9100'] - targets: ['node-exporter:9100']
- job_name: 'loki' - job_name: 'loki'
scrape_interval: 1m
static_configs: static_configs:
- targets: ['loki-app:3100'] - targets: ['loki-app:3100']
#- job_name: 'docker' #- job_name: 'docker'
# scrape_interval: 1m
# static_configs: # static_configs:
# - targets: ['localhost:9323'] # - targets: ['localhost:9323']
# #
#- job_name: 'prometheus' #- job_name: 'prometheus'
# scrape_interval: 1m
# static_configs: # static_configs:
# - targets: ['host.docker.internal:9090'] # - targets: ['host.docker.internal:9090']