mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-06 17:22:09 +00:00
Fix build for auto-discover-databases feature
This commit is contained in:
parent
4d96104c10
commit
85c31524f6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user