Skip to content

Instantly share code, notes, and snippets.

@vadirajks
Created August 22, 2023 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vadirajks/fd5dbcffd45fbca4308a3979f69b752f to your computer and use it in GitHub Desktop.
Save vadirajks/fd5dbcffd45fbca4308a3979f69b752f to your computer and use it in GitHub Desktop.
file etc-statsd-config.js
{
graphitePort: 2003,
graphiteHost: "graphite",
port: 8125,
mgmt_adress: "127.0.0.1",
mgmt_port: 8126,
backends: [ "./backends/graphite" ],
graphite: {
legacyNamespace: false,
globalPrefix: "stats",
prefixCounter: "counters",
prefixTimer: "timmers",
prefixGauge: "gauges",
prefixSet: "sets",
globalSuffix: require('os').networkInterfaces().eth0[0].address.replaceAll(".", "-"),
},
flushInterval: 60000,
debug: true,
dumpMessages: true
}
or
{
graphitePort: 2003,
graphiteHost: "graphite",
port: 8125,
mgmt_adress: "127.0.0.1",
mgmt_port: 8126,
backends: [ "./backends/graphite" ],
graphite: {
legacyNamespace: false,
globalPrefix: "stats",
prefixCounter: "counters",
prefixTimer: "timmers",
prefixGauge: "gauges",
prefixSet: "sets",
globalSuffix: require('os').networkInterfaces().eth0[0].address,
},
flushInterval: 60000,
debug: true,
dumpMessages: true
}
or
{
graphitePort: 2003,
graphiteHost: "graphite",
port: 8125,
mgmt_adress: "127.0.0.1",
mgmt_port: 8126,
backends: [ "./backends/graphite" ],
graphite: {
legacyNamespace: false,
globalPrefix: "stats",
prefixCounter: "counters",
prefixTimer: "timmers",
prefixGauge: "gauges",
prefixSet: "sets",
globalSuffix: require('os').hostname().split('.')[0],
},
flushInterval: 60000,
debug: true,
dumpMessages: true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment