Skip to content

fix(destination): fix workload subscribers metric#14683

Merged
olix0r merged 2 commits into
mainfrom
alex/subscribers-gauge-fix
Nov 6, 2025
Merged

fix(destination): fix workload subscribers metric#14683
olix0r merged 2 commits into
mainfrom
alex/subscribers-gauge-fix

Conversation

@adleong

@adleong adleong commented Nov 4, 2025

Copy link
Copy Markdown
Member

The destination controller has a gauge metric called workload_subscribers which tracks the number of subscribers to an endpoint profile. However, since we have dropped all labels from this metric due to high cardinality, we are now re-using the same gauge for all ip:port publishers. This means that each time we set the gauge value, it overrides the previous value and only tracks the number of subscribers to the most recently subscribed ip:port combination.

We move this logic up so that the workload_subscribers gauge instead tracks the total number of subscribers across all ip:port publishers.

Signed-off-by: Alex Leong <alex@buoyant.io>
@adleong adleong marked this pull request as ready for review November 4, 2025 23:00
@adleong adleong requested a review from a team as a code owner November 4, 2025 23:00
Comment thread controller/api/destination/watcher/workload_watcher.go
Comment thread controller/api/destination/watcher/workload_watcher.go Outdated
Signed-off-by: Alex Leong <alex@buoyant.io>
@olix0r olix0r merged commit c694ebd into main Nov 6, 2025
66 of 68 checks passed
@olix0r olix0r deleted the alex/subscribers-gauge-fix branch November 6, 2025 17:52
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.

2 participants