forked from opsdis/monitor-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
60 lines (54 loc) · 1.88 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
50
51
52
53
54
55
56
57
58
59
60
# Port can be overridden by using -p if running development flask
#port: 9631
cache:
# Use redis for cache - future may support others
# Values below is the default
redis:
# redis host
host: localhost
# redis port
port: 6379
# the auth string used in redis
#auth: secretstuff
# the redis db to use
db: 0
# The interval to collect data from Monitor
interval: 60
# The time to live for the stored Monitor objects in the redis cache
ttl: 300
op5monitor:
# The url to the Monitor server
url: https://foo.com
# Monitor username - with api access rights
user: administrator
# Monitor password
passwd: admin
# The prefix that will be set for all metrics
metric_prefix: monitor
# Allow or disallow all host custom variables in Monitor to Prometheus labels
# If false only the custom variables in "host_custom_vars" is allowed
# default False
all_custom_vars: True
# Specify which custom_vars to translate from Monitor
host_custom_vars:
- env:
# Translate custom variable "env" to the label "environment" in Prometheus
label_name: environment
- site:
# Translate custom variable "site" to the label "dc" in Prometheus
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 self_check_by_snmp_disk_usage_v3 command the perfdata name will be set to the label disk like:
# monitor_self_check_by_snmp_disk_usage_v3_bytes{hostname="monitor", service="Disk usage /", disk="/_used"}
perfnametolabel:
# The command name
self_check_by_snmp_disk_usage_v3:
label_name: disk
check_disk_local_mb:
label_name: local_disk
logger:
# Path and name for the log file. If not set send to stdout
#logfile: /var/tmp/monitor-exporter.log
# Log level
level: INFO