mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-18 10:39:05 +02:00
collectors.ad and collectors.time are the only switches for the Active Directory and clock alerts, like every other opt-in collector. Setting the removed keys fails the build with a message naming the replacement. Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
42 lines
1.2 KiB
Jsonnet
42 lines
1.2 KiB
Jsonnet
(import '../mixin.libsonnet') {
|
|
_config+:: {
|
|
windowsExporterSelector: 'job=~"windows.*", cluster="test"',
|
|
volumeSelector: 'volume!~"HarddiskVolume.*"',
|
|
nicSelector: 'nic!="Loopback"',
|
|
rateInterval: '2m',
|
|
cpuHighUsageThreshold: 80,
|
|
memoryHighUsageThreshold: 85,
|
|
diskFreeWarningThreshold: 20,
|
|
diskFreeCriticalThreshold: 10,
|
|
criticalSeverity: 'page',
|
|
runbookURLPattern: 'https://runbooks.example.com/windows/%s/',
|
|
memoryCommitHighUsageThreshold: 80,
|
|
diskLatencyThresholdSeconds: 0.02,
|
|
networkErrorRatioThreshold: 0.5,
|
|
networkDiscardRatioThreshold: 0.5,
|
|
clockOffsetThresholdSeconds: 0.1,
|
|
adPendingReplicationThreshold: 10,
|
|
adReplicationFailureRateThreshold: 0.5,
|
|
collectors+: {
|
|
ad: true,
|
|
dhcp: true,
|
|
diskdrive: true,
|
|
dns: true,
|
|
hyperv: true,
|
|
license: true,
|
|
mscluster: true,
|
|
pagefile: true,
|
|
scheduled_task: true,
|
|
storage_spaces: true,
|
|
time: true,
|
|
update: true,
|
|
},
|
|
pagefileUsageThreshold: 75,
|
|
dhcpScopeFreeWarningThreshold: 20,
|
|
dhcpScopeFreeCriticalThreshold: 5,
|
|
updatePendingDuration: '2d',
|
|
dnsZoneTransferFailureRateThreshold: 0.05,
|
|
taskSelector: 'task!~"/Ignored.*"',
|
|
},
|
|
}
|