All Products
Search
Document Center

Managed Service for Grafana:Integrate cloud services

更新時間:Aug 21, 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. If you want to integrate the data sources of other cloud services, you must manually add the data sources. For more information, see Add data sources.

    • Application Real-Time Monitoring Service (ARMS)

    • Prometheus instances for cloud services

    • Managed Service for Prometheus

    • Hybrid Cloud Monitoring

    • ARMS alert management

    • Simple Log Service

Integrate ARMS

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

    Note

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

  2. In the data source list on the right side 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, choose 设置图标 > Data sources.

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

Integrate Managed Service for Prometheus

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

  2. In the data source list on the right side 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 Monitor an Alibaba Cloud service.

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

  3. In the data source list on the right side 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 Service (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 data source list on the right side 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, choose 设置图标 > Data sources.

    On the Data sources tab of the Configuration page, you can view all the 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 ARMS Alert Management.

  2. In the data source list on the right side 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. 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 the "FAQ" section of Service-linked role for ARMS.

  1. In the left-side pane of the Cloud Service Integration section, click Simple Log Service.

  2. In the data source list on the right side 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.