cezmunsta
d9ac4be429
Fixed formatting
...
Signed-off-by: cezmunsta <github@incoming-email.co.uk>
2022-10-04 13:18:22 +01:00
cezmunsta
6937685907
Capture usename and application_name for pg_stat_activity
...
It is necessary to be able to exclude backups from long-running
transaction alerts, as they are to be expected. With the current
pg_stat_activity metric there is no ability to filter out
specific users or application names.
Resolves #668
Signed-off-by: cezmunsta <github@incoming-email.co.uk>
2022-10-04 13:18:22 +01:00
Joe Adams
6eac43241d
Merge pull request #695 from prometheus-community/dependabot/go_modules/github.com/lib/pq-1.10.7
...
Bump github.com/lib/pq from 1.10.6 to 1.10.7
2022-10-03 20:20:40 -04:00
dependabot[bot]
8268b7e6ff
Bump github.com/lib/pq from 1.10.6 to 1.10.7
...
Bumps [github.com/lib/pq](https://github.com/lib/pq ) from 1.10.6 to 1.10.7.
- [Release notes](https://github.com/lib/pq/releases )
- [Commits](https://github.com/lib/pq/compare/v1.10.6...v1.10.7 )
---
updated-dependencies:
- dependency-name: github.com/lib/pq
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-01 17:05:04 +00:00
Joe Adams
cb70292fe1
Merge pull request #684 from sysadmind/probe-dsn
...
Update multi-target handler to use new DSN type
2022-09-02 11:26:11 -04:00
Joe Adams
69a802493b
Add missing license header
...
Signed-off-by: Joe Adams <github@joeadams.io>
2022-09-02 11:09:01 -04:00
Joe Adams
7ffba684de
Update multi-target handler to use new DSN type
...
- Moves new dsn type to config.DSN. This will prevent circular dependencies.
- Change DSN.query to be url.Values. This allows the multi-target functionality to merge values without re-parsing the query string
- Change NewProbeCollector to use the new config.DSN type
- Add DSN.GetConnectionString to return a string formatted for the sql driver to use during connection
Signed-off-by: Joe Adams <github@joeadams.io>
2022-09-02 10:32:44 -04:00
Ben Kochie
ac9fa13302
Merge pull request #680 from greut/patch-1
...
fix: typo
2022-08-30 08:38:37 +02:00
Yoan Blanc
9ae347519b
fix: typo
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2022-08-30 06:48:06 +02:00
Joe Adams
ce947b1908
Merge pull request #679 from prometheus-community/superq/0.12.0
...
Release 0.12.0-rc.0
2022-08-29 11:14:55 -04:00
SuperQ
d86dd06ffe
Release 0.12.0-rc.0
...
BREAKING CHANGES:
This release changes support for multiple postgres servers to use the
multi-target exporter pattern. This makes it much easier to monitor multiple
PostgreSQL servers from a single exporter by passing the target via URL
params. See the Multi-Target Support section of the README.
* [CHANGE] Add multi-target support #618
* [BUGFIX] Add dsn type for handling datasources #678
Signed-off-by: SuperQ <superq@gmail.com>
2022-08-26 16:49:54 +02:00
Joe Adams
f72680be33
Merge pull request #678 from sysadmind/dsn-logging
...
Add dsn type for handling datasources
2022-08-25 09:34:31 -04:00
Joe Adams
de9d21df6a
Add dsn type for handling datasources
...
dsn is designed to replace the other uses of dsn as a string in the long term. dsn is designed to be safe to log, properly redacting passwords. The goal is eventually always parse datasource information into a dsn type object which can safely be passed around and logged without worrying about wrapping calls in a redaction function (today this function is loggableDSN().
This should solve the root issue in #648 , #677 , and #643 , although the full fix will require more changes to update all code references over to use the dsn type.
Signed-off-by: Joe Adams <github@joeadams.io>
2022-08-24 22:07:37 -04:00
Ben Kochie
c84fc4a13a
Merge pull request #675 from prometheus-community/superq/release-0.11.1
...
Release 0.11.1
2022-08-18 15:55:54 -05:00
SuperQ
e4b3cb5805
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:52:25 +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