You can see the real error by looking at the console in your browser. It is probably a cross origin error (a security feature in all modern browsers). Direct in this case means directly from your browser to the Graphite database. By using proxy, your requests are rerouted via the Grafana backend which adds CORS headers to avoid the cross origin error.
Yes. Grafana and graphite are two totally separate applications. Grafana is for visualizing data, especially time series databases. Graphite is a time series databases. Grafana can also visualize data from InfluxDB, Prometheus, ElasticSearch and many more.
Now that the graphite has been setup and the agent is already feeding the data from hosts.
I still can’t get grafana to setup graphite datasource saying ‘Bad Gateway’
Problem right now is I can’t access graphite console through web-browser from different host and Grafana can’t setup the graphite data source due to bad gateway error.
For now I shutdown Firewalld and SElinux still I can’t access the console from another host’s browser.
I see the configuration file for Graphite in httpd folder I tried tweak it a few times still no progress but most of the topic on the internet said there’s something to be done right here in httpd.
The Graphite app is on 4040 . While adding it to the Grafan’s datasource http://myhost:4040 I got the same error trying to Save & Test : HTTP Error Bad Gateway .
I am writing the solution to fix this issue in case anyone else face similar thing. (the Access field has been removed from versions grafana > 6 )
We are using “Graphite” as DB to connect with Grafana. It worked until we use old version (grafana-7.5.11-2.el8.rpm) and post to the update, the databse connection not worked.
During graphite connection, I get the error “origin not allowed”. also Attached here.