-
Notifications
You must be signed in to change notification settings - Fork 16
/
config.yml
49 lines (44 loc) · 1.72 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Port can be overridden by using -p if running development quart
#port: 9638
icinga2:
# The url to the icinga2 server
url: https://127.0.0.1:5665
# The icinga2 username
user: root
# The icinga2 password
passwd: cf593406ffcfd2ef
# Verify the ssl certificate, default false
verify: false
# Timeout accessing icinga server, default 5 sec
timeout: 5
# All prometheus metrics will be prefixed with this string
metric_prefix: icinga2
# Enables a separate request to fetch host metadata like state and state_type. Default false
enable_scrape_metadata: true
# Enables export of warning and critical threshold values. Default false
enable_scrape_thresholds: false
# Set the service name for host check metric, default is alive - only change this if it is a name conflict with other
# services
# host_check_service_name: alive
# Example of host customer variables that should be added as labels and how to be translated
host_custom_vars:
# Specify which custom_vars to extract from hosts in icinga2
- env:
# Name of the label in Prometheus
label_name: environment
- site:
label_name: dc
# This section enable that for specific check commands the perfdata metrics name will not be part of the
# prometheus metrics name, instead moved to a label
# E.g for the disk command the perfdata name will be set to the label disk like:
# icinga2_disk_bytes{hostname="icinga2", service="disk", os="Docker", disk="/var/log/icinga2"}
perfnametolabel:
# The command name
disk:
# the label name to be used
label_name: mount
logger:
# Path and name for the log file. If not set send to stdout
#logfile: /var/tmp/icinga2-exporter.log
# Log level
level: INFO