Add Collector for Microsoft FileSystem Resource Manager Quotas (#437)

Add Collector for Microsoft FileSystem Resource Manager

Signed-off-by: nwies <nicolas.wies@gmail.com>
This commit is contained in:
nwies
2020-06-07 17:40:55 +02:00
committed by GitHub
parent f2d8418e9f
commit 418b5b3ca9
4 changed files with 233 additions and 0 deletions

View File

@@ -109,3 +109,9 @@ func PrepareScrapeContext(collectors []string) (*ScrapeContext, error) {
return &ScrapeContext{objs}, nil
}
func boolToFloat(b bool) float64 {
if b {
return 1.0
}
return 0.0
}