Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure carbon in graphite to store metrics redundantly?

I have the following issue: I want to collect data from several locations (or servers). Now I want to store all collected data locally at that location (via carbon-cache, storage-schemas and so on), but in addition to that I want to aggregate (carbon-aggregator) this information (to reduce network load) and send it to another (main or central) location where all the important metrics from different locations are stored. The reason for this is, that internet connection to several locations is not always that reliable as some locations are in developing countries. Therefore a local backup with all the data would reduce the risk of losing important data. I thought of a setup where I use carbon-relay to duplicate the data. One goes into carbon-cache, the other one into carbon-aggregator which forwards it to the main location. Is this even possible? How would I achieve this configuration? Or what would be another possibility to achieve my goal. I appreciate any help.

like image 653
Norbert Winkler Avatar asked Feb 01 '26 15:02

Norbert Winkler


1 Answers

Yes, you'd use carbon-relay to do this.

Configuring your carbon.conf to do relaying: http://graphite.readthedocs.org/en/latest/carbon-daemons.html

Then you need to configure relay-rules.conf: http://graphite.readthedocs.org/en/latest/config-carbon.html

Here's a more detailed explanation with an example: https://answers.launchpad.net/graphite/+question/126700

like image 192
Harry Park Avatar answered Feb 03 '26 09:02

Harry Park