sensu-plugins-edgelab 1.18.2 → 1.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/metrics-postgres-connections.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fecc442d8ab565916105f92a86ece560a6fe28260428297525a86db83f6f1f74
|
4
|
+
data.tar.gz: f220bc7a29a868a26d62de40a142d87d7c497e38bedc013837029841adf88061
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf9875358de319422494ec1d4a4b39f4fb7fbbc3063abbf7794a8d282eefd162e7416634be0d8c2a53c6b3bea329817cca2eb950637920563f4944b6e63878b3
|
7
|
+
data.tar.gz: e021de8c2fd4ca6b55f533a6dda75a6f7304765570579c22b31da052394cc739d1c46e72e8737ed6cfbac9f2bb690743ec688329c060c7626ce40bf84850c229
|
@@ -82,7 +82,7 @@ class PostgresStatsDBMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
82
82
|
# https://www.postgresql.org/docs/10/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW
|
83
83
|
query = <<END_SQL
|
84
84
|
SELECT usename, datname, replace(replace(replace(state, ' ', '_'), '(', ''), ')', '') as state, count(*)
|
85
|
-
FROM pg_stat_activity WHERE
|
85
|
+
FROM pg_stat_activity WHERE usename IS NOT NULL
|
86
86
|
GROUP BY usename, datname, state;
|
87
87
|
END_SQL
|
88
88
|
|