Commit Graph

406 Commits

Author SHA1 Message Date
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
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
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
Ildar Valiullin
ad8b5608f8 extended /probe path metrics
Signed-off-by: Ildar Valiullin <preved.911@gmail.com>
2022-09-03 14:33:13 +03: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
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