Commit Graph

378 Commits

Author SHA1 Message Date
Nurlan Moldomurov
a215869f1b
PMM-11497 update dependencies. (#106)
* PMM-11497 update dependencies.

* PMM-11497 update dependencies.

* PMM-11497 Fix linter.
2023-02-08 15:56:28 -03:00
Taras Shcherban
8426844758
PMM-11274 Added rdsadmin db to ignorelist (#93) 2023-02-02 10:50:22 +01:00
Artem Gavrilov
89b058f5b4
PMM-7 Update dependabot config (#95) 2023-01-20 18:49:06 -03:00
rishat-ishbulatov
b185f2aff3
Revert "PMM-7958 no idle conns in monitoring (#90)" (#94)
This reverts commit 8140ab3e39.
2023-01-19 14:28:00 +03:00
Yaroslav Podorvanov
cbde0a51c2
PMM-11312 --version (#92) 2023-01-17 00:27:53 +02:00
rishat-ishbulatov
8140ab3e39
PMM-7958 no idle conns in monitoring (#90) 2022-12-27 21:37:38 +03:00
Nurlan Moldomurov
e02ea57b91
Merge pull request #82 from percona/PMM-7-merge-commit
PMM-7 merge commit
2022-10-17 11:35:33 -03:00
taras.shcherban
97f1ecbeeb Merge remote-tracking branch 'prometheus/release-0.11' into PMM-7-merge-commit 2022-10-17 16:03:35 +02:00
Taras Shcherban
7199257c0e
PMM-10820 exporter update (#76)
* 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>

* Update common Prometheus files

Signed-off-by: prombot <prometheus-team@googlegroups.com>

* Update common Prometheus files (#650)

Signed-off-by: prombot <prometheus-team@googlegroups.com>

* Update common Prometheus files

Signed-off-by: prombot <prometheus-team@googlegroups.com>

* 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>

* 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>

* 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>

* fix for exporter issue 633

fix for exporter issue 633: https://github.com/prometheus-community/postgres_exporter/issues/633

"Scan error on column index 2, name \"checkpoint_write_time\": converting driver.Value type float64 (\"6.594096e+06\") to a int: invalid syntax #633"

Signed-off-by: bravosierrasierra <bravosierrasierra@users.noreply.github.com>

* Fix checkpoint_sync_time value type

Error:
sql: Scan error on column index 3, name \"checkpoint_sync_time\": converting driver.Value type float64 (\"1.876469e+06\") to a int: invalid syntax

See also:
https://github.com/prometheus-community/postgres_exporter/issues/633
https://github.com/prometheus-community/postgres_exporter/pull/666

Signed-off-by: Nicolas Rodriguez <nico@nicoladmin.fr>

* Release 0.11.1

* [BUGFIX] Fix checkpoint_write_time value type #666
* [BUGFIX] Fix checkpoint_sync_time value type #667

Signed-off-by: SuperQ <superq@gmail.com>

* PMM-10820 missing metric restore

* PMM-10820 missing metric drop

* PMM-10820 merge fix

* PMM-10820 PR review fix

Signed-off-by: SuperQ <superq@gmail.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
Signed-off-by: Austin Godber <godber@uberhip.com>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: bravosierrasierra <bravosierrasierra@users.noreply.github.com>
Signed-off-by: Nicolas Rodriguez <nico@nicoladmin.fr>
Co-authored-by: SuperQ <superq@gmail.com>
Co-authored-by: prombot <prometheus-team@googlegroups.com>
Co-authored-by: Austin Godber <godber@uberhip.com>
Co-authored-by: Joe Adams <github@joeadams.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: bravosierrasierra <bravosierrasierra@users.noreply.github.com>
Co-authored-by: Nicolas Rodriguez <nico@nicoladmin.fr>
2022-10-12 12:24:58 +03:00
Taras Shcherban
80bb494040
PMM-10512, PMM-10820 Capture usename and application_name for pg_stat_activity, update exporter (#77) 2022-10-11 11:46:29 +03:00
Taras Shcherban
a6e78dc07a
PMM-10278 postgres_exporter integration tests (#71)
PMM-10278 add compatibility tests for exporter upgrade
2022-10-03 16:30:44 +03:00
Taras Shcherban
d5e6046ec6
PMM-7 add missing labels for pg exporter (#75)
PMM-10717 Add bgwriter collector and missing label
2022-09-15 15:58:05 +03:00
Taras Shcherban
ae78ab2046
PMM-9973 Resolutions fix #2 (#73)
* PMM-9973 resolutions filtering fix
2022-09-06 14:32:02 +03:00
Taras Shcherban
3662a01ede Add CODEOWNERS 2022-09-06 13:33:09 +03:00
Alexey Mukas
db4c6e8ee7
PMM-7806: add compatibility with percona pg exporter (#68)
* add compatibility with old exporter
2022-09-06 12:37:50 +03:00
Ben Kochie
b5fd246564
Merge pull request #676 from prometheus-community/superq/rel-pick-0.11.1
Release 0.11.1
2022-08-18 15:56:46 -05:00
SuperQ
5a43235013
Release 0.11.1
* [BUGFIX] Fix checkpoint_write_time value type #666
* [BUGFIX] Fix checkpoint_sync_time value type #667

Signed-off-by: SuperQ <superq@gmail.com>
2022-08-18 22:54:37 +02:00
Ben Kochie
e356caa634
Merge pull request #669 from prometheus-community/superq/0.11.1
Pick fixes into release-0.11
2022-08-18 15:50:26 -05:00
Nicolas Rodriguez
7a0accf2b9
Fix checkpoint_sync_time value type
Error:
sql: Scan error on column index 3, name \"checkpoint_sync_time\": converting driver.Value type float64 (\"1.876469e+06\") to a int: invalid syntax

See also:
https://github.com/prometheus-community/postgres_exporter/issues/633
https://github.com/prometheus-community/postgres_exporter/pull/666

Signed-off-by: Nicolas Rodriguez <nico@nicoladmin.fr>
2022-08-01 09:30:36 +02:00
bravosierrasierra
4dbec5aede
fix for exporter issue 633
fix for exporter issue 633: https://github.com/prometheus-community/postgres_exporter/issues/633

"Scan error on column index 2, name \"checkpoint_write_time\": converting driver.Value type float64 (\"6.594096e+06\") to a int: invalid syntax #633"

Signed-off-by: bravosierrasierra <bravosierrasierra@users.noreply.github.com>
2022-08-01 09:30:27 +02:00
Joe Adams
58cc383e8c
Merge pull request #665 from prometheus-community/superq/0.11.0
Release v0.11.0
2022-07-28 08:50:48 -04:00
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