Commit Graph

5 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) 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