Skip to content

Add metrics for external targets - #178

Open
stieler-it wants to merge 1 commit into
bloomberg:masterfrom
stieler-it:target-metrics
Open

stieler-it wants to merge 1 commit into
bloomberg:masterfrom
stieler-it:target-metrics

Conversation

@stieler-it

@stieler-it stieler-it commented Oct 16, 2026 •

Copy link
Copy Markdown

Issue number of the reported bug or feature request: #92, #127

Describe your changes
--tcp-targets, --dns-targets and --http-targets checked only exposed response times in the JSON /check response and bumped an error counter on failure - there was no gauge for current up/down status and no latency histogram, so Prometheus couldn't track these targets the way it already tracks peer pings. This has been added in this PR.

Testing performed
I have built a new Docker image based on this changes and am running it in our test environment. I have access to the metrics in Prometheus/Grafana and could not notice and regression.

Additional context
The removed gate in updater.go fixes a bug that probably went unnoticed until now as its only impact was too low error numbers under certain conditions. Now it becomes important to make sure Prometheus metrics are updated.

Signed-off-by: Michael Cornel <[email protected]>

This branch has not been deployed

No deployments
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.

1 participant