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

Support for statsd metric tagging #81

Open
tcrossland opened this issue Jun 6, 2016 · 4 comments
Open

Support for statsd metric tagging #81

tcrossland opened this issue Jun 6, 2016 · 4 comments

Comments

@tcrossland
Copy link

It would be useful to be able to use statsd tags in metrics (see the Metric Tagging section here), for example:

<query objectName="..." attribute="..." resultAlias="metric-name#tag=value"/>

Currently this will be rejected by jmxtrans-agent's expression engine:

Invalid expression 'metric-name#tag=value', no ending '#' after beginning '#' at position ...
@tcrossland tcrossland changed the title Support for statd metric tagging Support for statsd metric tagging Jun 6, 2016
@cyrille-leclerc
Copy link
Member

Thanks @tcrossland,

# is a reserved character used by the "expression language engine". We would have to extend the "expression language engine" to support an escape character '' so we could define \#

It would look like

<query objectName="..." attribute="..." resultAlias="metric-name\#tag=value"/>

It should not be a huge amount of work.

@tcrossland
Copy link
Author

@cyrille-leclerc thanks, that seems like a reasonable approach. Let me know if I can help.

@jakobant
Copy link
Contributor

jakobant commented Nov 7, 2017

Updated to support statsd tags, both for Sysdig and DataDog

#118

@jrpilat
Copy link

jrpilat commented Mar 14, 2018

@jakobant Are you sure that's the same functionality? This issue describes being able to have different tags on different queries which share the same StatsDOutputWriter. Maybe I misunderstood your comment.

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

No branches or pull requests

4 participants