|
1 | | -- name: test1 # an arbitrary name for the monitored DB. functions also as prefix for found DBs if using continuous discovery "dbtype"-s |
2 | | - # Should be chosen carefully - cannot be (easily) changed for the already stored metric data! |
3 | | - kind: postgres # postgres|postgres-continuous-discovery|pgbouncer|pgpool|patroni|patroni-continuous-discovery|patroni-namespace-discovery |
4 | | - # defaults to postgres if not specified |
5 | | - conn_str: postgresql://pgwatch:pgwatchadmin@localhost/pgwatch |
6 | | - is_superuser: false # setting to true will try to auto-create all metric fetching "helpers" |
7 | | - preset_metrics: exhaustive # from list of presets defined in "metrics/preset-configs.yaml" |
8 | | - custom_metrics: # if both preset and custom are specified, custom wins |
9 | | - preset_metrics_standby: # optional metrics configuration for standby / replica state, v1.8.1+ |
| 1 | +- name: test1 # An arbitrary unique name for the monitored source |
| 2 | + conn_str: postgresql://pgwatch:pgwatchadmin@somehost/mydb |
| 3 | + kind: postgres # One of the: |
| 4 | + # - postgres |
| 5 | + # - postgres-continuous-discovery |
| 6 | + # - pgbouncer |
| 7 | + # - pgpool |
| 8 | + # - patroni |
| 9 | + # - patroni-continuous-discovery |
| 10 | + # - patroni-namespace-discover |
| 11 | + # Defaults to postgres if not specified |
| 12 | + preset_metrics: exhaustive # from list of presets defined in "metrics/preset-configs.yaml" |
| 13 | + custom_metrics: # if both preset and custom are specified, custom wins |
| 14 | + preset_metrics_standby: # optional metrics configuration for standby / replica state, v1.8.1+ |
10 | 15 | custom_metrics_standby: |
11 | | - include_pattern: # regex to filter databases to actually monitor for the "continuous" modes |
| 16 | + include_pattern: # regex to filter databases to actually monitor for the "continuous" modes |
12 | 17 | exclude_pattern: |
13 | 18 | is_enabled: true |
14 | | - group: default # just for logical grouping of DB hosts or for "sharding", i.e. splitting the workload between many gatherer daemons |
15 | | - custom_tags: # option to add arbitrary tags (Influx / Postgres storage only) for every stored data row, |
16 | | - aws_instance_id: i-0af01c0123456789a # for example to fetch data from some other source onto a same Grafana graph |
17 | | - sslrootcert: '' |
18 | | - sslcert: '' |
19 | | - sslkey: '' |
| 19 | + group: default # just for logical grouping of DB hosts or for "sharding", i.e. splitting the workload between many gatherer daemons |
| 20 | + custom_tags: # option to add arbitrary tags for every stored data row, |
| 21 | + aws_instance_id: i-0af01c0123456789a # for example to fetch data from some other source onto a same Grafana graph |
20 | 22 |
|
21 | 23 | - name: test2 |
22 | 24 | kind: patroni-continuous-discovery |
|
48 | 50 | pgbouncer_stats: 10 |
49 | 51 | pgbouncer_clients: 10 |
50 | 52 | is_enabled: true |
51 | | - sslrootcert: '' |
52 | | - sslcert: '' |
53 | | - sslkey: '' |
54 | 53 |
|
55 | 54 | - name: envvar |
56 | 55 | kind: $kind |
|
0 commit comments