Skip to content

Commit b0f6cab

Browse files
committed
fix: pass timeout scrape to exporter
1 parent 7dc5c37 commit b0f6cab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/postgres_exporter/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ func main() {
139139
IncludeDatabases(*includeDatabases),
140140
WithMaxOpenConnections(*maxOpenConnections),
141141
WithMaxIdleConnections(*maxIdleConnections),
142+
WithScrapeTimeout(*collectorTimeout),
142143
}
143144

144145
exporter := NewExporter(dsns, opts...)

0 commit comments

Comments
 (0)