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

How to escape commas, colons, and equals in tag names and values? #17

Open
mcandre opened this issue Mar 29, 2017 · 0 comments
Open

How to escape commas, colons, and equals in tag names and values? #17

mcandre opened this issue Mar 29, 2017 · 0 comments

Comments

@mcandre
Copy link

mcandre commented Mar 29, 2017

How should statsd users escape tag elements that contain characters used for tag syntax?

Common strings that users may wish to include in tag names and/or values:

  • localhost:80 (network address colon conflicts with InfluxDB and Datadog formats)
  • 192.168.1.2,192.168.1.3,192.168.1.4 (comma conflicts with comma tag separator)
  • YQ== (base64 trailing equals conflicts with InfluxDB format)
  • #general (IRC channel name sharp conflicts with Datadog format)
  • cat README.txt | less (pipe in command conflicts with statsd base format)

How should these characters be escaped? Should statsd users try to use the C escape convention, like localhost\:80 and YQ\=\=?

Could alexcesaro/statsd provide standard functions for escaping and unescaping strings that contain these special characters?

Could the statsd Go API automatically escape tag names and values on the user's behalf?

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

1 participant