All Products
Search
Document Center

Application Real-Time Monitoring Service:Add and use an Elasticsearch data source by using a public IP address

Last Updated:Mar 11, 2026

Managed Service for Grafana integrates with Alibaba Cloud Elasticsearch through the built-in Elasticsearch plug-in. Use the public endpoint of an Elasticsearch cluster to synchronize data to Grafana and build real-time dashboards.

Prerequisites

Before you begin, make sure that you have:

Step 1: Add the Grafana workspace IP address to the Elasticsearch whitelist

Before Grafana can reach your Elasticsearch cluster, add the Grafana workspace IP address to the cluster's public IP address whitelist.

  1. Log on to the Alibaba Cloud Elasticsearch console.

  2. In the left-side navigation pane, choose Elastic Stack Cloud Native PaaS > Elasticsearch Clusters.

  3. In the top navigation bar, select the resource group and region for your cluster, then click the cluster ID to open its details page.

  4. In the left-side navigation pane, choose Configuration and Management > Security.

  5. In the Network Settings section, click Modify next to Public IP Address Whitelist.

    Note

    Public Network Address must be turned on before you modify the whitelist. By default, this switch is turned off.

  6. In the Modify Public IP Address Whitelist panel, click Configure next to the default whitelist.

  7. In the Modify IP Address Whitelist dialog box, enter the Grafana workspace IP address in the IP Addresses in Whitelist field.

  8. Click OK.

Step 2: Log on to Grafana

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

  2. On the Workspace Management page, find your workspace and click the link in the URL column to open Grafana.

    Note

    Log on with the Grafana administrator account and the password set during workspace creation, or click Sign in with Alibaba Cloud to use your current Alibaba Cloud account.

Step 3: Add the Elasticsearch data source

Navigate to the data source settings

The data source configuration is the same for Grafana 9.0.x and 10.0.x. Only the navigation path differs.

Grafana 9.0.x

  1. In the left-side navigation pane, choose the gear icon > Data sources.

  2. Click Add data source.

  3. Search for and click Elasticsearch.

Grafana 10.0.x

  1. Click the hamburger menu icon on the Grafana homepage.

  2. In the left-side navigation pane, choose Management > Data sources.

  3. On the Data sources tab, click + Add new data source.

  4. Search for and click Elasticsearch.

Configure the data source

On the Settings tab, configure the following parameters:

SectionParameterDescriptionExample
NameA custom name for this data source.Elasticsearch data source
HTTPURLThe public endpoint of the Elasticsearch cluster. Format: http://<Elasticsearch-endpoint>:9200. To use HTTPS, first enable HTTPS in the Elasticsearch console. For details on how to find the endpoint, see View the basic information of a cluster.http://es-cn-xxxxxxxxx.public.elasticsearch.aliyuncs.com:9200
AuthBasic authTurn on this toggle, then configure User and Password below.N/A
Basic Auth DetailsUserThe username for the Elasticsearch cluster.elastic
PasswordThe password for the Elasticsearch cluster. If you forgot the password, reset it in the Elasticsearch console: go to cluster details > Configuration and Management > Security > Access Settings > Reset Password.N/A
Elasticsearch detailsIndex nameThe index to query. If no custom index exists, use the Elasticsearch self-monitoring index to verify connectivity. The self-monitoring index follows the format .monitoring-es-7-<date> (for example, .monitoring-es-7-2022.01.11). Replace the date with a date within the previous two days that is later than the cluster creation date. For more information, see the Grafana Elasticsearch documentation..monitoring-es-7-2022.01.11
Time field nameThe timestamp field in the index. For the self-monitoring index, set this to timestamp.timestamp
ElasticSearch version (Grafana 9.0.x only)The version of the Elasticsearch cluster, available on the Basic Information page in the Elasticsearch console.7.10+

Save and verify

Click Save & test.

  • Grafana 9.0.x: The message Index OK. Time field name OK confirms a successful connection.

  • Grafana 10.0.x: The message Data source is working confirms a successful connection.

Step 4: Create a dashboard panel

Navigate to the dashboard editor

Grafana 9.0.x

  1. In the left-side navigation pane, choose the dashboard icon > New dashboard.

  2. Click Add a new panel.

Grafana 10.0.x

  1. Click the hamburger menu icon on the Grafana homepage.

  2. In the left-side navigation pane, click Dashboards. Select New dashboard from the New drop-down list.

  3. Click + Add visualization.

Configure and save the panel

  1. Select the Elasticsearch data source you added in Step 3:

    • Grafana 9.0.x: On the Query tab of the Edit Panel page, select the data source from the Data source drop-down list.

    • Grafana 10.0.x: In the Select data source dialog box, select the data source.

  2. Configure the visualization. For example, to view a log list with log details, set Metric to Logs and select Logs from the Visualizations drop-down list in the upper-right corner.

  3. Click Apply.

  4. Click the save icon in the upper-right corner, specify a name and directory for the dashboard, then click Save.

Step 5: View monitoring data

Grafana 9.0.x

  1. In the left-side navigation pane, choose the dashboard icon > Browse.

  2. Find the directory and click the dashboard to view the charts.

Grafana 10.0.x

  1. Click the hamburger menu icon in the upper-left corner.

  2. In the left-side panel, click Dashboards. Find the directory and click the dashboard to view the charts.

See also