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

Implements vanilla StatsD backend #20

Closed
wants to merge 2 commits into from
Closed

Implements vanilla StatsD backend #20

wants to merge 2 commits into from

Conversation

jruere
Copy link
Contributor

@jruere jruere commented May 14, 2017

Implemented as discussed in #3.

@jruere jruere mentioned this pull request May 14, 2017

.. seealso::

http://docs.datadoghq.com/guides/metrics/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seealso should probably be a different url so people who follow it don't get confused by Datadog statsd enhancements.

Maybe this url?: http://statsd.readthedocs.io/en/v3.2.1/configure.html

self.client.timing(stat=stat, delta=value)

def histogram(self, stat, value, tags=None):
"""Measure a value for statistical distribution"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should mention that it's turning around and using the timing, too. Kind of like how I did this:

https://github.com/willkg/markus/blob/fe2d5a365beb2a4dfa650c1790332c03ee14c376/markus/backends/cloudwatch.py#L61

@@ -54,7 +54,8 @@ def get_file(fn):
'six',
],
extra_requires={
'datadog': ['datadog']
'datadog': ['datadog'],
'statsd': ['statd'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be;

'statsd': ['statsd'],

assert (
ddm.client.calls ==
[('timing', (), {'stat': 'foo', 'delta': 4321})]
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests are great!

Having said that, if you have better ideas for how to test backends in Markus, I'm all ears.

@willkg
Copy link
Contributor

willkg commented May 15, 2017

I had a couple of minor issues, but otherwise this is great! If you could fix those, I'd love to merge this.

Thank you!

@willkg
Copy link
Contributor

willkg commented Aug 17, 2017

@jruere How's this coming along? Is there anything I can do to help you land it?

@jruere
Copy link
Contributor Author

jruere commented Aug 17, 2017

Sorry, I'm quite busy ATM and I could not use the project internally in the end.

I'm not sure when I'll resume this work.

@willkg
Copy link
Contributor

willkg commented Aug 19, 2017

That's totally fine! I can take this and finish it up. Thank you for working on it!

@willkg willkg mentioned this pull request Aug 21, 2017
@willkg
Copy link
Contributor

willkg commented Aug 21, 2017

I took what you did and then finished it up. That's in pull request #22.

Thank you for working on this!

@willkg willkg closed this Aug 21, 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.

2 participants