Clean up prometheus config file
This commit is contained in:
parent
df1a872f8a
commit
6c2daa7391
@ -1,23 +1,16 @@
|
|||||||
# my global config
|
|
||||||
global:
|
global:
|
||||||
scrape_interval: "15s" # Set the scrape interval to every 5 seconds. Default is every 1 minute.
|
scrape_interval: "15s" # Default is every 1 minute.
|
||||||
evaluation_interval: "15s" # Evaluate rules every 5 seconds. The default is every 1 minute.
|
evaluation_interval: "15s" # Default is every 1 minute.
|
||||||
# scrape_timeout is set to the global default (10s).
|
# scrape_timeout is set to the global default (10s).
|
||||||
|
|
||||||
# Attach these labels to any time series or alerts when communicating with
|
# Attach these labels to any time series or alerts when communicating with external systems
|
||||||
# external systems (federation, remote storage, Alertmanager).
|
# (federation, remote storage, Alertmanager).
|
||||||
external_labels:
|
external_labels:
|
||||||
monitor: "{{ ansible_hostname }}"
|
monitor: "{{ ansible_hostname }}"
|
||||||
|
|
||||||
# A scrape configuration containing exactly one endpoint to scrape:
|
|
||||||
# Here it"s Prometheus itself.
|
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
|
|
||||||
- job_name: "prometheus"
|
- job_name: "prometheus"
|
||||||
|
|
||||||
# metrics_path defaults to "/metrics"
|
|
||||||
# scheme defaults to "http".
|
|
||||||
|
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: [ "0.0.0.0:9090" ]
|
- targets: [ "0.0.0.0:9090" ]
|
||||||
|
|
||||||
@ -33,10 +26,6 @@ scrape_configs:
|
|||||||
# sources: as-collected | raw | average | sum | volume
|
# sources: as-collected | raw | average | sum | volume
|
||||||
# default is: average
|
# default is: average
|
||||||
source: [ "average" ]
|
source: [ "average" ]
|
||||||
#
|
|
||||||
# server name for this prometheus - the default is the client IP
|
|
||||||
# for Netdata to uniquely identify it
|
|
||||||
#server: [ "prometheus1" ]
|
|
||||||
honor_labels: true
|
honor_labels: true
|
||||||
|
|
||||||
static_configs:
|
static_configs:
|
||||||
|
Loading…
Reference in New Issue
Block a user