Commit Graph

357 Commits

Author SHA1 Message Date
SuperQ da63601f57
Release v0.11.0
NOTE: pg_stat_bgwriter counter metrics had the `_total` suffix added #556

* [CHANGE] refactor pg_stat_bgwriter metrics into standalone collector #556
* [FEATURE] Add pg_database collector #613
* [ENHANCEMENT] Add pg_database_size_bytes metric #613
* [BUGFIX] Avoid parsing error from bogus Azure Flexible Server custom GUC #587
* [BUGFIX] Fix pg_stat_archiver error in 9.4 and earlier. #599
* [BUGFIX] Sanitize setting values because of Aurora irregularity #620

Signed-off-by: SuperQ <superq@gmail.com>
2022-07-28 13:42:32 +02:00
Ben Kochie 972d8e8851
Merge pull request #652 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2022-07-03 11:36:19 +02:00
Ben Kochie de3df8b6b0
Merge pull request #661 from prometheus-community/dependabot/go_modules/github.com/prometheus/common-0.35.0
Bump github.com/prometheus/common from 0.34.0 to 0.35.0
2022-07-03 11:35:58 +02:00
dependabot[bot] a167b91654
Bump github.com/prometheus/common from 0.34.0 to 0.35.0
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.34.0 to 0.35.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.34.0...v0.35.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-01 17:06:17 +00:00
Joe Adams 075dc6d575
Merge pull request #653 from godber/patch-1
Update readme to include Postgres 14 support
2022-06-16 11:02:35 -04:00
Austin Godber d80081e638 Update readme to include Postgres 14 support
It looks like postgres 14.1 was added to CI here:

fcb2535aff

See also: https://github.com/prometheus-community/postgres_exporter/issues/651#issuecomment-1156947591

