Commit Graph

8 Commits

Author SHA1 Message Date
Ryan J. Geyer 9003ac8f0a Dashboard linting improvements for mixin
Signed-off-by: Ryan J. Geyer <me@ryangeyer.com>
2022-05-25 14:35:37 -07:00
Paweł Krupa (paulfantom) db429bd4b1 postgres_mixin/alerts: fix incorrect promql aggregation
Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
2022-04-23 08:37:16 +02:00
Paweł Krupa (paulfantom) c95fd0d482 postgres_mixin: allow parametrization of mixin by using _config object
Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
2022-04-10 16:23:24 +02:00
Paweł Krupa (paulfantom) aa38fa6ba6 postgres_mixin/alerts: change severity to "warning"
Changing severity to align with mixin recommendations from https://github.com/monitoring-mixins/docs#guidelines-for-alert-names-labels-and-annotations

Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
2022-04-10 16:22:29 +02:00
Paweł Krupa (paulfantom) 4e78805496 postgres_mixin: jsonnify alerts file
Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
2022-04-10 16:22:07 +02:00
Joe Adams 27d23d02ef
refactor pg_stat_bgwriter metrics into standalone collector
This moves the metrics that are queried from pg_stat_bgwriter into a dedicated collector instead of dynamically generating queries and metrics from a map. It renames some metrics including adding the `_total` suffix on all of the counters to match prometheus standards. This implementation uses QueryRowContext to allow for later addition of context for cancellation. From the Postgres documentation, it states that there is one line per WAL sender process, but it is unclear how to differentiate between them in any meaningful way. When querying the table, there is no column to identify the row, only metrics about bgwriter.

Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-22 21:46:43 -05:00
Kaviraj 2d6996bc31 Add templating for job, instance and datasource
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
2021-03-02 13:52:42 +01:00
Kaviraj 51225e1733 feat(mixin): Add grafana mixins support for postgres exporter
Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
2021-03-02 13:18:59 +01:00