Merge ~stub/charm-telegraf:pgarchiver into ~telegraf-charmers/charm-telegraf:master

Proposed by Stuart Bishop
Status: Merged
Approved by: Stuart Bishop
Approved revision: 676caf7dbb55094dd4061f51d63fc48a561c6d4e
Merged at revision: c6b6f6880852914d18d5af1cbb8112e634b80712
Proposed branch: ~stub/charm-telegraf:pgarchiver
Merge into: ~telegraf-charmers/charm-telegraf:master
Diff against target: 22 lines (+13/-0)
1 file modified
templates/postgresql.tmpl (+13/-0)
Reviewer Review Type Date Requested Status
Joel Sing (community) +1 Approve
Canonical IS Reviewers Pending
Review via email: mp+362715@code.launchpad.net

Commit message

pg_stat_archiver PostgreSQL metrics

pg_stat_archiver provides non-streaming WAL shipping metrics

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Joel Sing (jsing) wrote :

LGTM

review: Approve (+1)
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision c6b6f6880852914d18d5af1cbb8112e634b80712

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/templates/postgresql.tmpl b/templates/postgresql.tmpl
index db721d5..2eee7f8 100644
--- a/templates/postgresql.tmpl
+++ b/templates/postgresql.tmpl
@@ -132,6 +132,19 @@
132 pg_xlog_location_diff(pg_current_xlog_insert_location(), replay_location)::integer AS lag_bytes132 pg_xlog_location_diff(pg_current_xlog_insert_location(), replay_location)::integer AS lag_bytes
133 FROM pg_stat_replication"""133 FROM pg_stat_replication"""
134{% endif %}134{% endif %}
135
136[[inputs.postgresql_extensible.query]]
137 withdbname=false
138 tagvalue=""
139 version=904
140 sqlquery="""
141 SELECT
142 archived_count AS archive_archived_count,
143 EXTRACT(EPOCH FROM last_archived_time) AS archive_last_archived_time,
144 failed_count AS archive_failed_count,
145 EXTRACT(EPOCH FROM last_failed_time) AS archive_last_failed_time
146 FROM pg_stat_archiver"""
147
135{% endif %}148{% endif %}
136149
137150

Subscribers

People subscribed via source and target branches

to all changes: