Commit Graph

371 Commits

Author SHA1 Message Date
Luckz
b10a942f40
Correct additional typo in README.md
Signed-off-by: Luckz <224748+Luckz@users.noreply.github.com>
2022-11-06 16:24:43 +01:00
Luckz
adf8fc1d95
Correct minor typos in README.md
Signed-off-by: Luckz <224748+Luckz@users.noreply.github.com>
2022-08-10 18:20:20 +02:00
Ben Kochie
591c019f60
Merge pull request #670 from prometheus-community/dependabot/go_modules/github.com/prometheus/common-0.37.0
Bump github.com/prometheus/common from 0.35.0 to 0.37.0
2022-08-02 09:02:47 +02:00
dependabot[bot]
926b8659a0
Bump github.com/prometheus/common from 0.35.0 to 0.37.0
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.35.0 to 0.37.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.35.0...v0.37.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-08-01 17:07:11 +00:00
Joe Adams
6bace28192
Merge pull request #667 from n-rodriguez/wip/fix_cast
Fix checkpoint_sync_time value type
2022-07-30 23:14:49 -04:00
Nicolas Rodriguez
8855b7a604 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-07-30 17:11:11 +02:00
Ben Kochie
6e778e7939
Merge pull request #666 from bravosierrasierra/bravosierrasierra-patch-2
Fix checkpoint_write_time value type
2022-07-29 14:28:04 +02:00
bravosierrasierra
a627e7fce7
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-07-29 13:33:23 +03:00
Ben Kochie
e552a37f21
Merge pull request #618 from sysadmind/multi-target
Add multi-target support
2022-07-29 12:22:50 +02:00
Joe Adams
72430f8d2a Update cmd/postgres_exporter/main.go
Signed-off-by: Joe Adams <github@joeadams.io>
2022-07-28 10:21:02 -04:00
Joe Adams
8f8d2208f5 cleanup and README
Signed-off-by: Joe Adams <github@joeadams.io>

Co-authored-by: Ben Kochie <superq@gmail.com>
2022-07-28 10:19:32 -04:00
Joe Adams
cc751b7966 Add config module
The config module supports adding configuration to the exporter via a config file. This supports adding authentication details in a config file so that /probe requests can specify authentication for endpoints

Signed-off-by: Joe Adams <github@joeadams.io>
2022-07-28 10:19:32 -04:00
Joe Adams
713461df98 WIP: Add prelim multi-target support
- Remove multi server support from new collector package
- Add http handler for multi-target support

Signed-off-by: Joe Adams <github@joeadams.io>
2022-07-28 10:19:32 -04: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
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