Cristian Greco
77e1a0d65a
Update mixin to latest changes from grafana/postgres_exporter ( #1179 )
...
* Update mixin to latest changes from grafana/postgres_exporter
Porting a bunch of PRs accumulated over time in grafana/postgres_exporter:
- https://github.com/grafana/postgres_exporter/pull/11 (@v-zhuravlev)
- https://github.com/grafana/postgres_exporter/pull/12 (@gaantunes)
- https://github.com/grafana/postgres_exporter/pull/13 (@gaantunes)
- https://github.com/grafana/postgres_exporter/pull/14 (@gaantunes)
- https://github.com/grafana/postgres_exporter/pull/15 (@gaantunes)
- https://github.com/grafana/postgres_exporter/pull/16 (@gaantunes)
- https://github.com/grafana/postgres_exporter/pull/17 (@gaantunes)
- https://github.com/grafana/postgres_exporter/pull/20 (@gaantunes)
- https://github.com/grafana/postgres_exporter/pull/21 (@mshahzeb)
- https://github.com/grafana/postgres_exporter/pull/22 (@mshahzeb)
Signed-off-by: Cristian Greco <cristian@regolo.cc >
* rename dashboard to old name
Signed-off-by: Cristian Greco <cristian@regolo.cc >
* remove custom selector
Signed-off-by: Cristian Greco <cristian@regolo.cc >
---------
Signed-off-by: Cristian Greco <cristian@regolo.cc >
Co-authored-by: Vitaly <v-zhuravlev@users.noreply.github.com >
2025-07-25 10:28:24 +02:00
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