i have been installed the grafana synthetic monitoring on my grafana local instance. i could able to see the synthetic monitoring plugin on my local grafana instance. when i am trying to configure the plugin it was keep on loading. i could not find any progress. could you please help me out.
Synthetic monitoring runs on your cloud instance, but you can set up the plugin on your local grafana to view it locally. It will still need to be configured to connect to your cloud instance to get the synthetic monitoring data.
Are you following the instructions here for configuring the connection with your cloud instance?
@melori.arellano Hi sorry for the delay. i had some health issue and not able to connect . i have enabled the debug log and i did’nt found any error to troubleshoot. i have created my both files under plugins directory. still no luck.
you need to provision the Synthetic Monitoring plugin and the Grafana Cloud datasources. While you can install the plugin in a local Grafana instance, you need a hosted Grafana stack where you can store the data. At the moment there’s no support for storing the data in self-hosted instances of Prometheus and Loki.
If that’s fine, then you need two files:
/etc/grafana/provisioning/plugins/sm.yaml (name is not important, location is, please check the local Grafana configuration for the correct location)
In your local instance of grafana under Configuration > Datasources > Add Datasource. Create datasource configurations for loki and prometheus to match the ones that exist in grafana cloud. Use your API Viewer key as the password for both.
Note: The user is the hostedId that you will need to configure the provisioning file. Keep this browser tab open to reference in step 3
Configure the synthetic-monitoring-app using a provisioning file in your conf/provisioning directory.
Create an API key with the MetricsPublisher permission
Verify that your plugin provisioning file looks like the one @mem shared and the example here.
hostedId is the user name that you saw in your loki and prometheus datasources in step 2. They are specific to your prometheus (metrics) and loki (logs) instances. apiHost URLs are region specific and listed here publisherToken is the API key with the MetricsPublisher permission grafanaName is the name of local logs and metrics datasources you created
If there is a configuration problem, then you might see more errors further down or in the browser developer tools. Are you able to see the synthetic monitoring icon
in your local grafana to indicate that the plugin is installed?
You should also see a line where grafana finds your provisioning file:
@melori.arellano hi i have not installed the plugin using grafana cli. i have download the zip file and extracted the on the /var/lib/grafana/plugins directory and on the logs i don’t have any error and plugin was successfully. but once i click on the UI it is keep on loading
@sureshpalanisamy I’m not sure why you’d see that error, are you able to load the page properly when you’re using synthetic monitoring in your grafana cloud instance? If there is an issue with it in your instance, you can open a support ticket with grafana cloud support.
This is the error i am seeing in logs-
logger=context traceID=00000000000000000000000000000000 userId=1 orgId=1 uname=admin t=2022-10-03T07:16:33.85523627Z level=info msg=“Request Completed” method=POST path=/api/plugin-proxy/grafana-synthetic-monitoring-app/init status=404 remote_addr=18.104.22.168 time_ms=3 duration=3.068941ms size=24 referer=Grafana traceID=00000000000000000000000000000000