Graphite Plugin
Purpose
The Graphite plugin gives the possibility to collect metrics, alarms and metadata in Graphite plateform.
Once active, this plugin will collect all generated alerts, metrics and metadata and store them waiting for the probe to collect them
To limit memory usage the number of element temporally stored is limited
Plugin configuration
Enabled: To enable or disable the plugin
Name : The name of the plugin to display in the list of plugins
HOST : Host where is installed your Graphite instance
Port : Port connexion Graphite
URL : Webservice
URL to sent all alarms and metrics
Secure mode : Use https protocol
Send alarms : To enable or disable the send alarms
Send metrics : To enable or disable the send metrics
Send Redpeaks stats : Send the meta monitors jobs
Max chunk size : The maximum number of alerts or metrics waiting in the output buffer. Used to limit the memory usage if events are created faster than consumed
Installing graphite
Prerequisites
Linux VM with a Cent
OS/RedHat distribution
-
2 cores
-
Installation
docker exec -i -t graphite bash
vi /opt/graphite/conf/storage-schemas.conf
Configure the retention granularity.
[agentil metrics availability]
pattern = ^agentil\.promonitor\.
retentions = 1m:7d,5m:30d,1h:90d
[agentil sap]
pattern = ^agentil\.sap\.
retentions = 1m:7d,5m:30d,1h:90d
you can define custom granularity based on metric path
Then remove everything in /opt/graphite/storage/whisper
Then restart graphite via docker:
If iptables problem issue when starting graphite, try to restart docker:
Installing Grafana
Install
Start
Check /var/lib/grafana is writable
sudo docker start <image ID>
Does not restart automatically if docker is restarted
Troubleshooting
sudo docker exec -i -t graphite bash
cd /var/log
rm -f carbon.log
exit
sudo docker stop graphite
sudo docker start graphite