Grafana-influx plugin/ TrueNas 12

Jayrel

Dabbler
Joined
Aug 5, 2020
Messages
12
I've been looking for some type of documentation on internal setup of the Grafana/Influxdb in order to access the influxdb config file. Inside the config file I can enable the graphite plugin to have TrueNas reporting feed stats to influx. Does anyone know the command line inside the plugin shell to access the config?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
The conf for grafana and influx are in /usr/local/etc

You can use ee to edit them, so ee /usr/local/etc/influxd.conf or ee /usr/local/etc/grafana.conf
 
Joined
Jul 21, 2020
Messages
5
Thanks, but what to change there? How do I add InfluxDB as a data source or what do I need to setup before the plugin truly works? I tried localhost:8088 with the user/pass in the "post install notes" but it wont connect "Network Error: Bad Gateway(502)"
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
ocalhost:8088
Where did you try that from? usually I would expect you to do that from a web browser, so not on in the plugin jail, which would mean that localhost isn't the right address.
 
Joined
Jul 21, 2020
Messages
5
1604497265224.png

Yes in the Grafana web UI. The TrueNAS plugin comes with both Grafana and InfluxDB, but they are not connected by default. (There are no datasets set in Grafana). I assumed since InfluxDB and Grafana were on the same iocage (plugin), localhost would be the right choice
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
OK, now I'm with you.

Have a look here:

A few steps above the screenshots, it refers to creating a database... you must do that or you can't connect.
 
Joined
Jul 21, 2020
Messages
5
Thank you but I hoped for a more plug and play / one click installation from this plugin.
1604500447124.png

But I guess there is no way around manually setting it up. But Thank you anyway
 

Jayrel

Dabbler
Joined
Aug 5, 2020
Messages
12
Thank you but I hoped for a more plug and play / one click installation from this plugin. View attachment 42503
But I guess there is no way around manually setting it up. But Thank you anyway
Yes Lightningblade it was a bit of a setup. Just looking for them to update the Grafana Version or how to update to Grafana 7 within the plugin.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Just looking for them to update the Grafana Version or how to update to Grafana 7 within the plugin
iocage console grafana
pkg upgrade
pkg install grafana7 (need to say yes a few times, you should see it will replace v6 with v7 and will re-use the same grafana user)
exit
iocage restart grafana
 

Jayrel

Dabbler
Joined
Aug 5, 2020
Messages
12
iocage console grafana
pkg upgrade
pkg install grafana7 (need to say yes a few times, you should see it will replace v6 with v7 and will re-use the same grafana user)
exit
iocage restart grafana
Thank you so very much.
 
Top