Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure Managed Grafana offers an Azure SRE Agent integration in preview that connects an Azure SRE Agent to your Grafana workspace. After you enable the integration, users can open the SRE agent directly from a Grafana dashboard and ask it to investigate issues and create dashboards without switching between Grafana and the SRE Agent portal.
The Azure SRE Agent integration enables you to:
- Pair an existing SRE agent with your Azure Managed Grafana workspace
- Open the SRE agent from your Grafana dashboards
- Analyze existing dashboards and create new dashboards with the SRE agent
- Investigate anomalies, diagnose issues, and run root cause analysis while you view your dashboards
- Combine your Grafana observability data with the agent's connectors, knowledge, and memory
This article walks you through enabling the Azure SRE Agent integration, granting users access to the agent, and using the agent from Grafana dashboards.
Prerequisites
An Azure account with an active subscription. Create an account for free.
An Azure Managed Grafana workspace in the Standard tier. Create a new workspace if you don't have one.
An Azure SRE Agent. Create and set up an agent if you don't have one.
The SRE agent must be connected to your Azure Managed Grafana workspace through one of the following connectors:
- An Azure Managed Grafana connector. For more information, see Connectors in Azure SRE Agent.
- An MCP connector that points to the workspace's remote MCP server endpoint,
https://<grafana-endpoint>/api/azure-mcp. For more information, see MCP connectors and tools in Azure SRE Agent.
Users who want to use the SRE agent from Grafana must have the SRE Agent Standard User role on the target SRE agent. For more information, see Grant users access to the SRE agent.
Select an SRE agent to enable the Azure SRE Agent integration (preview)
Complete the following steps to connect your Grafana workspace to an SRE agent and enable the Azure SRE Agent integration (preview):
Open your Azure Managed Grafana workspace and in the left menu select Integrations > Azure SRE Agent (Preview).
In the dropdown menu, select an SRE agent. The portal checks whether the selected agent has an Azure Managed Grafana connector or an MCP connector that targets this Grafana workspace. If it does, the message SRE Agent has connected to Grafana is displayed. If it doesn't, configure one of the connectors described in Prerequisites on the SRE agent, and then select the agent again.
Select Save. After enablement completes, the selected SRE agent appears in the dropdown menu.
To switch to a different SRE agent in the future, repeat steps 2 and 3.
Important
Enabling the integration doesn't create any connectors or role assignments on the SRE agent. Configure them manually on the SRE agent side: connect the agent to your Grafana workspace as described in Prerequisites, and assign roles to users as described in Grant users access to the SRE agent.
Grant users access to the SRE agent
To use the SRE agent from Grafana, each user needs the SRE Agent Standard User role on the target SRE agent. This role lets users chat with the agent and run diagnostics. For a full comparison of roles, see User roles and permissions in Azure SRE Agent.
Users also need a Grafana role on the Azure Managed Grafana workspace to view dashboards. For more information, see Manage access and permissions for users and identities.
- In the Azure portal, open your SRE agent resource.
- Select Access control (IAM) > Add > Add role assignment.
- Select the SRE Agent Standard User role, and then select Next.
- Select User, group, or service principal > Select members, and then select the users or groups that need access.
- Select Review + assign.
Tip
Assign the role to a Microsoft Entra group instead of individual users to simplify access management. Role assignments can take a few minutes to propagate.
Use Azure SRE Agent from a Grafana dashboard
After you enable the integration, you can open the SRE agent from your Grafana dashboards:
In the Grafana UI, open a dashboard.
In the dashboard toolbar, select the Azure SRE Agent icon. The Azure SRE Agent pane opens next to the dashboard.
Enter a message, or select one of the suggested prompts. For example:
Summarize this dashboard and highlight anything unusualWhich panels show spikes or anomalies in the current time range?Recommend ways to optimize my system based on this dashboard
To return to a previous conversation, go to My chats in the pane and select See all.
The SRE agent uses the dashboard you're viewing as context. It can also use its other connectors, including the connector to your Grafana workspace, to query data and investigate issues. For more information about running investigations, see Run your first investigation.
Tip
If you don't see the Azure SRE Agent icon on your dashboard, check that the integration is enabled on your Azure Managed Grafana workspace. If the agent returns an authorization error, check that you have the SRE Agent Standard User role on the SRE agent.
Disable the Azure SRE Agent integration (preview)
If you no longer need the Azure SRE Agent integration (preview), you can disable it from your Azure Managed Grafana workspace:
In your Azure Managed Grafana workspace, select Integrations > Azure SRE Agent (Preview) from the left menu.
Select Disable > Yes to confirm.
Optionally remove the role assignments that you added on the SRE agent:
- In the SRE agent resource, select Access control (IAM) > Role assignments.
- Under SRE Agent Standard User, select the users or groups that no longer need access. Select Delete > OK.
Optionally remove the Azure Managed Grafana connector or MCP connector from the SRE agent. In the SRE Agent portal, select your agent, go to Builder > Connectors, and delete the connector to your Azure Managed Grafana workspace.
Note
Disabling the Azure SRE Agent integration only removes the integration from your Grafana workspace. It doesn't affect your SRE agent, including its connectors, role assignments, and data.