mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-27 18:55:17 +00:00
45 lines
1.6 KiB
YAML
45 lines
1.6 KiB
YAML
# my global config
|
|
global:
|
|
scrape_interval: {{ stats_collection_interval }} # Set the scrape interval to every 15 seconds. Default is every 1 minute.
|
|
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
|
|
# scrape_timeout is set to the global default (10s).
|
|
|
|
# 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"
|
|
static_configs:
|
|
- targets: ["localhost:{{ stats_prometheus_port }}"]
|
|
|
|
- job_name: "telegraf"
|
|
static_configs:
|
|
- targets: [
|
|
"{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:{{ stats_telegraf_port }}",
|
|
]
|
|
|
|
- job_name: "smartctl"
|
|
static_configs:
|
|
- targets: [
|
|
"{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:{{ stats_prometheus_smartctl_port }}"
|
|
]
|
|
|
|
- job_name: "traefik"
|
|
static_configs:
|
|
- targets: [
|
|
"{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:8083"
|
|
]
|
|
|
|
- job_name: "speedtest"
|
|
scrape_interval: 1h
|
|
scrape_timeout: 5m
|
|
static_configs:
|
|
- targets: [
|
|
"{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:{{ stats_speedtest_exporter_port }}"
|
|
]
|
|
|