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
prombot
c8991de223
Update common Prometheus files
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-12-13 17:51:01 +00:00
Joe Adams
9bd9d83d73
Merge pull request #724 from roidelapluie/gauge1
...
Set gauge to 1 when collector is successful
2022-11-27 14:05:26 -05:00
Julien Pivotto
5fcceb4105
Set gauge to 1 when collector is successful
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2022-11-24 14:02:37 +01:00
Joe Adams
02aff21cf7
Merge pull request #672 from Luckz/patch-2
...
Correct minor typos in README.md
2022-11-07 19:19:00 -05:00
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
Joe Adams
34d3605788
Merge pull request #683 from preved911/fix/extend_probe_path_metrics
...
Extending /probe path metrics
2022-10-31 20:51:30 -04:00
Joe Adams
20a0133fca
Merge pull request #699 from ken3122/master
...
4kB size added for postgres with 4kB block_size
2022-10-17 19:27:26 -04:00
Sergey Morozov
14c9d0370f
4kB size added for postgres with 4kB block_size
...
Signed-off-by: Sergey Morozov <38383507+ken3122@users.noreply.github.com>
2022-10-09 01:50:45 +06:00
Ben Kochie
0adab051b3
Merge pull request #698 from prometheus-community/repo_sync
...
Synchronize common files from prometheus/prometheus
2022-10-04 20:50:19 +02:00
prombot
fc2e8f0837
Update common Prometheus files
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-10-04 17:59:51 +00:00
cezmunsta
d9ac4be429
Fixed formatting
...
Signed-off-by: cezmunsta <github@incoming-email.co.uk>
2022-10-04 13:18:22 +01:00