Skip to content

Master fetch #39

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 53 commits into from
Jun 30, 2022
Merged

Master fetch #39

merged 53 commits into from
Jun 30, 2022

Conversation

Dlorite
Copy link

@Dlorite Dlorite commented Jun 30, 2022

No description provided.

Harkishen-Singh and others added 30 commits July 14, 2021 16:19
Signed-off-by: Harkishen Singh <harkishensingh@hotmail.com>
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>
Signed-off-by: Joe Adams <github@joeadams.io>
Signed-off-by: Alex Vandiver <alex@chmrr.net>
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>
…SQL versions 10 or newer.

Signed-off-by: juris.greitans <juris.greitans@visma.com>
Signed-off-by: Michael Banck <michael.banck@credativ.de>
…about pre-defined roles.

Signed-off-by: juris.greitans <juris.greitans@visma.com>
Signed-off-by: t-inoue <t-inoue@sakura.ad.jp>
…log-level

Fix broken log-level for values other than debug.
* [BUGFIX] Fix broken log-level for values other than debug. prometheus-community#560

Signed-off-by: SuperQ <superq@gmail.com>
Signed-off-by: Joe Adams <github@joeadams.io>
Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
…res-spelling

Fix misspelling of PostgreSQL
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>
prometheus-community#258 Document running as non-superuser on PostgreSQL versions 10 or newer.
…mment

Add a warning for pg_stat_statements
…chiver-version

change version for pg_stat_archiver
Avoid parsing error from bogus Azure Flexible Server custom GUC
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>
Signed-off-by: Joe Adams <github@joeadams.io>
Signed-off-by: Joe Adams <github@joeadams.io>
Remove misplaced and duplicated phrase in README
Uses node_exporter style collector registration

Signed-off-by: Joe Adams <github@joeadams.io>
Signed-off-by: Joe Adams <github@joeadams.io>
SuperQ and others added 23 commits February 15, 2022 09:07
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>
Signed-off-by: Joe Adams <github@joeadams.io>
…writer_refactor

refactor pg_stat_bgwriter metrics into standalone collector
Signed-off-by: Angus Dippenaar <angusdippenaar@gmail.com>
Signed-off-by: Antoine Barbare <antoinebarbare@gmail.com>
Sanitize setting values because of Aurora irregularity
Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
Changing severity to align with mixin recommendations from https://github.com/monitoring-mixins/docs#guidelines-for-alert-names-labels-and-annotations

Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
Signed-off-by: Paweł Krupa (paulfantom) <pawel@krupa.net.pl>
postgres_mixin/alerts: fix incorrect promql aggregation
* Update to Go 1.18.
* Update minimum Go version to 1.17.
* Update Go modules for 1.17 format.
* Bump Go modules
* Enable dependabot.
* Update Prometheus common files.
* Fixup yamllint.

Signed-off-by: SuperQ <superq@gmail.com>
Signed-off-by: prombot <prometheus-team@googlegroups.com>
…/repo_sync

Synchronize common files from prometheus/prometheus
Signed-off-by: prombot <prometheus-team@googlegroups.com>
It looks like postgres 14.1 was added to CI here:

prometheus-community@fcb2535

See also: prometheus-community#651 (comment)

Signed-off-by: Austin Godber <godber@uberhip.com>
Update readme to include Postgres 14 support
@Dlorite Dlorite merged commit 1d3051e into build Jun 30, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.