95 lines
2.5 KiB
YAML
Executable File
95 lines
2.5 KiB
YAML
Executable File
# my global config
|
|
global:
|
|
scrape_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).
|
|
|
|
# Attach these labels to any time series or alerts when communicating with
|
|
# external systems (federation, remote storage, Alertmanager).
|
|
external_labels:
|
|
monitor: 'codelab-monitor'
|
|
|
|
remote_write:
|
|
- url: "http://victoriametrics:8428/api/v1/write"
|
|
queue_config:
|
|
max_samples_per_send: 1000
|
|
capacity: 2500
|
|
|
|
|
|
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
|
|
rule_files:
|
|
# - "first.rules"
|
|
# - "second.rules"
|
|
|
|
# A scrape configuration containing exactly one endpoint to scrape:
|
|
# Here it's Prometheus itself.
|
|
scrape_configs:
|
|
# --- POPRAWIONA SEKCJA PROMETHEUS ---
|
|
- job_name: 'prometheus'
|
|
scrape_interval: 5s # Zostawiamy tylko jeden, krótszy interwał
|
|
static_configs:
|
|
- targets: ['localhost:9090']
|
|
basic_auth:
|
|
username: 'seba'
|
|
password: 'poplar_customize9_douche' # <-- Tu wpisz to samo hasło, co wcześniej
|
|
# Reszta wygląda OK, ale dla porządku w YAML:
|
|
|
|
- job_name: "node-exporter"
|
|
scrape_interval: "15s"
|
|
static_configs:
|
|
- targets: ['acemagic:9100', 'rpi4:9100', 'sebas-macpro:9100', 'asustor-lan1:9100', 'mycloud:9100','crowdsec:6060' ]
|
|
|
|
- job_name: "ping-exporter"
|
|
scrape_interval: "15s"
|
|
static_configs:
|
|
- targets: ['acemagic:9427']
|
|
|
|
- job_name: 'cadvisor'
|
|
static_configs:
|
|
- targets: ['cadvisor:8080']
|
|
|
|
- job_name: 'home-assistant'
|
|
scrape_interval: 10s
|
|
metrics_path: /api/prometheus
|
|
bearer_token: 'PROMETHEUS_BEARER_TOKEN_REDACTED'
|
|
scheme: http
|
|
static_configs:
|
|
- targets: ['192.168.1.132:8123']
|
|
|
|
- job_name: 'traefik'
|
|
scrape_interval: "5s"
|
|
static_configs:
|
|
- targets: ['traefik:8080']
|
|
|
|
- job_name: 'pushgateway'
|
|
scrape_interval: "5s"
|
|
honor_labels: true
|
|
static_configs:
|
|
- targets: ['192.168.1.132:9091']
|
|
|
|
- job_name: 'postgres'
|
|
static_configs:
|
|
- targets: ['postgres-exporter:9187']
|
|
|
|
- job_name: 'smartctl'
|
|
static_configs:
|
|
- targets: ['smartctl-exporter:9633']
|
|
|
|
- job_name: 'mktxp'
|
|
scrape_interval: 30s
|
|
static_configs:
|
|
- targets: ['mktxp:49090']
|
|
|
|
- job_name: 'wireguard'
|
|
static_configs:
|
|
- targets: ['172.17.0.1:9586']
|
|
labels:
|
|
instance: 'wireguard-server'
|
|
alerting:
|
|
alertmanagers:
|
|
- scheme: http
|
|
static_configs:
|
|
- targets:
|
|
- "alertmanager:9093"
|
|
|