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

33 lines
994 B
YAML

global:
scrape_interval: "15s" # Default is every 1 minute.
evaluation_interval: "15s" # Default is every 1 minute.
# 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: "{{ 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" ]