bernd / statsd-influxdb-backend

A naive InfluxDB backend for StatsD
ISC License
172 stars 74 forks source link

How to stop translating '/' to '-' in statsd key? #31

Open hbprotoss opened 8 years ago

hbprotoss commented 8 years ago

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

longtian commented 8 years ago

@hbprotoss I think it is first sanitized by statsd

https://github.com/etsy/statsd/blob/243a1f2a166c2d573f7582dc0c42f50f257e4150/stats.js#L167

markkimsal commented 8 years ago

@hbprotoss it looks like you can stop the sanitization with a statsd config:

keyNameSanitize = false