pg exporter will occur error when backup
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- go, postgresql
- Domain
- databases, observability
Research direction
Start by tracing the pg_pg_replication_lag_seconds metric and its PostgreSQL query, including pg_last_xact_replay_timestamp(), during backup. Reproduce the scrape error while a backup is running and compare the behavior of the query in recovery and non-recovery states. Done means backups no longer set pg_exporter_last_scrape_error and the replication-lag metric remains appropriately handled.
Written by the indexing model from the issue text.
Description
postgres exporter catch metric pg_pg_replication_lag_seconds,the sql
SELECT CASE WHEN NOT pg_is_in_recovery() THEN 0 ELSE GREATEST (0, EXTRACT(EPOCH FROM (now() - pg_last_xact_replay_timestamp()))) END AS lag
occurs an error every time when backup,
pg_exporter_last_scrape_error = 1
pg_last_xact_replay_timestamp cannot use when backup,so every day we receive an alert
- Dominant language
- Go
- Stars
- 3.6k
- Forks
- 835
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 10
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from prometheus-community/postgres_exporter
-
BDU:2025-02344 Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
prometheus-community/postgres_exporter#716 · 3 reactions ·
All issues in prometheus-community/postgres_exporter
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100