synthetic-monitoring-app
synthetic-monitoring-app copied to clipboard
Self-Hosted Grafana with Reverse Proxy And Synthetics Plugin
What happened: Tried to connect synthetics monitoring with my self-hosted Grafana using the documentation; https://github.com/grafana/synthetic-monitoring-app?tab=readme-ov-file#configuration
But I get the following error:
In the logs I get:
grafana-prod_grafana.2.q6un6o0hafbf@ip-172-31-21-81 | logger=infra.usagestats t=2024-05-23T05:41:40.667491796Z level=info msg="Usage stats are ready to report"
grafana-prod_grafana.2.q6un6o0hafbf@ip-172-31-21-81 | logger=data-proxy-log userId=1 orgId=1 uname=admin path=/api/plugin-proxy/grafana-synthetic-monitoring-app/install remote_addr=10.0.0.2 referer=https://54.226.216.175/grafana/a/grafana-synthetic-monitoring-app/home t=2024-05-23T05:44:41.220948513Z level=error msg="Proxy request failed" err="unsupported protocol scheme \"synthetic-monitoring-api-us-east-0.grafana.net\""
grafana-prod_grafana.2.q6un6o0hafbf@ip-172-31-21-81 | logger=context userId=1 orgId=1 uname=admin t=2024-05-23T05:44:41.221175488Z level=error msg="Request Completed" method=POST path=/api/plugin-proxy/grafana-synthetic-monitoring-app/install status=502 remote_addr=10.0.0.2 time_ms=79 duration=79.453777ms size=0 referer=https://54.226.216.175/grafana/a/grafana-synthetic-monitoring-app/home handler=/api/plugin-proxy/:pluginId/* status_source=downstream
What you expected to happen: The plugin to be installed as below:
How to reproduce it (as minimally and precisely as possible): Access Grafana through a reverse proxy like Traefik, NGINX etc... and you should get the error.
Anything else we need to know?: Managed to make it work with a Reverse Proxy with a workaround
- Access Grafana without reverse proxy
- Click on Get Started
- Access Grafana with Reverse Proxy and it works normally
Issue was also reported by someone on Grafana Community: https://community.grafana.com/t/error-cannot-connect-grafana-cloud-with-local-grafana-instance/116366
Environment:
- Grafana version (if running on prem): 10.4.3
- SM plugin version: 1.14.4
- OS Grafana is installed on: Official Docker Image
- User OS & Browser: Windows 11 Pro & MS Edge
- Others: