I’m testing monitoring with Prometheus and the SNMP Exporter, but I get an ‘Access Denied’ error when I try to add Prometheus as a data source as http://localhost:9090. Has anyone run into this before or know how to fix it?
Thanks for your reply!
My Prometheus instance is self-hosted and installed in the ‘documents’ directory.
I’m manually launching the prometheus.exe file from the command line each time, and trying to access it from Grafana. Do you have any suggestions or ideas?
For same config file it will run. i was run on different laptop. install grafana, downlode prometheus and change prometheus.yml file after save and test. it will run and display logs.
I just re-install the grafana and trying to connect with prometheus in datasource section but problem happened again… will attach here the current all config related to this integration.
Right now, I still haven’t been able to resolve this issue. Since it works with my local Grafana setup but not with Grafana Cloud, I suspect the problem lies somewhere between Prometheus and Grafana Cloud. Could anyone offer some advice?
Hello guys @infofcc3@dawiddebowski@yosiasz
Since the local setup of Grafana, Prometheus, and the SNMP Exporter is working fine, I’m starting to suspect the issue lies with Grafana Cloud and Prometheus. Do you have any suggestions or solutions for this?
If you have local instance of prometheus, you’ll have to somehow expose it to the internet, so Grafana Cloud can actually connect to it (if you for example run a REST API on your local computer on port 8080, you cannot access it from your phone on localhost:8080, right?). AFAIK Grafana Cloud comes with metrics storage, so you can send the data from your prometheus instance (probably something here would help). Just notice that there’s a pricing tier for the metrics you’ll send and store.
@dawiddebowski Hello Thanks for your info.
Now, the connection issue between Grafana Cloud and the local Prometheus has been resolved! the root cause was the presence of unnecessary angle brackets within the basic_auth: section of the prometheus.yml file, even though the remote_write URLand other settings were correctly specified. Below are examples of a bad and a good config.