From cf9c357800fced58c4cd90ce7859cfd060f7cb5f Mon Sep 17 00:00:00 2001 From: Thomas Menard Date: Thu, 11 Feb 2016 13:07:22 +0100 Subject: [PATCH] Fix number 1256 for postgresql plugin Fix the postgresql_test.go to add the bgwriter stats --- plugins/inputs/postgresql/postgresql_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/inputs/postgresql/postgresql_test.go b/plugins/inputs/postgresql/postgresql_test.go index 3a2ccb1b0..253e0830f 100644 --- a/plugins/inputs/postgresql/postgresql_test.go +++ b/plugins/inputs/postgresql/postgresql_test.go @@ -45,6 +45,16 @@ func TestPostgresqlGeneratesMetrics(t *testing.T) { "temp_bytes", "deadlocks", "numbackends", + "buffers_alloc", + "buffers_backend", + "buffers_backend_fsync", + "buffers_checkpoint", + "buffers_clean", + "checkpoint_sync_time", + "checkpoint_write_time", + "checkpoints_req", + "checkpoints_timed", + "maxwritten_clean", } floatMetrics := []string{