ansible-edda/playbooks/roles/services/deploy/metrics/templates/prometheus.yml

33 lines
994 B
YAML
Raw Normal View History

2023-10-22 18:31:32 +02:00
global:
2023-11-10 19:12:48 +01:00
scrape_interval: "15s" # Default is every 1 minute.
evaluation_interval: "15s" # Default is every 1 minute.
2023-10-22 18:31:32 +02:00
# scrape_timeout is set to the global default (10s).
2023-11-10 19:12:48 +01:00
# Attach these labels to any time series or alerts when communicating with external systems
# (federation, remote storage, Alertmanager).
2023-10-22 18:31:32 +02:00
external_labels:
monitor: "{{ ansible_hostname }}"
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: [ "0.0.0.0:9090" ]
- job_name: "netdata"
metrics_path: "/api/v1/allmetrics"
params:
# format: prometheus | prometheus_all_hosts
# You can use `prometheus_all_hosts` if you want Prometheus to set the `instance` to your
# hostname instead of IP
format: [ "prometheus_all_hosts" ]
#
# sources: as-collected | raw | average | sum | volume
# default is: average
source: [ "average" ]
honor_labels: true
static_configs:
- targets: [ "metrics-target:19999" ]