Skip to content

Master fetch #39

New issue

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

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

Already on GitHub? Sign in 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
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 <[email protected]>
Signed-off-by: Joe Adams <[email protected]>
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 <[email protected]>
…SQL versions 10 or newer.

Signed-off-by: juris.greitans <[email protected]>
…about pre-defined roles.

Signed-off-by: juris.greitans <[email protected]>
…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 <[email protected]>
Signed-off-by: Joe Adams <[email protected]>
Signed-off-by: Daniel Swarbrick <[email protected]>
…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 <[email protected]>
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 <[email protected]>
Signed-off-by: Joe Adams <[email protected]>
Remove misplaced and duplicated phrase in README
Uses node_exporter style collector registration

Signed-off-by: Joe Adams <[email protected]>
Signed-off-by: Joe Adams <[email protected]>
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 <[email protected]>
…writer_refactor

refactor pg_stat_bgwriter metrics into standalone collector
Signed-off-by: Antoine Barbare <[email protected]>
Sanitize setting values because of Aurora irregularity
Signed-off-by: Paweł Krupa (paulfantom) <[email protected]>
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 <[email protected]>
…/repo_sync

Synchronize common files from prometheus/prometheus
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 <[email protected]>
Update readme to include Postgres 14 support
@Dlorite Dlorite merged commit 1d3051e into build Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.