Skip to content

chore: refactor prometheus to handle missing data#2696

Merged
alexjustesen merged 2 commits intoalexjustesen:1.xfrom
svenvg93:2695-fix-prometheus-missing-value
Feb 5, 2026
Merged

chore: refactor prometheus to handle missing data#2696
alexjustesen merged 2 commits intoalexjustesen:1.xfrom
svenvg93:2695-fix-prometheus-missing-value

Conversation

@svenvg93
Copy link
Contributor

@svenvg93 svenvg93 commented Feb 4, 2026

📃 Description

Quick refactor for Prometheus to handle missing data and don't try to create metrics for it

fixes #2695

Note: I will improve it more for v2 😉

🪵 Changelog

➕ Added

  • registerGaugeIfNotNull function to only create metric when not null

@alexjustesen alexjustesen merged commit cb659fc into alexjustesen:1.x Feb 5, 2026
9 checks passed
@svenvg93 svenvg93 deleted the 2695-fix-prometheus-missing-value branch February 5, 2026 04:45
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.

[Question] /prometheus endpoint throwing 500 error

2 participants