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

delete or remove method in ruby-client #64

Closed
wdp-007 opened this issue Jun 23, 2017 · 2 comments
Closed

delete or remove method in ruby-client #64

wdp-007 opened this issue Jun 23, 2017 · 2 comments

Comments

@wdp-007
Copy link

wdp-007 commented Jun 23, 2017

I did not find delete or remove method in ruby-client, like gauge:
gauge.set({ room: 'kitchen' }, 21.534)
gauge.get({ room: 'kitchen' })
Is there any gauge.delete or gauge.remove method? I did not find this in the source code also.

@wdp-007
Copy link
Author

wdp-007 commented Jun 24, 2017

Or is there any way or parameter to make metrics expire?

@grobie
Copy link
Member

grobie commented Jun 26, 2017

For direct instrumentation, no labels should be used which need to get removed again. This is usually a sign for wrong instrumentation.

There are valid use cases though, which almost all fall into the use case of writing exporters. client_ruby is currently not well suited to well suited for that, until the collector interface has been implemented #36.

@grobie grobie closed this as completed Jun 26, 2017
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

No branches or pull requests

2 participants