Commit Graph

447 Commits

Author SHA1 Message Date
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
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
SuperQ
b1e72a981b
go fmt
Signed-off-by: SuperQ <superq@gmail.com>
2023-01-24 18:18:17 +01:00
SuperQ
fc264d0ab0
Update exporter-toolkit
Update to the latest exporter-toolkit
* Enables multi-listener and systemd socket activation.
* Bump Go to 1.19.
* Remove `PG_EXPORTER_WEB_LISTEN_ADDRESS` env var because this is now a
  repeatable flag.

Signed-off-by: SuperQ <superq@gmail.com>
2023-01-24 17:57:31 +01:00
Ben Kochie
d4af9429bb
Merge pull request #745 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2023-01-24 16:53:29 +01:00
prombot
29cf7eb61c Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-01-23 17:50:28 +00:00
Joe Adams
169bb0c360
Merge pull request #733 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2023-01-22 13:42:43 -05:00
Joe Adams
ab8f272f4b
Merge pull request #736 from khiemdoan/circleci
Add postgres 15 for CI test
2023-01-22 13:39:51 -05:00
Joe Adams
8b8466f3aa
Merge pull request #740 from revverse/master
New unit value 64kB
2023-01-21 14:56:22 -05:00
Joe Adams
d23b0b25e4
Merge pull request #647 from grafana/rgeyer/mixin-dashboard-linting
Dashboard linting improvements for mixin
2023-01-21 14:29:09 -05:00
Khiem Doan
b92161c291 Merge branch 'circleci' of github.com:khiemdoan/postgres_exporter into circleci 2023-01-05 14:55:30 +07:00
Khiem Doan
e6ac9ca1d2 Merge branch 'master' of github.com:khiemdoan/postgres_exporter into circleci 2023-01-05 14:54:37 +07:00
Oleksandr Mysyura
8ff0e5aa70 New unit value 64kB
Signed-off-by: Oleksandr Mysyura <olexandr.mysyura@pragmaticplay.com>
2023-01-04 12:14:29 +02:00
Khiem Doan
045f24fd63 Add postgres 15 for CI test
Signed-off-by: Khiem Doan <doankhiem.crazy@gmail.com>
2022-12-27 09:07:35 +07:00
Khiem Doan
3b45347749 Add postgres 15 for CI test
Signed-off-by: Khiem Doan <doankhiem.crazy@gmail.com>
2022-12-27 09:06:27 +07:00
Julien Pivotto
dc1c19efd4 Set gauge to 1 when collector is successful
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
Signed-off-by: Khiem Doan <doankhiem.crazy@gmail.com>
2022-12-27 09:06:27 +07:00
Kurtis Bass
76223cdda8 probe: clean-up database connection after probe to prevent connection leak
Signed-off-by: Kurtis Bass <kurtis.bass@hinge.co>
2022-12-14 14:30:13 -05:00