Skip to content
This repository has been archived by the owner on Oct 27, 2018. It is now read-only.

Compatibility with Hosted Graphite #13

Open
mdundas opened this issue Dec 6, 2014 · 1 comment
Open

Compatibility with Hosted Graphite #13

mdundas opened this issue Dec 6, 2014 · 1 comment

Comments

@mdundas
Copy link

mdundas commented Dec 6, 2014

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?

@laubsauger
Copy link

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"]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants