forked from corundex/database_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatabase_exporter.yml
25 lines (22 loc) · 1.22 KB
/
database_exporter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Global defaults.
global:
# Subtracted from Prometheus' scrape_timeout to give us some headroom and prevent Prometheus from timing out first.
scrape_timeout_offset: 500ms
# Minimum interval between collector runs: by default (0s) collectors are executed on every scrape.
min_interval: 0s
# Maximum number of open connections to any one target. Metric queries will run concurrently on multiple connections,
# as will concurrent scrapes.
max_connections: 3
# Maximum number of idle connections to any one target. Unless you use very long collection intervals, this should
# always be the same as max_connections.
max_idle_connections: 3
# The target to monitor and the collectors to execute on it.
target:
# Data source name always has a URI schema that matches the driver name. In some cases (e.g. MySQL)
# the schema gets dropped or replaced to match the driver expected DSN format.
data_source_name: 'sqlite3://file::memory:?mode=memory&cache=shared'
# Collectors (referenced by name) to execute on the target.
collectors: [sqlite_metrics]
# Collector files specifies a list of globs. One collector definition is read from each matching file.
collector_files:
- "./config/sqlite_collectors/*.collector.yml"