mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-10 04:26:35 +00:00
adds whitelist for exchange collectors (#642)
adds enable flag for exchange collectors Signed-off-by: Björn Fischer <bfischer@inovex.de>
This commit is contained in:
@@ -119,3 +119,12 @@ func boolToFloat(b bool) float64 {
|
||||
}
|
||||
return 0.0
|
||||
}
|
||||
|
||||
func find(slice []string, val string) bool {
|
||||
for _, item := range slice {
|
||||
if item == val {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user