Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 2.93 KB

Templates.md

File metadata and controls

42 lines (32 loc) · 2.93 KB

Quick Reference Guide

InfluxDB 2.0 Templates

InfluxDB templates are preconfigured InfluxDB resources and can contain everything from dashboards and Telegraf configurations to notifications and alerts.

In this example, a Template to monitor the network performance is beeing installed
All other Templates (from Github or self build) should follow the exact same process while installing.

  1. Naviagte to "Settings" --> "Templates".

  2. Paste the URL of the Templates resouce. A list of predefined Templates can be find here.
    In this example, the "Network-Interface-Performance" package will be installed.

  3. Paste the URL of the "Network-Interface-Performance" and "Lookup for Templates". Install all the resources found from Github via the button "Install Template".
    Template_Install

  4. Next, navigate to "Data" --> "Telegraf" and open the new created "Network Interface Monitoring" Telegraf-Configuration the Template installed.
    Template_Install2

  5. Change all configurations ("$") according to your system.
    Template_Install3

  6. Save the Configuration and download it via the button "Download Config".
    Open up a new session with "WinSCP" and paste the file into:
    /opt/plcnext/edge/telegraf/etc/telegraf
    Template_Install4

  7. To start the Template for the first time, open up a new SSH Shell (PuTTy) and navigate to the folder:

cd /opt/plcnext/edge/telegraf/usr/bin

Start the application with this command:

./telegraf --config /opt/plcnext/edge/telegraf/etc/telegraf/network_interface_monitoring.conf

Template_Install5

Since the Template also installed a new Dashboard, check if the data is received by opening your InfluxDB instance on your EPC and naviagte to "Boards" --> "Network Interface Performance".
In my example, since I am connected to the internet via WIFI, I can see the network traffic via my interface "wlp2s0" very easiliy in just some seconds after deploying the template!

Template_Install6

  1. (Optional) Autostart of telegraf configuration.
    If you want to autostart your telegraf configuration, you have to eiter create a new agent inside the current /etc/init.d/telegraf-init-sh or create a new start-scipt inside the /etc/init.d folder.
    Template_Install7
    Either way, the script needs to address the new telegraf .config file to autostart the function.
    Template_Install8