Created
August 22, 2023 10:54
-
-
Save vadirajks/fd5dbcffd45fbca4308a3979f69b752f to your computer and use it in GitHub Desktop.
file etc-statsd-config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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