Skip to content

Conversation

micwehrle
Copy link

@johndodev
Copy link

bump ?

@johndodev
Copy link

Actually you don't need statsd/statsd#539 since the option keyNameSanitize: false do the job.

👍

@SigbertUCE
Copy link

Hi Johndodev..I have Graphite as a backend when sending StatsD metrics from my application.We moved to influxdb 0.10 version and am unable to get the tags working with StatsD.
Eg: When trying to send the below counter in influxdb i see it as a single series name instead of multiple tags. statsdClient.increment("CCRCBusinessUsage.QuoteCreation.CreateQuote.CreateQuoteBasicClickTestInflux10,service=payroll,region=us-west");

Can you help me identify if StatsD with Graphite does not support multiple tags ?

Sigbert

@johndodev
Copy link

Hi,

sorry I dont' use Graphite at all, I don't know if the visualizator of graphite support tags.

Anyway, to send tags in influxDb with statsd you can use this fork of influxdb-backend: https://github.com/johndodev/statsd-influxdb-backend

and add keyNameSanitize: false in config.js of statsd.

Below is my config:

{
    influxdb: {
        host: '127.0.0.1', // InfluxDB host. (default 127.0.0.1)
        port: 8086, // InfluxDB port. (default 8086)
    version: 0.9,  
        database: 'statsd',  // InfluxDB database instance. (required)
        username: '[username]', // InfluxDB database username. (required)
        password: '[password]', // InfluxDB database password. (required)
        flush: {
            enable: true // Enable regular flush strategy. (default true)
        },
        proxy: {
            enable: false, // Enable the proxy strategy. (default false)
            suffix: 'raw', // Metric name suffix. (default 'raw')
            flushInterval: 1000 // Flush interval for the internal buffer.
                // (default 1000)
        }
    },
    keyNameSanitize: false,
    port: 8125, // StatsD port.
    backends: ['./backends/console', 'statsd-influxdb-backend'],
    debug: false,
    legacyNamespace: false,
    flushInterval: 10000
}

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

Successfully merging this pull request may close these issues.

3 participants