Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Statsd & Graphite - get data as CSV

I use statsd for measuring stats and Graphite for displaying these. Anyway, I would like to do a more sophisticated analysis in statistical software, to find out the relations between various variables.

In order to do this, I need the "raw" data, which are usually displayed in Graphite as color lines. Is it possible to get the data in CSV format? Data sampled to 1 entry per 10 seconds will be perfect, and that's statsd default behavior, I think.

like image 629
Pavel S. Avatar asked Jan 24 '14 11:01

Pavel S.


People also ask

What is StatsD used for?

StatsD is a front-end proxy originally written by Etsy's Erik Kastnen in Node. js, to collect metrics from instrumented code. Learn how to use #StatsD to instrument your #Golang #NodeJS or #Python code with custom metrics. And multiple client implementations that will allow us to instrument our applications as well.

Is StatsD push or pull?

StatsD is an example of a monitoring system where the application pushes the metrics to the system.

What is StatsD in Linux?

A network daemon that runs on the Node. js platform and listens for statistics, like counters and timers, sent over UDP or TCP and sends aggregates to one or more pluggable backend services (e.g., Graphite).

What is StatsD AWS?

StatsD is a popular open-source solution that can gather metrics from a wide variety of applications. StatsD is especially useful for instrumenting your own metrics.


1 Answers

Yes. And it is straightforward.

Server: graphite.example.com
Metric: Graphite.system.data.ip-10-0-0-1.load

As you might be aware, Graphite has a URL API.

graphite.example.com/render/?target=Graphite.system.data.ip-10-0-0-1.load

Returns the line-graph. To get data in csv or even json, append- &format=json

graphite.example.com/render/?target=Graphite.system.data.ip-10-0-0-1.load&format=csv
like image 101
erbdex Avatar answered Oct 12 '22 11:10

erbdex