Skip to content

Conversation

@sysadmind
Copy link
Contributor

@sysadmind sysadmind commented Dec 12, 2025

When there are no long running transactions, the oldest timestamp will be NULL. This sets the metrics value to 0 (age). Also adds a test for this behavior.

Fixes #1223 #1199

When there are no long running transactions, the oldest timestamp will be NULL. This sets the metrics value to 0 (age). Also adds a test for this behavior.

Fixes prometheus-community#1223

Signed-off-by: Joe Adams <github@joeadams.io>
@pierresouchay
Copy link

LGTM

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.

Title: Collector fails on long_running_transactions when oldest_timestamp_seconds is NULL

2 participants