-
Notifications
You must be signed in to change notification settings - Fork 40
/
sample-config.yml
77 lines (68 loc) · 2.68 KB
/
sample-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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# This is a sample configuration file for the iDRAC exporter,
# including default values and equivalent environment variables.
# The environment variables take precedence over the values in
# the configuration file.
# Listen address
# Default value: 0.0.0.0
# Environment variable CONFIG_ADDRESS=0.0.0.0
address: 0.0.0.0
# Listen port
# Default value: 9348
# Environment variable CONFIG_PORT=9348
port: 9348
# HTTP timeout in seconds for Redfish API calls
# Default value: 10
# Environment variable CONFIG_TIMEOUT=10
timeout: 10
# Retries before a target is marked as invalid (use 0 to disable invalidation)
# Default value: 0
# Environment variable CONFIG_RETRIES=0
retries: 0
# Prefix for the exported metrics
# Default value: idrac
# Environment variable CONFIG_METRICS_PREFIX=idrac
metrics_prefix: idrac
# The TLS section is used to enable HTTPS for the exporter. To enable TLS you
# need a PEM encoded certificate and private key. The public certificate must
# include the entire chain of trust.
# TLS can also be configured using the corresponding environment variables.
tls:
enabled: false # CONFIG_TLS_ENABLED=false
cert_file: "" # CONFIG_TLS_CERT_FILE=
key_file: "" # CONFIG_TLS_KEY_FILE=
# The hosts section is used to define login information for the different targets.
# Hosts can be referenced either via their IP address or their hostname, as long
# as it matches the "target" parameter when scraping metrics.
#
# When the "target" does not match any host, the exporter will attempt to use the
# login information under "default".
#
# The default username and password can be configured using the two environment
# variables CONFIG_DEFAULT_USERNAME and CONFIG_DEFAULT_PASSWORD
hosts:
default:
username: user
password: pass
192.168.1.1:
username: user
password: pass
host01.example.com:
username: user
password: pass
# The metrics section is used to select different groups of metrics.
# See the README file for a detailed list of metrics in each group.
# Each section can also be enabled using an environment variable.
metrics:
system: false # CONFIG_METRICS_SYSTEM=true
sensors: false # CONFIG_METRICS_SENSORS=true
power: false # CONFIG_METRICS_POWER=true
events: false # CONFIG_METRICS_EVENTS=true
storage: false # CONFIG_METRICS_STORAGE=true
memory: false # CONFIG_METRICS_MEMORY=true
network: false # CONFIG_METRICS_NETWORK=true
# The events section is used for filtering events when the "events" metrics group
# is enabled. Events can be filtered based on minimum severity and maximum age.
# Severity must be one of "ok", "warning", "critical"
events:
severity: warning # CONFIG_EVENTS_SEVERITY=warning
maxage: 7d # CONFIG_EVENTS_MAXAGE=7d