statsd-influxdb-backend
statsd-influxdb-backend copied to clipboard
How to stop translating '/' to '-' in statsd key?
We use statsd to measure api time cost and count. I pass http uri as key to statsd, but it seems that influxdb receives data with key translated by statsd.
I comment out line 288 .replace(/\//g, '-')
and restart statsd, but still doesn't work
@hbprotoss I think it is first sanitized by statsd
https://github.com/etsy/statsd/blob/243a1f2a166c2d573f7582dc0c42f50f257e4150/stats.js#L167
@hbprotoss it looks like you can stop the sanitization with a statsd config:
keyNameSanitize = false