Azure Managed Grafana - embedding a graph on a webapp

mtijb 0 Reputation points
2024-10-16T05:36:05.26+00:00

I am trying to embed a Grafana graph (or dashboard) on a web app that I am currently developing using the share->Embed option on the graph panel.

If it was a Grafana on a standalone installation on a PC (not on Azure) this can be done by changing grafana.ini to allow embedding and to allow anonymous access. This ini file does not appear visible or accessible when the graph is on Azure Managed Grafana.

Is there a way to embed a graph on an web app?

Azure Managed Grafana
Azure Managed Grafana
An Azure service used to deploy Grafana dashboards for analytics and monitoring solutions.
112 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rahul Podila 510 Reputation points Microsoft Vendor
    2024-11-05T09:53:13.7566667+00:00

    Hi @mtijb
    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    To embed a Grafana graph or dashboard on a web app, you can use the Embed panel feature in Grafana. This feature generates an iframe code that you can copy and paste into your web app.

    To enable embedding in Azure Managed Grafana, you can follow these steps:

    Open the Azure portal and navigate to your Grafana instance.

    Click on the Configuration tab.

    Under General, set the Allow anonymous access option to Enabled.

    Under Security, set the Allow embedding option to Enabled.

    Click Save to save the changes.

    Once you have enabled embedding, you can generate the iframe code for your graph or dashboard by following these steps:

    Open the Grafana dashboard or graph that you want to embed.

    Click on the Share button in the top-right corner of the screen.

    Click on the Embed tab.

    Configure the options for your embedded graph or dashboard, such as the time range and the size of the iframe.

    Copy the generated iframe code.

    Paste the iframe code into your web app.
    If you have any further queries, do let us know.


    If the answer is helpful, please click "Accept Answer" and "Upvote it"


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.