Signed-off-by: Austin Godber <godber@uberhip.com>
2022-06-15 14:25:13 -07:00
prombot 73cda17d55 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-06-14 19:51:35 +00:00
PrometheusBot 9d67be6308
Update common Prometheus files (#650)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-06-14 00:33:08 +02:00
Ben Kochie 1b492a6c59
Merge pull request #646 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2022-05-25 23:33:19 +02:00
prombot db436ebcde Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-05-25 19:51:00 +00:00
Ben Kochie 1e9b5c4bfc
Merge pull request #645 from prometheus-community/superq/update_build
Update build
2022-05-25 12:11:47 +02:00
SuperQ 81c4933986
Update build
* Update to Go 1.18.
* Update minimum Go version to 1.17.
* Update Go modules for 1.17 format.
* Bump Go modules
* Enable dependabot.
* Update Prometheus common files.
* Fixup yamllint.

Signed-off-by: SuperQ <superq@gmail.com>
2022-05-25 11:27:42 +02:00
Ben Kochie 0bacea243a
Merge pull request #635 from paulfantom/fix-promql
postgres_mixin/alerts: fix incorrect promql aggregation
2022-04-23 10:57:27 +02: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
Joe Adams 92bdb8755d
Merge pull request #631 from paulfantom/jsonnetify
postgres_mixin: jsonnetify mixin
2022-04-10 18:38:07 -04: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 7e02b9bd9b
Merge pull request #620 from SN9NV/master
Sanitize setting values because of Aurora irregularity
2022-03-22 21:19:49 -04:00
Joe Adams a59665c84b
Merge pull request #621 from abarbare/CVE-2022-21698
fix: CVE-2022-21698
2022-03-11 10:22:27 -05:00
Antoine Barbare ecd002833d fix: CVE-2022-21698
Signed-off-by: Antoine Barbare <antoinebarbare@gmail.com>
2022-03-11 08:19:36 +01:00
Angus Dippenaar be30859417 Remove unit from setting because of Aurora
Signed-off-by: Angus Dippenaar <angusdippenaar@gmail.com>
2022-03-03 15:55:35 +01:00
Joe Adams d0a3aa991a
Merge pull request #556 from sysadmind/pg_stat_bgwriter_refactor
refactor pg_stat_bgwriter metrics into standalone collector
2022-02-25 08:58:58 -05:00
Joe Adams 9704b9fb2e
Clean up autoDiscoverDatabases in the new collector
Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-25 08:11:22 -05: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
Joe Adams 35b53f7889
Merge pull request #614 from sysadmind/rc-update
Update rc file to reflect newer args
2022-02-17 07:15:02 -05:00
Ben Kochie 3d7edd4e76
Merge pull request #613 from sysadmind/pg_database
Add pg_database collector
2022-02-15 09:07:24 +01:00
Joe Adams 9dad33c397
Comment unused var
Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-14 21:14:17 -05:00
Joe Adams c3b0206369
Add collector interface
Uses node_exporter style collector registration

Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-14 21:12:27 -05:00
Joe Adams 8d6d3041b9
Merge pull request #565 from alexmv/patch-1
Remove misplaced and duplicated phrase in README
2022-02-09 22:21:58 -05:00
Joe Adams 99446791e4
Merge pull request #567 from xelatirdan/patch-1
Add error prone SQL in README.md
2022-02-09 22:21:17 -05:00
Joe Adams 53b24d7a33 Update rc file to reflect newer args
Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-09 22:16:39 -05:00
Joe Adams 1981623d9d
Add missing server label
Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-09 21:56:48 -05:00
Joe Adams 21a19ed252
Add pg_database collector
Converts the pg_database metrics from queries.yaml to a built in collector. This is enabled by default because it is not likely to be a performance problem and likely very useful data.

Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-09 21:28:40 -05:00
Joe Adams 3880df4f64
Merge pull request #587 from credativ/azure-ff-fix
Avoid parsing error from bogus Azure Flexible Server custom GUC
2022-02-09 15:30:32 -05:00
Joe Adams 6253ddb79a
Merge pull request #599 from pitan/fix/pg_stat_archiver-version
change version for pg_stat_archiver
2022-02-04 13:05:46 -05:00
Ben Kochie cbc41f5b97
Merge pull request #561 from sysadmind/pg-stat-comment
Add a warning for pg_stat_statements
2022-01-27 17:59:02 +01:00
Joe Adams c0ca2fd0c9
Merge pull request #590 from juris-greitans/master
#258 Document running as non-superuser on PostgreSQL versions 10 or newer.
2022-01-26 10:07:23 -05:00
Joe Adams 968de5f511
Merge pull request #604 from alexrudd2/patch-1
Clarify default values for CLI flags
2022-01-19 09:45:45 -05:00
Alex b10a7b7d3b
Clarify default values for CLI flags
Reference here: https://grafana.com/docs/agent/latest/configuration/integrations/postgres-exporter-config/
Also, matches the environment variables section.

Signed-off-by: Alex Ruddick <a.ruddick@numat-tech.com>
2022-01-18 12:18:09 -06:00
pitan adaa0b5e32
Merge branch 'prometheus-community:master' into fix/pg_stat_archiver-version 2022-01-17 17:04:00 +09:00
Ben Kochie 922d2aae39
Merge pull request #602 from dswarbrick/fix-postgres-spelling
Fix misspelling of PostgreSQL
2022-01-16 21:14:26 +01:00
Daniel Swarbrick 99f0b4c63c
Fix misspelling of PostgreSQL
Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
2022-01-16 19:55:11 +01:00
Ben Kochie 6cff384d74
Merge pull request #600 from prometheus-community/superq/0.10.1
Release 0.10.1
2022-01-14 18:19:04 +01:00
Ben Kochie 7a102ae381
Merge pull request #601 from sysadmind/sysadmind-maintainer
Add @sysadmind as a maintainer
2022-01-14 18:17:04 +01:00
Joe Adams 7f357bc89e
Add @sysadmind as a maintainer
Signed-off-by: Joe Adams <github@joeadams.io>
2022-01-14 11:30:09 -05:00
SuperQ fcb2535aff
Release 0.10.1
* [BUGFIX] Fix broken log-level for values other than debug. #560

Signed-off-by: SuperQ <superq@gmail.com>
2022-01-14 17:27:06 +01:00
Ben Kochie 017e060f2f
Merge pull request #560 from Harkishen-Singh/fix-log-level
Fix broken log-level for values other than debug.
2022-01-14 17:11:21 +01:00
t-inoue 21c9b0d80d change version for pg_stat_archiver
Signed-off-by: t-inoue <t-inoue@sakura.ad.jp>
2022-01-11 13:48:48 +09:00
juris.greitans 7c76896aa8 Fix issues mentioned in review. Add link to PostgreSQL documentation about pre-defined roles.
Signed-off-by: juris.greitans <juris.greitans@visma.com>
2021-11-29 13:13:14 +02:00