8000 Support for namespace in graphite bridge by kvikas · Pull Request #56 · prometheus/client_python · GitHub
[go: up one dir, main page]

Skip to content

Support for namespace in graphite bridge #56

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

Merged
merged 2 commits into from
Oct 4, 2015

Conversation

kvikas
Copy link
@kvikas kvikas commented Oct 3, 2015
  1. An optional prefix parameter in bridge.graphite.GraphiteBridge.push().
  2. prefix is prepended to metrics name before sending to graphite server.
  3. Unit test.

Issue #49

1. An optional `prefix` parameter in `bridge.graphite.GraphiteBridge.push()`.
2. `prefix` is prepended to metrics name before sending to graphite server.
3. Unit test.
@kvikas kvikas changed the title Support for namespace in graphite bridge #49 Support for namespace in graphite bridge Oct 3, 2015
@@ -49,9 +49,14 @@ def __init__(self, address, registry=core.REGISTRY, timeout_seconds=30, _time=ti
self._timeout = timeout_seconds
self._time = _time

def push(self):
def push(self, prefix=''):
Copy link
Contributor

Choose a reason for hiding this comment

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

start() needs this option too.

Copy link
Author

Choose a reason for hiding this comment

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

Done.

1. Added an optional parameter `prefix` to `bridge.graphite.GraphiteBridge.push()`.
2. Initialize _RegularPush with `prefix`.
brian-brazil added a commit that referenced this pull request Oct 4, 2015
Support for namespace in graphite bridge
@brian-brazil brian-brazil merged commit fc5a6e3 into prometheus:master Oct 4, 2015
@brian-brazil
Copy link
Contributor

Thanks!

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
0