Skip to content

feat(http): Add connection metrics - #271

Open
bboreham wants to merge 1 commit into
thanos-io:mainfrom
bboreham:conntrack-metrics
Open

feat(http): Add connection metrics#271
bboreham wants to merge 1 commit into
thanos-io:mainfrom
bboreham:conntrack-metrics

Conversation

@bboreham

@bboreham bboreham commented Aug 24, 2026

Copy link
Copy Markdown
  • I added CHANGELOG entry for this change.

Changes

Add metrics net_conntrack_dialer_conn_*_total for every connection attempted, failed, closed, etc.

Commentary

Conntrack metrics have a dialer_name label that can be useful to see connections for different reasons.
It would be rather invasive to add this as a parameter to DefaultTransport, but there is a helper conntrack.DialNameToContext which lets you pass the name via context from the point where the dial is triggered.

Verification

I have been using this with Loki, which uses thanos-io/objstore for blob access.

Add metrics `net_conntrack_dialer_conn_*_total` for every connection
attempted, failed, closed, etc.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
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