BuckyServer icon indicating copy to clipboard operation
BuckyServer copied to clipboard

Compatibility with Hosted Graphite

Open mdundas opened this issue 11 years ago • 1 comments

Great project! I'd like to get this working with HostedGraphite.com
Looks like i need to prefix the metrics with my API Key. Where in the code would you recommend doing this?

mdundas avatar Dec 06 '14 18:12 mdundas

Just in case you have not solved this issue or somebody else stumbles upon this. Here is a guide from hosted graphite: Hosted Graphite - statsd Integration

Basically you want to add this to the config file thats getting passed to statsd when running node stats.js path/to/config.js

You may want to add a console backend to statsd config for local development and testing so you're able to see what statsd is doing.

See my statsd config:

{
    port: 8125,
    flushInterval: 10000,
    graphitePort: 2003,
    graphiteHost: "carbon.hostedgraphite.com",
    graphite: {
      legacyNamespace: false,
      globalPrefix: "your-api-key-goes-here"
    },
    backends: ["./backends/graphite", "./backends/console"]
}

laubsauger avatar Dec 28 '15 10:12 laubsauger