-
Notifications
You must be signed in to change notification settings - Fork 801
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 tags support to GraphiteBridge #618
Add tags support to GraphiteBridge #618
Conversation
Graphite has support for tagged metrics with a syntax very similar to the non-tagged format. Update GraphiteBridge to support it. Signed-off-by: Matt Wilder <me@partcyb.org>
b0ca484
to
1041d23
Compare
@csmarchbanks (new project maintainer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
A couple of small comments, but otherwise this looks good to me.
README.md
Outdated
```python | ||
from prometheus_client.bridge.graphite import GraphiteBridge | ||
|
||
gb = GraphiteBridge('graphite.your.org', 2003, tags=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be GraphiteBridge(('graphite.your.org', 2003), tags=True)
for the same reason as the last comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
* Fix `GraphiteBridge` calls in README.md * Place the new `tags` kwarg at the end of the `GraphiteBridge` constructor. Signed-off-by: Matt Wilder <me@partcyb.org>
README.md
Outdated
```python | ||
from prometheus_client.bridge.graphite import GraphiteBridge | ||
|
||
gb = GraphiteBridge(('graphite.your.org', 2003, tags=True)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too many things in the tuple here :)
It should be GraphiteBridge(('graphite.your.org', 2003), tags=True)
Signed-off-by: Matt Wilder <me@partcyb.org>
832f702
to
7f83b9e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good, thanks!
Thanks for the quick review! Do you have a general idea of when a prometheus_client release with this change might make its way to pypi? It would just be nice to know when I stop building this from the git repo in our relevant Dockerfiles. |
Good question, my estimate is within a month or so. As you saw, I recently took over as maintainer of this repo and am still on-boarding some. |
Sounds good. Thanks again and good luck with maintainership. |
Add tags support to GraphiteBridge Graphite has support for tagged metrics with a syntax very similar to the non-tagged format. Update GraphiteBridge to support it. Signed-off-by: Matt Wilder <me@partcyb.org> Signed-off-by: Trinh <iy3827-admin@dupont.com>
Graphite has support for tagged metrics with a syntax very similar to
the non-tagged format. Update GraphiteBridge to support it.
Graphite's carbon tags format is explained here: https://grafana.com/blog/2018/01/11/graphite-1.1-teaching-an-old-dog-new-tricks
@brian-brazil