2019-07-18 21:25:53 -05:00
|
|
|
# Enabling support for Graphite
|
2017-08-13 19:18:19 +01:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
This module sends all metrics to a remote graphite service. You need
|
|
|
|
|
something like Grafana for graphing.
|
2017-08-13 19:18:19 +01:00
|
|
|
|
2021-07-10 03:34:01 +08:00
|
|
|
## What you don't get
|
2019-07-18 21:25:53 -05:00
|
|
|
|
|
|
|
|
- Pretty graphs, this is why at present you need Grafana. You need to
|
|
|
|
|
build your own graphs within Grafana.
|
|
|
|
|
|
|
|
|
|
RRD will continue to function as normal so LibreNMS itself should
|
|
|
|
|
continue to function as normal.
|
|
|
|
|
|
2021-07-10 03:34:01 +08:00
|
|
|
## Configuration
|
2017-08-13 19:18:19 +01:00
|
|
|
|
|
|
|
|
```php
|
|
|
|
|
$config['graphite']['enable'] = true;
|
|
|
|
|
$config['graphite']['host'] = 'your.graphite.server';
|
|
|
|
|
$config['graphite']['port'] = 2003; // this defaults to 2003 and is usually not needed
|
|
|
|
|
$config['graphite']['prefix'] = 'your.metric.prefix';
|
|
|
|
|
```
|
|
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
Your metric path can be prefixed if required, otherwise the metric
|
|
|
|
|
path for Graphite will be in the form of
|
|
|
|
|
`hostname.measurement.fieldname`, interfaces will be stored as
|
|
|
|
|
`hostname.ports.ifName.fieldname`.
|
|
|
|
|
|
|
|
|
|
The same data then stored within rrd will be sent to Graphite and
|
|
|
|
|
recorded. You can then create graphs within Grafana to display the
|
|
|
|
|
information you need.
|
2017-08-13 19:18:19 +01:00
|
|
|
|
2021-07-10 03:34:01 +08:00
|
|
|
## Graphite Configuration
|
2017-08-13 19:18:19 +01:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
As LibreNMS updates its metrics every 5 minutes, the following
|
|
|
|
|
addition to your storage-schemas.conf is suggested.
|
2017-08-13 19:18:19 +01:00
|
|
|
|
|
|
|
|
```
|
|
|
|
|
[network]
|
|
|
|
|
pattern = your\.metric\.prefix\..*
|
|
|
|
|
retentions = 5m:30d,15m:90d,1h:1y
|
|
|
|
|
```
|