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
Joe Adams
9704b9fb2e
Clean up autoDiscoverDatabases in the new collector
...
Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-25 08:11:22 -05:00
Joe Adams
27d23d02ef
refactor pg_stat_bgwriter metrics into standalone collector
...
This moves the metrics that are queried from pg_stat_bgwriter into a dedicated collector instead of dynamically generating queries and metrics from a map. It renames some metrics including adding the `_total` suffix on all of the counters to match prometheus standards. This implementation uses QueryRowContext to allow for later addition of context for cancellation. From the Postgres documentation, it states that there is one line per WAL sender process, but it is unclear how to differentiate between them in any meaningful way. When querying the table, there is no column to identify the row, only metrics about bgwriter.
Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-22 21:46:43 -05:00
Joe Adams
35b53f7889
Merge pull request #614 from sysadmind/rc-update
...
Update rc file to reflect newer args
2022-02-17 07:15:02 -05:00
Ben Kochie
3d7edd4e76
Merge pull request #613 from sysadmind/pg_database
...
Add pg_database collector
2022-02-15 09:07:24 +01:00
Joe Adams
9dad33c397
Comment unused var
...
Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-14 21:14:17 -05:00
Joe Adams
c3b0206369
Add collector interface
...
Uses node_exporter style collector registration
Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-14 21:12:27 -05:00
Joe Adams
8d6d3041b9
Merge pull request #565 from alexmv/patch-1
...
Remove misplaced and duplicated phrase in README
2022-02-09 22:21:58 -05:00
Joe Adams
99446791e4
Merge pull request #567 from xelatirdan/patch-1
...
Add error prone SQL in README.md
2022-02-09 22:21:17 -05:00
Joe Adams
53b24d7a33
Update rc file to reflect newer args
...
Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-09 22:16:39 -05:00
Joe Adams
1981623d9d
Add missing server label
...
Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-09 21:56:48 -05:00
Joe Adams
21a19ed252
Add pg_database collector
...
Converts the pg_database metrics from queries.yaml to a built in collector. This is enabled by default because it is not likely to be a performance problem and likely very useful data.
Signed-off-by: Joe Adams <github@joeadams.io>
2022-02-09 21:28:40 -05:00
Joe Adams
3880df4f64
Merge pull request #587 from credativ/azure-ff-fix
...
Avoid parsing error from bogus Azure Flexible Server custom GUC
2022-02-09 15:30:32 -05:00
Joe Adams
6253ddb79a
Merge pull request #599 from pitan/fix/pg_stat_archiver-version
...
change version for pg_stat_archiver
2022-02-04 13:05:46 -05:00
Ben Kochie
cbc41f5b97
Merge pull request #561 from sysadmind/pg-stat-comment
...
Add a warning for pg_stat_statements
2022-01-27 17:59:02 +01:00
Joe Adams
c0ca2fd0c9
Merge pull request #590 from juris-greitans/master
...
#258 Document running as non-superuser on PostgreSQL versions 10 or newer.
2022-01-26 10:07:23 -05:00
Joe Adams
968de5f511
Merge pull request #604 from alexrudd2/patch-1
...
Clarify default values for CLI flags
2022-01-19 09:45:45 -05:00
Alex
b10a7b7d3b
Clarify default values for CLI flags
...
Reference here: https://grafana.com/docs/agent/latest/configuration/integrations/postgres-exporter-config/
Also, matches the environment variables section.
Signed-off-by: Alex Ruddick <a.ruddick@numat-tech.com>
2022-01-18 12:18:09 -06:00
pitan
adaa0b5e32
Merge branch 'prometheus-community:master' into fix/pg_stat_archiver-version
2022-01-17 17:04:00 +09:00
Ben Kochie
922d2aae39
Merge pull request #602 from dswarbrick/fix-postgres-spelling
...
Fix misspelling of PostgreSQL
2022-01-16 21:14:26 +01:00
Daniel Swarbrick
99f0b4c63c
Fix misspelling of PostgreSQL
...
Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
2022-01-16 19:55:11 +01:00
Ben Kochie
6cff384d74
Merge pull request #600 from prometheus-community/superq/0.10.1
...
Release 0.10.1
2022-01-14 18:19:04 +01:00
Ben Kochie
7a102ae381
Merge pull request #601 from sysadmind/sysadmind-maintainer
...
Add @sysadmind as a maintainer
2022-01-14 18:17:04 +01:00
Joe Adams
7f357bc89e
Add @sysadmind as a maintainer
...
Signed-off-by: Joe Adams <github@joeadams.io>
2022-01-14 11:30:09 -05:00
SuperQ
fcb2535aff
Release 0.10.1
...
* [BUGFIX] Fix broken log-level for values other than debug. #560
Signed-off-by: SuperQ <superq@gmail.com>
2022-01-14 17:27:06 +01:00
Ben Kochie
017e060f2f
Merge pull request #560 from Harkishen-Singh/fix-log-level
...
Fix broken log-level for values other than debug.
2022-01-14 17:11:21 +01:00
t-inoue
21c9b0d80d
change version for pg_stat_archiver
...
Signed-off-by: t-inoue <t-inoue@sakura.ad.jp>
2022-01-11 13:48:48 +09:00
juris.greitans
7c76896aa8
Fix issues mentioned in review. Add link to PostgreSQL documentation about pre-defined roles.
...
Signed-off-by: juris.greitans <juris.greitans@visma.com>
2021-11-29 13:13:14 +02:00
Michael Banck
5d6e42935d
Avoid parsing error from bogus Azure Flexible Server custom GUC
...
Signed-off-by: Michael Banck <michael.banck@credativ.de>
2021-11-20 19:37:29 +01:00
juris.greitans
545c3b7eba
#258 Document running as non-superuser on PostgreSQL versions 10 or newer.
...
Signed-off-by: juris.greitans <juris.greitans@visma.com>
2021-11-17 12:44:59 +02:00
Julien Pivotto
0977e96b56
Merge pull request #573 from mhagander/typofixes
...
Fix typos in README
2021-09-09 12:20:31 +02:00
Xela
20aefc2e15
Add some SQL in README.md
...
Getting the error when adding non-root postgres user for exporter:
```
postgres=# CREATE OR REPLACE FUNCTION get_pg_stat_statements() RETURNS SETOF pg_stat_statements AS
postgres-# $$ SELECT * FROM public.pg_stat_statements; $$
postgres-# LANGUAGE sql
postgres-# VOLATILE
postgres-# SECURITY DEFINER;
ERROR: type "pg_stat_statements" does not exist
```
Add following sql command for enable pg_stat_statements:
```
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
```
Signed-off-by: Xela Tirdan <xelatirdan@gmail.com>
2021-09-08 21:35:23 +03:00
Magnus Hagander
d9435b4c80
Fix typos in README
...
Signed-off-by: Magnus Hagander <magnus@hagander.net>
2021-08-24 13:28:32 +02:00
Alex Vandiver
d9a081d6d9
Remove misplaced and duplicated phrase in README
...
Signed-off-by: Alex Vandiver <alex@chmrr.net>
2021-08-02 11:43:20 -07:00
Joe Adams
d9eb99555b
Adjust comment to WARNING
...
Signed-off-by: Joe Adams <github@joeadams.io>
2021-07-15 21:54:39 -04:00
Joe Adams
cd98cf7c33
Add a warning for pg_stat_statements
...
This metric can be very expensive to store in prometheus and has the potential to create an unreasonably large cardinality set of metrics so warn the user.
Signed-off-by: Joe Adams <github@joeadams.io>
2021-07-15 21:51:25 -04:00
Harkishen Singh
c1ab341279
Fix broken log-level for values other than debug.
...
Signed-off-by: Harkishen Singh <harkishensingh@hotmail.com>
2021-07-14 16:19:00 +05:30
Ben Kochie
57719ba53c
Merge pull request #555 from sysadmind/release-v0.10.0
...
Release v0.10.0
2021-07-09 13:37:56 +02:00
Joe Adams
820c05b747
Revert go version change
...
Signed-off-by: Joe Adams <github@joeadams.io>
2021-07-08 09:31:06 -04:00
Joe Adams
7fdb019811
Bump date for release
...
Signed-off-by: Joe Adams <github@joeadams.io>
2021-07-08 09:16:57 -04:00
Joe Adams
c6632ab1e4
Rollback lib/pq to v1.10.1 for illumos compatability
...
Signed-off-by: Joe Adams <github@joeadams.io>
2021-07-07 16:54:36 -04:00
Joe Adams
08fd458df0
Update dependencies and fix tests
...
Signed-off-by: Joe Adams <github@joeadams.io>
2021-07-07 09:52:56 -04:00
Joe Adams
59623d5709
Release v0.10.0
...
Signed-off-by: Joe Adams <github@joeadams.io>
2021-07-06 21:36:32 -04:00
Ben Kochie
df461c2f9a
Merge pull request #552 from sysadmind/refactor-files
...
Refactor code into logical files
2021-07-04 18:03:31 +02:00
Joe Adams
bc981e66c3
Refactor code into logical files
...
Moves code into more manageable, logical files to group behavior together. This should help improve a developer's ability to navigate the code.
Signed-off-by: Joe Adams <github@joeadams.io>
2021-07-01 16:49:08 -04:00