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.
-
Naviagte to "Settings" --> "Templates".
-
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. -
Paste the URL of the "Network-Interface-Performance" and "Lookup for Templates". Install all the resources found from Github via the button "Install Template".
-
Next, navigate to "Data" --> "Telegraf" and open the new created "Network Interface Monitoring" Telegraf-Configuration the Template installed.
-
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
-
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
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!
- (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.
Either way, the script needs to address the new telegraf .config file to autostart the function.