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?
No i didn’t create an yaml file. i have just downloaded the plugin and extracted on my grafana local instance. do i need to create the provisioning file under plugin directory?
@sureshpalanisamy, I recommend enabling debug logging and restarting grafana. You will be able to see if there are any errors in the plugin configuration.
@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)
Configure your local instance of grafana to connect to your cloud prometheus and loki instances so you can view their data in your local instance of grafana.
Create an API key with Viewer permissions in the Grafana Cloud portal:
Log in to your grafana cloud instance and refer to the grafanacloud-XXXX-prom and grafanacloud-XXXX-logs datasources to get the URL and user name that you will use to configure the datasources locally
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
@melori.arellano Hi Hope you are doing good. I have done the steps. now i am getting page not found. when i am clicking on the synthetic monitoring app. Could you please help on this.
@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.
But in grafana dashboard when i am trying to configure the API key That was generated from grafana cloud using MetricsPublisher role, I am getting the below error. Please help me on this.
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=49.205.209.219 time_ms=3 duration=3.068941ms size=24 referer=https://grafana.fasal.co/a/grafana-synthetic-monitoring-app/unprovisioned traceID=00000000000000000000000000000000
i have a problem using the SyntheticMonitoring.
I Configured everything like @mem@melori.arellano Described.
( Thanks for that, good Tutorial )
Now iam stuck on local site.
I can see the SyntheticMonitoring that was installed via CLI but i can not press the Initialize the plugin Button, its greyed and not possible to Click.
I’m trying to install Synthetic Monitoring on local Grafana instance. I’m stuck at “Provisioning missing or invalid. Provisioning is required for Synthetic Monitoring.” Can’t figure out how to setup provisioning…