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

Added support for sampling factor on timing events #28

Merged
merged 1 commit into from
May 25, 2017

Conversation

mr-andreas
Copy link
Contributor

Added support for sampling rate in timings. This will for instance accept the statsd line

object-server.REPLICATE.timing:0.500917434692|ms|@0.1

The above line is real and was sent by openstack swift in our environment.

When a timing event with a sample rate set is received, it will be cloned a number of times in order to simulate it being received without a sampling rate set. This is kind of a dirty hack, but I think that it should be fine in practice.

@grobie
Copy link
Member

grobie commented May 3, 2016

We apparently missed this pull request. @yoshiyaka Can you rebase against current master and adjust?

@sdurrheimer
Copy link
Contributor

@yoshiyaka Are you still maintaining this PR ?

@mr-andreas
Copy link
Contributor Author

Yes, but there are quite a few merge conflicts that I don't have the time to solve right now. Should I close this and open a new PR once they've been fixed?

@SuperQ
Copy link
Member

SuperQ commented May 12, 2017

@yoshiyaka Ping, do you want to fix this up and get it merged?

@mr-andreas
Copy link
Contributor Author

Now it should be ready to go. Sorry for the delay :)

@grobie
Copy link
Member

grobie commented May 25, 2017

Thanks! We should refactor and clean up the statsd exporter at some point, but that's outside of the scope of this PR.

@grobie grobie merged commit 663b6a1 into prometheus:master May 25, 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

Successfully merging this pull request may close these issues.

4 participants