New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Grafana panel help needed
Hi
I have been using grafana to keep eye on load averages and disk usage without learning promql. But now I need a way to collect total bandwidth usage by month and days.
What would be the best way to do it ?
Can we achieve alone with default "node exporter" ?
I also see that we can use telegraf exec and export vnstat data
[[inputs.exec]]
commands = [
"/usr/bin/vnstat -i eth0 -tr --short --json",
"/usr/bin/vnstat -i tun0 -tr --short --json"
]
timeout = "10s"
name_suffix = "_vnstat"
data_format = "json"
json_name_key="vnstat"
tag_keys= ["interface"]
Or can use telegraf [net data plugin] (https://github.com/influxdata/telegraf/blob/master/plugins/inputs/net/README.md)
[[inputs.net]]
interfaces = ["eth*", "enp0s[0-1]", "lo"]
##
In the end of the day, want to keep metrics collected to minimum as just total bandwidth used days wise and atleast for last 3 months.
Any help would be appreciated.
Comments
I hope I am not asking something which is very complicated ?
You are indeed asking something that is more in the category of devops , software development or data science. I'm a developer myself but haven't played with grafana.
Searched around and I think I found your post in grafana. Try asking chatgpt .
Fair enough, still playing with it, I am close though.