File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,16 @@ setuid postgres_exporter
23
23
setgid postgres_exporter
24
24
script
25
25
DATA_SOURCE_NAME=postgresql://vocabincontext:vocabincontext@localhost/postgres \\
26
- /home/postgres_exporter/postgres_exporter -web.listen-address :9113
26
+ /home/postgres_exporter/postgres_exporter -web.listen-address :9113 \\
27
+ -extend.query-path /home/postgres_exporter/queries.yaml
27
28
end script
28
29
EOF2
29
30
31
+ sudo -u postgres_exporter tee /home/postgres_exporter/queries.yaml <<EOF2
32
+ pg_stat_replication:
33
+ query: select 1 where 1 = 0
34
+ EOF2
35
+
30
36
sudo service postgres_exporter stop || true
31
37
sudo mv /root/postgres_exporter /home/postgres_exporter/postgres_exporter
32
38
sudo chown postgres_exporter:postgres_exporter /home/postgres_exporter/postgres_exporter
You can’t perform that action at this time.
0 commit comments