Graphite Functions Summarize, Highest Average, etc

Posted junio 29th, 2012 in Blog by mateo
In this post we are going to review the main graphite functions that I use in my everyday work and some tricks that I found really useful. But first, we need to explain, what is Graphite ?
According to the  developers:
Graphite consists of a storage backend and a web-based visualization frontend. Client applications send streams of numeric time-series data to the Graphite backend (called carbon), where it gets stored in fixed-size database files similar in design to RRD. The web frontend provides 2 distinct user interfaces for visualizing this data in graphs as well as a simple URL-based API for direct graph generation.
Graphite’s design is focussed on providing simple interfaces (both to users and applications), real-time visualization, high-availability, and enterprise scalability.

Graphite Functions

Graphite Functions

The graphite functions that we are going to review are: Summarize, Highest Average, Alias by Node and Derivative, but you can find more deep information at the Official Documentation.

Continue Reading »

Why graphite wont show data after 24hs period?

Posted febrero 14th, 2012 in Blog, Data and Metrics by admin

Problem: You changed storage-schemas.conf to save data for a longer period than 24hs but still all graphs show data only up to 24hs.

Short Answer: RTFM.

Long Answer:
The manual clearly says that if you change storage-schemas.conf carbon won’t resize your whisper database, your change will apply to newly created databases, all the ones that existed before the change will keep the old format.

However, there’s a command line utility called provided by graphite which is very handy for this situations. For example, let’s say you have changed the format for databases that belong to the pattern *.daily.* and that the new format you want is “60s:90d,1h:180d”. Whisper stores all it’s data inside /opt/graphite/storage/whisper so you need to go there and find the precise path to your whisper (.wsp) database file. Then run:

That will update your file and create a backup file with the original format with extension bkp. But, if you have been using it dynamically it’s very likely you have tens or hundreds of metrics you want to update. That’s what xargs is for:

And you are done, only thing left is after test everything went ok you need to remove all backups:

Good luck with graphite!