2016-07-14 02:12 PM
Are there any plans for utilizing graphite, graphana or similar TSDB for monitoring?
Grafana - Beautiful Metrics, Analytics, dashboards and monitoring!
2016-07-18 04:21 AM - edited 2021-04-16 05:50 AM
Hello Thomas,
using RRD tools is currently not supported as a native implementation.
That being said, however you can work around this, below is a solution that I implemented to one of the customers and it is working.
Basically, work around is to generate csv files, that has samples of the decoder EPS (or whatever else value you need to plot), these values are grabbed from the REST API for each service. this script also zips these csv files at the end of each month, then creates a new one (similar to the logrotate). the rate of which the sample is taken can also be modified according to the script (modify the sleep value in the script, now is sleep 1).
After preparing the csv file, you can use netcat (rpm is not installed by default on the SA devices), and push these sessions to the grafana listener.
A real-life example screenshot of the EPS for 2 decoders plotted side by side is as below, refresh rate is 1 second to match the sampling rate of the feed coming from the script.
Also a demo video of working grafana is as below:
the script used for such task is attached as well.
You can place this script, after modification in the /etc/rc.local to run after each reboot automatically. "you can provision this by puppet as well."
Another use for the csv files created, is that you can also forward them to Cacti "another RRD tool". However, Cacti uses scp to collect the csv files, and it is considered near-realtime implementation using this technique, it relies on other methods to provide realtime plots, but you still have the option nevertheless.
Thanks,
Akram
2016-07-18 04:15 PM
Akram,
Thank you for sharing and thank you for taking the time to demonstrate. Not quite what I was looking for the use with a csv but It is very creative none-the-less. All I can say is, we've got talent .
Thanks
Tom J
2016-07-19 05:23 AM
Hello,
Thanks for your reply.
Let me know if there is anything in mind that you were looking for. maybe we can tweak things.
Akram