1 |
dpavlin |
1.1 |
Target --default-- |
2 |
|
|
rrd-datafile = %dataDir%/%auto-target-name%.rrd |
3 |
|
|
target-type = pg_stat |
4 |
|
|
|
5 |
|
|
# change this for your configuration |
6 |
|
|
parse-script = "/data/cricket/parse_pg_stat.pl %auto-target-name%" |
7 |
|
|
|
8 |
|
|
datasource --default-- |
9 |
|
|
rrd-ds-type = DERIVE |
10 |
|
|
rrd-min = 0 |
11 |
|
|
rrd-heartbeat = 1800 |
12 |
|
|
precision = integer |
13 |
|
|
|
14 |
|
|
datasource numbackends |
15 |
|
|
ds-source = "exec:0:%parse-script%" |
16 |
|
|
datasource xact_commit |
17 |
|
|
ds-source = "exec:1:%parse-script%" |
18 |
|
|
datasource xact_rollback |
19 |
|
|
ds-source = "exec:2:%parse-script%" |
20 |
|
|
datasource blks_read |
21 |
|
|
ds-source = "exec:3:%parse-script%" |
22 |
|
|
datasource blks_hit |
23 |
|
|
ds-source = "exec:4:%parse-script%" |
24 |
|
|
|
25 |
|
|
targetType pg_stat |
26 |
|
|
ds = "numbackends, xact_commit, xact_rollback, blks_read, blks_hit" |
27 |
|
|
view = "Transactions: numbackends xact_commit xact_rollback, |
28 |
|
|
Disk: blks_read blks_hit" |
29 |
|
|
|
30 |
|
|
|
31 |
|
|
# which host to connect to? (it will use template1 database) |
32 |
|
|
#target hostname.domain |