159 lines
4.5 KiB
YAML
Executable File
159 lines
4.5 KiB
YAML
Executable File
# Sample config for Prometheus.
|
|
|
|
global:
|
|
scrape_interval: 120s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
|
|
evaluation_interval: 60s # Evaluate rules every 15 seconds. The default is every 1 minute.
|
|
# scrape_timeout: 30s # 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: 'example'
|
|
|
|
#Storage-Optionen
|
|
storage:
|
|
tsdb:
|
|
retention:
|
|
time: 7200d # Deine gewünschte Zeit
|
|
size: 0 # Optional: Max Size (0 = deaktiviert)
|
|
|
|
|
|
|
|
# Alertmanager configuration
|
|
alerting:
|
|
alertmanagers:
|
|
- static_configs:
|
|
- targets: ['localhost:9093']
|
|
|
|
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
|
|
rule_files:
|
|
# - "first_rules.yml"
|
|
# - "second_rules.yml"
|
|
|
|
# A scrape configuration containing exactly one endpoint to scrape:
|
|
# Here it's Prometheus itself.
|
|
scrape_configs:
|
|
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
|
|
# - job_name: 'prometheus'
|
|
# scrape_interval: 10s
|
|
# scrape_timeout: 5s
|
|
# static_configs:
|
|
# - targets: ['localhost:9090']
|
|
|
|
# - job_name: node
|
|
# # If prometheus-node-exporter is installed, grab stats about the local
|
|
# # machine by default.
|
|
# static_configs:
|
|
# - targets: ['localhost:9100']
|
|
# - targets: ['192.168.178.80:9100']
|
|
# - targets: ['192.168.178.187:9100']
|
|
# - targets: ['192.168.178.204:9100']
|
|
# - targets: ['192.168.178.183:9100']
|
|
|
|
# Example Prometheus scrape_configs entry
|
|
- job_name: "homeassistant"
|
|
scrape_interval: 60s
|
|
metrics_path: /api/prometheus
|
|
|
|
# Long-Lived Access Token
|
|
authorization:
|
|
credentials: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3ZGI4OTBkMTQ0NzI0NWJlOTk2N2VlZjFlMTM3MTJlNiIsImlhdCI6MTc2NjQ3NjQ2MiwiZXhwIjoyMDgxODM2NDYyfQ.1sx_LA3f1sEXlBe0-ONVCacNNIEe2KcsWu6MmZBmzTc"
|
|
|
|
scheme: http
|
|
static_configs:
|
|
- targets: ['192.168.178.200:8123']
|
|
|
|
# - job_name: 'uptime'
|
|
# scrape_interval: 30s
|
|
# scheme: http
|
|
# metrics_path: '/metrics'
|
|
# static_configs:
|
|
# - targets: ['192.168.178.183:9001']
|
|
# basic_auth: # Only needed if authentication is enabled (default)
|
|
# username: admin
|
|
# password: tuSEt0jIgV8Y8z
|
|
|
|
# - job_name: "pihole"
|
|
# metrics_path: /metrics
|
|
# static_configs:
|
|
# - targets: ['192.168.178.183:9617']
|
|
|
|
# - job_name: 'adguard'
|
|
# metrics_path: /metrics
|
|
# static_configs:
|
|
# - targets: ['192.168.178.183:9618']
|
|
|
|
- job_name: 'pve01'
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.178.80
|
|
metrics_path: /pve
|
|
# params:
|
|
# module: [default]
|
|
relabel_configs:
|
|
- source_labels: [__address__]
|
|
target_label: __param_target
|
|
- source_labels: [__param_target]
|
|
target_label: instance
|
|
- target_label: __address__
|
|
replacement: 192.168.178.183:9221 # PVE exporter.
|
|
# - targets: ['192.168.178.183:9619/pve?target=192.168.178.80']
|
|
|
|
- job_name: 'pve02'
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.178.187
|
|
metrics_path: /pve
|
|
# params:
|
|
# module: [default]
|
|
relabel_configs:
|
|
- source_labels: [__address__]
|
|
target_label: __param_target
|
|
- source_labels: [__param_target]
|
|
target_label: instance
|
|
- target_label: __address__
|
|
replacement: 192.168.178.183:9221 # PVE exporter.
|
|
|
|
- job_name: 'pve03'
|
|
static_configs:
|
|
- targets:
|
|
- 192.168.178.204
|
|
metrics_path: /pve
|
|
# params:
|
|
# module: [pve03]
|
|
relabel_configs:
|
|
- source_labels: [__address__]
|
|
target_label: __param_target
|
|
- source_labels: [__param_target]
|
|
target_label: instance
|
|
- target_label: __address__
|
|
replacement: 192.168.178.183:9221 # PVE exporter.
|
|
|
|
# - job_name: 'jellyfin'
|
|
# scheme: http
|
|
# metrics_path: /metrics
|
|
# static_configs:
|
|
# - targets: ['192.168.178.183:8096']
|
|
|
|
# - job_name: 'paperless'
|
|
# scheme: http
|
|
# metrics_path: /metrics
|
|
# static_configs:
|
|
# - targets: ['192.168.178.183:9622']
|
|
|
|
# - job_name: 'WUD'
|
|
# scheme: http
|
|
# metrics_path: /metrics
|
|
# static_configs:
|
|
# - targets: ['192.168.178.183:9700']
|
|
# basic_auth:
|
|
# username: sven
|
|
# password: gObtv#&^!KR$n7
|
|
# password: $apr1$$ir3cptob$eBkIR.L31wK4DlmGYRrEh.
|
|
|
|
- job_name: docker
|
|
# metrics_path defaults to '/metrics'
|
|
# scheme defaults to 'http'.
|
|
static_configs:
|
|
- targets: ["192.168.178.183:9323"]
|