Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watcher reconnection metrics #222

Open
joprice opened this issue Jul 30, 2021 · 1 comment
Open

watcher reconnection metrics #222

joprice opened this issue Jul 30, 2021 · 1 comment
Labels
enhancement New feature or request question Further information is requested
Milestone

Comments

@joprice
Copy link

joprice commented Jul 30, 2021

I'd like to swap a client with custom watcher reconnection handling with this one, but the custom client has metrics around connection failures and reconnection attempts. Any recommendation for intercepting those calls for collecting metrics?

@vigoo vigoo added enhancement New feature or request question Further information is requested labels Aug 5, 2021
@vigoo
Copy link
Collaborator

vigoo commented Aug 5, 2021

Right now I think you can only do this by writing a custom STTP backend wrapping the real one, like described here: https://sttp.softwaremill.com/en/latest/backends/wrappers/custom.html#example-metrics-backend-wrapper

I think it wold be nice to introduce a concept of K8sCallAspects similar to what I did in zio-aws (https://vigoo.github.io/zio-aws/docs/aspects.html) that can be simply applied to any K8s client layer to attach custom logging/metrics functionality.

@vigoo vigoo added this to the 1.4 milestone Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants