All Products
Search
Document Center

Managed Service for Grafana:Integrate cloud services

Last Updated:Feb 27, 2024

Managed Service for Grafana allows you to integrate the data sources and dashboards of your Alibaba Cloud services and displays them in charts on Grafana dashboards. This way, you can monitor the metrics of cloud resources, understand the consumption of resources and the performance of your system, and enhance the monitoring in a more efficient manner.

View integrated cloud services

  1. Log on to the Managed Service for Grafana console. In the left-side navigation pane, click Workspace Management.

  2. On the Workspace Management page, click the ID of the workspace that you want to manage.

  3. In the Cloud Service Integration section of the Workspace Information page, the cloud services that can be integrated with a few clicks are displayed.

    Managed Service for Grafana allows you to integrate the data sources and dashboards of the following cloud services with a few clicks. You must manually add the data sources of other cloud services. For more information, see Add data sources.

    • Application Real-Time Monitoring Service (ARMS)

    • Managed Service for Prometheus

    • Prometheus instances for cloud services

    • Hybrid Cloud Monitoring

    • ARMS alert management

    • Simple Log Service

Integrate ARMS

  1. In the left-side pane of the Cloud Service Integration section, click Application Monitoring Service.

    Note

    If Application Monitoring Service is not displayed, join the DingTalk group of Managed Service for Grafana (ID 34785590) for technical support to upgrade the edition of Managed Service for Grafana.

  2. In the right-side pane of the section, find the data source that you want to integrate and click Integrations in the Actions column. In the message that appears, click OK.

  3. Find the data source that you integrate and click Folder in the Actions column.

    On the Dashboards page of Grafana, you can view the folder in which the dashboards of the data source are stored.

  4. Optional. In the left-side navigation pane of Grafana, move the pointer over the 设置图标 icon and select Data sources.

    On the Data sources tab of the Configuration page, you can view all data sources that are integrated.

Integrate Managed Service for Prometheus

  1. In the left-side pane of the Cloud Service Integration section, click Prometheus Monitoring Service.

  2. In the right-side pane of the section, find the data source that you want to integrate and click Integrations in the Actions column. In the message that appears, click OK.

  3. Find the data source that you integrate and click Folder in the Actions column.

    On the Dashboards page of Grafana, you can view the folder in which the dashboards of the data source are stored.

    Note

    The preset dashboards vary based on the type of the Prometheus instance.

Integrate a Prometheus instance for cloud services

  1. Connect one or more Alibaba Cloud services to Managed Service for Prometheus by using a Prometheus instance. For more information, see Create a Prometheus instance to monitor Alibaba Cloud services.

  2. In the left-side pane of the Cloud Service Integration section, click Prometheus for Cloud Services(old).

  3. In the right-side pane of the section, find the data source that you want to integrate and click Integrations in the Actions column. In the message that appears, click OK.

    Note

    In the Prometheus for Cloud Services(old) section, you can click Configure Cloud Service Monitoring in the right-upper corner to connect more cloud services to Managed Service for Prometheus.

  4. Find the data source that you integrate and click Folder in the Actions column.

    On the Dashboards page of Grafana, you can view the folder in which the dashboards of the data source are stored.

Integrate Hybrid Cloud Monitoring

  1. In the left-side pane of the Cloud Service Integration section, click Hybrid Cloud Monitoring.

  2. In the right-side pane of the section, find the data source that you want to integrate and click Integrations in the Actions column. In the Integrate Data Source dialog box, configure the AccessKey ID and AccessKey Secret parameters and click OK.

    In the Hybrid Cloud Monitoring section, you can click Configure Hybrid Cloud Monitoring in the right-upper corner to add more cloud services that you want to monitor by using CloudMonitor.

  3. Find the data source that you integrate and click Folder in the Actions column.

    On the Dashboards page of Grafana, you can view the folder in which the dashboards of the data source are stored.

  4. Optional. In the left-side navigation pane of Grafana, move the pointer over the 设置图标 icon and select Data sources.

    On the Data sources tab of the Configuration page, you can view all data sources that are integrated.

    Note

    Managed Service for Grafana generates default dashboards based on the data that is accessed in the corresponding namespace. Managed Service for Grafana does not automatically add the metrics of cloud services. If the metrics that you want to view are not displayed on the dashboards, you can click Configure Hybrid Cloud Monitoring in the Hybrid Cloud Monitoring section to add the metrics that you want to view.Managed Service for Grafana

Integrate ARMS alert management

  1. In the left-side pane of the Cloud Service Integration section, click Alert Management.

  2. In the right-side pane of the section, find the data source that you want to integrate and click Integrations in the Actions column. In the message that appears, click OK.

  3. Find the data source that you integrate and click Folder in the Actions column.

    On the Dashboards page of Grafana, you can view the folder in which the dashboards of the data source are stored.

Integrate Simple Log Service

Managed Service for Grafana assumes the AliyunServiceRoleForARMS service-linked role to access Simple Log Service. For more information, see Simple Log Service documentation. If the AliyunServiceRoleForARMS role is not created within your Alibaba Cloud account, the authorization page appears. Complete authorization as prompted. For more information about how to create the AliyunServiceRoleForARMS role for a Resource Access Management (RAM) user, see Service-linked role for ARMS.

  1. In the left-side pane of the Cloud Service Integration section, click log service.

  2. In the right-side pane of the section, click Create Log Service Data Source. In the Create Log Service Data Source panel, configure the Region, Project, and logstore parameters. Then, click OK.

    Note

    If the AliyunARMSFullAccess system policy is not attached to your Alibaba Cloud account, attach the system policy as prompted.

  3. Optional. Find that data source that you integrate and click Folder in the Actions column. On the Dashboards page of Grafana, you can view the folder in which the dashboards of the data source are stored.

    Important

    The folder and dashboards are generated only for the Logstores of Kubernetes events. If no folder is available on the Dashboards page of Grafana, the Logstore that you specify does not have dashboards.

  4. Find the data source that you integrate and click Explorer in the Actions column. In the Grafana console, view the data of Simple Log Service.