Fix build for auto-discover-databases feature

This commit is contained in:
Arno Geurts 2019-04-16 12:08:03 +02:00 committed by Will Rouesnel
parent 4d96104c10
commit 85c31524f6

View File

@ -914,6 +914,7 @@ func DisableSettingsMetrics(b bool) ExporterOpt {
}
}
// AutoDiscoverDatabases allows scraping all databases on a database server.
func AutoDiscoverDatabases(b bool) ExporterOpt {
return func(e *Exporter) {
e.autoDiscoverDatabases = b