← Back to team overview

graphite-dev team mailing list archive

Re: [Question #212249]: Whats The Meaning This Script

 

Question #212249 on Graphite changed:
https://answers.launchpad.net/graphite/+question/212249

    Status: Open => Answered

Nicholas Leskiw proposed the following answer:
A graphite message (the data sent from a data collection daemon) is in
the format:

metric_path value timestamp\n

metric_path is the name.

Example:  myCompany.servers.webserver01.BusyWorkers
This is whatever name you want. 

value is the data to store.

If there were 45 BusyWorker threads in my webserver, I'd put 45 for the
value.

Next is a timestamp in Epoch format (Number of seconds since Jan 1,
1970. Run 'date +%s' to get that, most programming languages have a
function to get time in that format.

Last, each message must end with a newline character - '\n' on most
Linux / UNIX systems.

So all together, it would look like

"myCompany.servers.webserver01.BusyWorkers 45 1351571654\n"

If you were storing the load avg. it might look like this:

"myCompany.servers.app01.loadavg01min 6.78 1351571654\n"

It's your job to find or write a program to send data to Graphite.
Graphite doesn't collect anything on it own.

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.