Skip to content

Fixes site_link_errors_total not counting errors#2402

Merged
AryanP123 merged 1 commit intoskupperproject:mainfrom
AryanP123:metric-increment
Mar 16, 2026
Merged

Fixes site_link_errors_total not counting errors#2402
AryanP123 merged 1 commit intoskupperproject:mainfrom
AryanP123:metric-increment

Conversation

@AryanP123
Copy link
Contributor

Fixes #2378

@AryanP123
Copy link
Contributor Author

@c-kruse 's fix makes sense and tests pass.
As a possible follow-up we could allow the metric to always exist for every link by treating nil DownCount as 0 in Add/Update. Not required for this, but that way scrapers always see skupper_site_link_errors_total (at least at 0) instead of it only appearing after the router has reported a non-nil DownCount.

Copy link
Member

@fgiorgetti fgiorgetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patch worked ok for me.

@AryanP123 AryanP123 merged commit 8880c36 into skupperproject:main Mar 16, 2026
1 check passed
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.

skupper_site_link_errors_total never increments

2 participants