Ben Kochie
214d76fa21
Merge pull request #805 from prometheus-community/dependabot/go_modules/github.com/prometheus/common-0.44.0
...
Bump github.com/prometheus/common from 0.42.0 to 0.44.0
2023-06-03 13:21:54 +02:00
dependabot[bot]
4da97f70e0
Bump github.com/prometheus/common from 0.42.0 to 0.44.0
...
Bumps [github.com/prometheus/common](https://github.com/prometheus/common ) from 0.42.0 to 0.44.0.
- [Release notes](https://github.com/prometheus/common/releases )
- [Commits](https://github.com/prometheus/common/compare/v0.42.0...v0.44.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>
2023-06-01 17:58:58 +00:00
Ben Kochie
6e671f2d82
Merge pull request #792 from prometheus-community/dependabot/go_modules/github.com/lib/pq-1.10.9
...
Bump github.com/lib/pq from 1.10.7 to 1.10.9
2023-06-01 15:58:29 +02:00
Ben Kochie
2297ff8f0a
Merge pull request #802 from prometheus-community/superq/descmap
...
Refactor collector descriptors
2023-06-01 15:57:44 +02:00
SuperQ
425c4938ef
Refactor collector descriptors
...
Use individual collector metric descriptor vars to help avoid
miss-mapped or unused metrics.
Signed-off-by: SuperQ <superq@gmail.com>
2023-06-01 10:04:35 +02:00
dependabot[bot]
ef2bf61299
Bump github.com/lib/pq from 1.10.7 to 1.10.9
...
Bumps [github.com/lib/pq](https://github.com/lib/pq ) from 1.10.7 to 1.10.9.
- [Release notes](https://github.com/lib/pq/releases )
- [Commits](https://github.com/lib/pq/compare/v1.10.7...v1.10.9 )
---
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>
2023-05-01 17:58:52 +00:00
Joe Adams
fb316ad4ae
Merge pull request #787 from mothership/fix/mothershipper/support-alt-scheme
...
Supports alternate postgres:// prefix in URLs
2023-04-24 18:18:36 -04:00
Jack Wink
0c04fc1d1e
Supports alternate postgres:// prefix in URLs
...
Adds support for the alternate postgres:// prefix in URLs. It's maybe
not the cleanest approach, but works. Hoping I can either get some
pointers on a more appropriate patch, or that we could use this in the
interim to unblock this use-case.
Signed-off-by: Jack Wink <57678801+mothershipper@users.noreply.github.com>
2023-04-24 09:17:05 -07:00
Joe Adams
8b661c9c3b
Merge pull request #771 from khkhalifa/master
...
Fix pg_setting different help values
2023-04-23 18:35:33 -04:00
Khaled Khalifa
20b1b75e64
Fix pg_setting different help values
...
Signed-off-by: GitHub <noreply@github.com>
2023-04-16 11:29:12 +00:00
Ben Kochie
994e5cc913
Merge pull request #765 from prometheus-community/superq/stat_statements
...
Reduce cardinality of pg_stat_statements
2023-04-13 11:05:14 +02:00
Joe Adams
2391ad1ff3
Merge pull request #783 from sysadmind/update-readme
...
Update README cli flags
2023-03-30 09:24:43 -04:00
Joe Adams
285462b3c8
Merge pull request #784 from sysadmind/log-startup
...
Adjust log level for collector startup
2023-03-30 09:24:29 -04:00
Joe Adams
ac05e0bdce
Adjust log level for collector startup
...
Since we support both multi-target and typical direct scrapes, either of these can fail and it is no longer an error.
Signed-off-by: Joe Adams <github@joeadams.io>
2023-03-29 20:15:41 -04:00
Joe Adams
a32ef40053
Update README cli flags
...
These have not been kept up to date.
Signed-off-by: Joe Adams <github@joeadams.io>
2023-03-29 20:13:51 -04:00
Joe Adams
5f57b78442
Merge pull request #781 from prometheus-community/superq/readme_versions
...
Update versions listed in the README
2023-03-28 21:23:00 -04:00
SuperQ
6e2f8c332b
Update versions listed in the README
...
Update the supported versions based on what we actually test in CI.
Signed-off-by: SuperQ <superq@gmail.com>
2023-03-28 23:18:18 +02:00
Ben Kochie
dde6e6e52a
Merge pull request #777 from sysadmind/fix-replication-column-type
...
Fix column type for pg_replication_slots
2023-03-23 10:57:51 +01:00
Joe Adams
1e3b177e34
Fix column type for pg_replication_slots
...
Change the data type of `active` from int64 to bool. The documentation confirms that this is a boolean field.
https://www.postgresql.org/docs/current/view-pg-replication-slots.html
fixes #769
Signed-off-by: Joe Adams <github@joeadams.io>
2023-03-22 20:54:00 -04:00
Joe Adams
3fe5d25534
Merge pull request #776 from prometheus-community/repo_sync
...
Synchronize common files from prometheus/prometheus
2023-03-22 20:01:36 -04:00
Joe Adams
f9a1edbbc6
Merge pull request #774 from sysadmind/prep-release-v0.12
...
Update changelog and version for v0.12.0 release
2023-03-21 19:50:02 -04:00
prombot
d8617df696
Update common Prometheus files
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-03-21 17:51:31 +00:00
Ben Kochie
4976a656b1
Merge pull request #775 from prometheus-community/superq/toolkit
...
Update exporter-toolkit
2023-03-21 14:52:36 +01:00
SuperQ
de1c3cc5e7
Update exporter-toolkit
...
Updates the exporter-toolkit to the latest version
* Adds new landing page feature.
* Allow metrics path to be on `/`.
Signed-off-by: SuperQ <superq@gmail.com>
2023-03-21 08:23:23 +01:00
Joe Adams
7e7366c9d0
Update changelog and version for v0.12.0 release
...
Signed-off-by: Joe Adams <github@joeadams.io>
2023-03-20 20:05:39 -04:00
SuperQ
e7f58a42e8
Reduce cardinality of pg_stat_statements
...
Make the example queries.yaml `pg_stat_statements` query safer.
* Select the top 10% of queries by total query time.
* Only expose the top 100 queries by total query time.
* Keep only the most useful metrics.
* Comment out the example by default.
Fixes: https://github.com/prometheus-community/postgres_exporter/issues/549
Signed-off-by: SuperQ <superq@gmail.com>
2023-03-07 09:31:35 +01:00
Joe Adams
d273f97b72
Merge pull request #764 from prometheus-community/superq/update_build
...
Update build
2023-03-05 16:41:42 -05:00
SuperQ
0e654d8f83
Update build
...
* Update Go to 1.20.
* Update golanci-lint.
* Bump modules.
* Update CI orb.
* Fix up use of deprecated ioutil.
Signed-off-by: SuperQ <superq@gmail.com>
2023-03-05 22:20:50 +01:00
Ben Kochie
c86f549c83
Merge pull request #697 from sysadmind/exclude-database-fix
...
Fix exclude-databases for collector package
2023-03-05 21:37:23 +01:00
Joe Adams
55263868e0
Remove more dead code
...
Signed-off-by: Joe Adams <github@joeadams.io>
2023-03-05 15:30:18 -05:00
Joe Adams
8d6ce0558c
Remove commented code
...
Signed-off-by: Joe Adams <github@joeadams.io>
2023-03-05 15:18:23 -05:00
Joe Adams
799f3e15b2
Fix exclude-databases for collector package
...
The pg_database collector was not respecting the --exclude-databases flag and causing problems where databases were not accessible. This now respects the list of databases to exclude.
- Adjusts the Collector create func to take a config struct instead of a logger. This allows more changes like this in the future. I figured we would need to do this at some point but I wasn't sure if we could hold off.
- Split the database size collection to a separate query when database is not excluded.
- Comment some probe code that was not useful/accurate
Signed-off-by: Joe Adams <github@joeadams.io>
2023-03-05 15:13:00 -05:00
Joe Adams
2197e73643
Merge pull request #760 from prometheus-community/repo_sync
...
Synchronize common files from prometheus/prometheus
2023-03-05 14:57:26 -05:00
prombot
9cd48909d8
Update common Prometheus files
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-02-21 17:50:14 +00:00
Joe Adams
44aab362f0
Merge pull request #755 from gavrik/patch-1
...
send stdout/stderr to syslog
2023-02-12 15:15:20 -05:00
Joe Adams
36773e06dc
Merge pull request #673 from cezmunsta/pg_stat_activity-enhancements
...
Capture usename and application_name for pg_stat_activity
2023-02-12 15:08:39 -05:00
Joe Adams
94a89b0166
Merge pull request #734 from kjbass/master
...
Close DB connection after probe completes.
2023-02-12 14:52:50 -05:00
Mike
e5891830e8
send stdout/stderr to syslog
...
Signed-off-by: Mike <gavrikster@gmail.com>
2023-02-07 16:55:20 +02:00
Joe Adams
7259eec41c
Merge pull request #747 from sheldor14/replication_slot
...
adding codified functionality for logical replication metrics
2023-02-07 08:57:26 -05:00
Zachary Caldarola
076eb2c3f5
fmt
...
Signed-off-by: Zachary Caldarola <zmc2005@gmail.com>
2023-01-28 18:45:48 -05:00
Zachary Caldarola
f3952f941b
typing
...
Signed-off-by: Zachary Caldarola <zmc2005@gmail.com>
2023-01-28 17:40:46 -05:00
Zachary Caldarola
1ec69c9168
fmt
...
Signed-off-by: Zachary Caldarola <zmc2005@gmail.com>
2023-01-28 17:37:41 -05:00
Zachary Caldarola
600ad185cf
more comments
...
Signed-off-by: Zachary Caldarola <zmc2005@gmail.com>
2023-01-28 17:05:45 -05:00
Zachary Caldarola
9b13780d14
addressing comments
...
Signed-off-by: Zachary Caldarola <zachary.caldarola@reddit.com>
2023-01-25 11:15:24 -05:00
Ben Kochie
732e74db32
Merge pull request #738 from prometheus-community/dependabot/go_modules/github.com/prometheus/common-0.39.0
...
Bump github.com/prometheus/common from 0.37.0 to 0.39.0
2023-01-25 14:20:08 +01:00
dependabot[bot]
61492f6931
Bump github.com/prometheus/common from 0.37.0 to 0.39.0
...
Bumps [github.com/prometheus/common](https://github.com/prometheus/common ) from 0.37.0 to 0.39.0.
- [Release notes](https://github.com/prometheus/common/releases )
- [Commits](https://github.com/prometheus/common/compare/v0.37.0...v0.39.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>
2023-01-25 13:16:35 +00:00
Ben Kochie
e57817678a
Merge pull request #730 from prometheus-community/dependabot/go_modules/github.com/prometheus/client_golang-1.14.0
...
Bump github.com/prometheus/client_golang from 1.13.0 to 1.14.0
2023-01-25 14:15:18 +01:00
dependabot[bot]
e198f6fabe
Bump github.com/prometheus/client_golang from 1.13.0 to 1.14.0
...
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.13.0...v1.14.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-25 08:32:54 +00:00
Ben Kochie
0e4506e3f4
Merge pull request #746 from prometheus-community/bjk/exporter-toolkit-bump
...
Update exporter-toolkit
2023-01-25 09:31:55 +01:00
Zachary Caldarola
300750001c
adding codified functionality for logical replication metrics
...
Signed-off-by: Zachary Caldarola <zachary.caldarola@reddit.com>
2023-01-24 14:52:00 -05:00