All Products
Search
Document Center

Time Series Database:Cloud instance monitoring

Last Updated:Nov 17, 2021

This topic describes how to use the cloud instance monitoring service provided by Time Series Database (TSDB) for InfluxDB®.

Background Information

The cloud instance monitoring service allows you to monitor your Alibaba Cloud instances, such as ApsaraDB RDS for MySQL instances, ApsaraDB for Redis (Redis) instances, and ApsaraDB for MongoDB (MongoDB) instances. You can monitor the ApsaraDB RDS for MySQL instances, Redis instances, and MongoDB instances that are deployed in the same virtual private cloud (VPC) as your TSDB for InfluxDB® instance.

Prerequisites

  • The version of your TSDB for InfluxDB® instance is V1.7.11 or later. If your instance version is earlier than V1.7.11, submit a ticket to update your instance.

  • The feature that allows bidirectional access within a VPC is enabled. For more information, see Bidirectional access within a VPC.

  • The IP addresses in the whitelist for bidirectional access within a VPC are added to the whitelist of the cloud instance that you want to monitor. For more information, see Configure a network whitelist.

  • A public endpoint is configured for your TSDB for InfluxDB® instance so that the instance can be accessed over the Internet, as shown in the following figure.Image 002

  • A public endpoint is configured for Grafana to access the TSDB for InfluxDB® instance over the Internet. In addition, a Grafana account is created.

Procedure

  1. Log on to the TSDB console.

  2. On the Instances page, find the TSDB for InfluxDB® instance that you want to manage and click Manage in the Actions column.

  3. In the left-side navigation pane, click Instance Monitoring.

  4. Add an instance to monitor.

    1. Click Add Instance and configure the following parameters.

      Parameter

      Description

      Select an engine

      The type of the engine.

      Valid values: MySQL, Redis, and MongoDB.

      Instance ID

      The ID of the instance.

      Authorized Account and Authorized Password

      The username and password of the account that is used to connect to the instance. For example, if your engine is MySQL, enter the username and password of a MySQL account.

    2. Click Verification Information & Authorization. The system checks whether the specified username and password can be used to connect to the instance.

    3. Select an InfluxDB database for data storage.

      Parameter

      Description

      Storage Database

      The name of the InfluxDB database.

      Username and Password

      The username and password of the account that is used to connect to the InfluxDB database.

    4. Click Verify. The system automatically verifies the specified username and password.

      Note

      If the username exists, the system checks whether the corresponding account has the read and write permissions on the specified InfluxDB database. If the specified user does not exist, the system automatically creates the user.

    5. The system adds the instance to the list of monitored instances.

      Note

      If this step fails, a message that prompts you to retry appears. If this step fails after several retries, submit a ticket.

  5. Click Modify to modify the basic information about the monitored instance.

  6. Click View Monitoring Details. Then, you are redirected to a page in the Grafana platform where you can view the monitoring details.

    Note

    The first time you use Grafana, you must enter the username and password to log on to Grafana. The username and password of Grafana must be created on the Grafana Visualization page in the TSDB console.