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:
Björn Fischer
2020-11-01 18:26:14 +01:00
committed by GitHub
parent 637fc246af
commit a4aef9b3c7
3 changed files with 40 additions and 4 deletions

View File

@@ -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
}