3   # If scrape_timeout <= 0, no timeout is set unless Prometheus provides one. The default is 10s.
 
   5   # Subtracted from Prometheus' scrape_timeout to give us some headroom and prevent Prometheus from timing out first.
 
   6   scrape_timeout_offset: 500ms
 
   7   # Minimum interval between collector runs: by default (0s) collectors are executed on every scrape.
 
   9   # Maximum number of open connections to any one target. Metric queries will run concurrently on multiple connections,
 
  10   # as will concurrent scrapes.
 
  12   # Maximum number of idle connections to any one target. Unless you use very long collection intervals, this should
 
  13   # always be the same as max_connections.
 
  14   max_idle_connections: 3
 
  15   # Maximum number of maximum amount of time a connection may be reused. Expired connections may be closed lazily before reuse.
 
  16   # If 0, connections are not closed due to a connection's age.
 
  17   max_connection_lifetime: 5m
 
  19 # The target to monitor and the collectors to execute on it.
 
  21   # Data source name always has a URI schema that matches the driver name. In some cases (e.g. MySQL)
 
  22   # the schema gets dropped or replaced to match the driver expected DSN format.
 
  23   data_source_name: postgres
 
  25   # Collectors (referenced by name) to execute on the target.
 
  26   # Glob patterns are supported (see <https://pkg.go.dev/path/filepath#Match> for syntax).
 
  29 # Collector files specifies a list of globs. One collector definition is read from each matching file.
 
  30 # Glob patterns are supported (see <https://pkg.go.dev/path/filepath#Match> for syntax).
 
  32   - "sql_*.collector.yml"