Files
windows_exporter/contrib/mixin/tests/config.libsonnet
T
Jan-Otto Kröpke f8f2a71d77 mixin: remove enableActiveDirectory and enableTime
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>
2026-10-17 07:27:15 +00:00

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.*"',
},
}