Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Trying to get Grafana to work with Opnsense
« previous
next »
Print
Pages: [
1
]
Author
Topic: Trying to get Grafana to work with Opnsense (Read 6777 times)
cguilford
Full Member
Posts: 130
Karma: 15
Trying to get Grafana to work with Opnsense
«
on:
July 22, 2019, 02:24:56 pm »
I'm running 19.7 and trying to get Grafana setup to work. I've setup Telegraf on my box, with InfluxDB setup. When I test the Datasource on Grafana it shows up as working, but when I add a Dashboard that is supposed to pull in influxdb from telegraf it doesn't load anything it just shows up blank.
Datasource. I'm new to this, and have never setup it up before so at a loss.. I did notice an IP from 35.226.211.0 that was being blocked by the firewall I've created a firewall rule to allow that IP, but still no luck? Any help would be appreciated.
Logged
aimdev
Full Member
Posts: 126
Karma: 5
Re: Trying to get Grafana to work with Opnsense
«
Reply #1 on:
July 30, 2019, 04:50:16 pm »
In case you haven't sorted this out
1. ensure opnsense can see the influxdb server (ping)
2. using chronograf (part of the influxdata suite) access the database, and see if there is a database called telegraf (this is the setting in the telegraf.conf file on the sending system, be aware of issues using telegraf, see my post dated 30 July 2019), or if you have changed it the database name will be in the list, on cronograf
3. if the database is visible using chronograf, then use it to show the data (it may be empty if you inputs are wrong, if so back to the sender, run
telegraf --test --debug --config /usr/local/etc/telegraf.conf
to test the config. All ok then
telegraf --debug --config /usr/local/etc/telegraf.conf
and you should see (be patient) lines of data submitted to influx.
If all ok (use chronograf) then in grafana you set up a connection to the influxdb, the db name is telegraf (unless you changed it), the connection name may be whatever, ie foo.
You need to enter the host name or ip of the system influx is running on.
Now the fun starts as you need to create a dashboard, add a graph and then set the name of the connection you just made (foo for example) and select the input item from the drop down list, add fields and hopefully you will see some graphs.
Try a simple input scenario first , for example memory usage.
It is really worth the effort as grafana is improving all the time and I use it constantly to monitor network, weather, power etc.
Just remember to keep a copy of telegraf.conf as a reboot appears to wipe out all your hard work
opnsense --> telegraf --> influxdb --> grafana
<. opnsense system. >< other system. >
Good Luck
ps
https://forum.opnsense.org/index.php?topic=13650.msg62882#msg62882
«
Last Edit: July 30, 2019, 04:52:00 pm by aimdev
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Trying to get Grafana to work with Opnsense