diff options
Diffstat (limited to 'docs/source/telemetry.md')
-rw-r--r-- | docs/source/telemetry.md | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/docs/source/telemetry.md b/docs/source/telemetry.md index 5cc751525..041c032b4 100644 --- a/docs/source/telemetry.md +++ b/docs/source/telemetry.md @@ -61,19 +61,26 @@ LoadPlugin vpp_hicn Before running collectd, a vpp forwarder must be started. If the vpp-hicn plugin is used, the hicn-plugin must be available in the vpp forwarder. +If you need the custom types that the two plugins define, they are present in +`telemetry/custom_types.db`. It is useful if you are using InfluxDB as it requires +the type database for multi-value metrics +(see [CollectD protocol support in InfluxDB](https://docs.influxdata.com/influxdb/v1.7/supported_protocols/collectd/)). + ### Example: storing statistics from vpp and vpp-hicn We'll use the rrdtool and csv plugins to store statistics from vpp and vpp-hicn. +Copy the configuration below in a file called `collectd.conf` and move +it to `/etc/collectd`: -Edit the configuration file as the following: - -```html +``` ###################################################################### # Global # ###################################################################### FQDNLookup true -BaseDir "/collectd" +BaseDir "/var/lib/collectd" Interval 1 +# if you are using custom_types.db, you can specify it +TypesDB "/usr/share/collectd/types.db" "/etc/collectd/custom_types.db" ###################################################################### # Logging # @@ -99,12 +106,12 @@ LoadPlugin vpp_hicn # Plugin configuration # ###################################################################### <Plugin csv> - DataDir "/collectd/csv" # the folder under which statistics are written in csv + DataDir "/var/lib/collectd/csv" # the folder where statistics are stored in csv StoreRates true </Plugin> <Plugin rrdtool> - DataDir "/collectd/rrd" # the folder under which statistics are written in rrd + DataDir "/var/lib/collectd/rrd" # the folder where statistics are stored in rrd </Plugin> ``` |