mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-25 04:28:01 +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 {
|
func AutoDiscoverDatabases(b bool) ExporterOpt {
|
||||||
return func(e *Exporter) {
|
return func(e *Exporter) {
|
||||||
e.autoDiscoverDatabases = b
|
e.autoDiscoverDatabases = b
|
||||||
|
Loading…
Reference in New Issue
Block a user