I have installed ntopng datasource in grafana and after giving the ntop url in Http settings and then I clicked Save & Test but I am getting unknown error.
Note:- The Grafana is running with HTTPS protocol and the ntop is running with HTTP.
I have also tried in the demo machine where grafana is running with HTTP and I did the same configuration and tested that the datasource was updated and its working fine.
Please kindly share any thoughts and it would be very helpful.
Most likely by looking at the console or network tab in the Chrome Dev Tools but if there is nothing there you can check the Grafana server logs as well.
@daniellee
Below is the response I got in the console tab.
Mixed Content: The page at 'https://xxxxx.com:3001/datasources/edit/162' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://172.21.86.30:3000/lua/modules/grafana/'. This request has been blocked; the content must be served over HTTPS.
Please kindly check and let me know your thoughts.
This is maybe a question for the ntop guys and why you have to use direct mode for their plugin. This type of issue is why proxy mode exists in Grafana.
This is the second time I have tried to get ntopng working (tried over 6 months ago)
Downloading the plugin from the grafana site results in
grafana-cli plugins install ntop-ntopng-datasource
Error: ✗ Corrupt http response from source. Please try again.
Downloading the zip file in accordance with the instructions on the grafana website, and attempting to create datasource results in
Gate way error
or
Red square with no information
when trying all the options in this thread.
In addition there appears to be no direct option available in grafana 5.2.2, just Server or Browser.
If anybody has got this working, please can they post the procedure here.
There is either a documentation error on the grafana page, http://localhost:3001/lua/modules/grafana, or something is not correct in the ntopng out of the box installation,
There is no server on Port 3001, there is on Port 3000 (netstat is your friend)
I now have an http access to ntopng, on my http based grafana, and I am seeing metrics.
Hi
As an alternative, ntopng can feed metrics to influxdb, and grafana can read from infuxdb, which is the way I do it generally, so this may be a better option.
Also looking at the metrics, there seems to be a lot more available, or they have been marshalled in a different way to the ntopng data source.