summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0eff2a8)
raw | patch | inline | side by side (parent: 0eff2a8)
author | daniacs <daniacs@gmail.com> | |
Fri, 20 Oct 2017 16:36:12 +0000 (14:36 -0200) | ||
committer | GitHub <noreply@github.com> | |
Fri, 20 Oct 2017 16:36:12 +0000 (14:36 -0200) |
A simple way collectd to identify itself to pg_stat_activity view.
src/postgresql.c | patch | blob | history |
diff --git a/src/postgresql.c b/src/postgresql.c
index 3b702aeef83491d590a631e142f37fec856151c1..b122dfe5397d53144026b0458c783517e57a2f61 100644 (file)
--- a/src/postgresql.c
+++ b/src/postgresql.c
C_PSQL_PAR_APPEND(buf, buf_len, "sslmode", db->sslmode);
C_PSQL_PAR_APPEND(buf, buf_len, "krbsrvname", db->krbsrvname);
C_PSQL_PAR_APPEND(buf, buf_len, "service", db->service);
+ C_PSQL_PAR_APPEND(buf, buf_len, "application_name", "collectd_postgresql");
db->conn = PQconnectdb(conninfo);
db->proto_version = PQprotocolVersion(db->conn);