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

add Wavefront Handler #632

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

snltd
Copy link

@snltd snltd commented Apr 10, 2017

This is a repeat of a PR that's I'd previously had open for a very long time. It reached a point where rebasing from master was getting so messy that I chose to close it and generate a fresh, clean PR. Two new files and one minor change, in a single commit.

It adds support for a handler which sends multidimensional metrics to a Wavefront proxy. I've been using it in production for the best part of a year.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 24.049% when pulling 8b977b0 on snltd:feature/wavefront_handler into 50e7eb5 on python-diamond:master.

@shortdudey123
Copy link
Member

Supersedes #480

@shortdudey123
Copy link
Member

Can you change the commit message to be relevant to what it is? also add testing?

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 24.049% when pulling 1b2a1fd on snltd:feature/wavefront_handler into 50e7eb5 on python-diamond:master.

@snltd snltd changed the title clean commit add Wavefront Handler Dec 1, 2017
@@ -376,7 +376,7 @@ def collect(self):
raise NotImplementedError()

def publish(self, name, value, raw_value=None, precision=0,
metric_type='GAUGE', instance=None):
metric_type='GAUGE', instance=None, point_tags=None):
Copy link
Member

Choose a reason for hiding this comment

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

metric_tags would make more sense throughout.

Send metrics to a Wavefront proxy
"""

RETRY = 3
Copy link
Member

Choose a reason for hiding this comment

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

Please make this a config option.

'host': 'Wavefront proxy endpoint',
'port': 'port on Wavefront proxy',
'timeout': '',
'format': '',
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a description for these 2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants