All Products
Search
Document Center

Lindorm:Use Telegraf to write data to LindormTSDB

Last Updated:Jun 21, 2026

Telegraf is an open-source agent for collecting and monitoring data. It uses plugins to gather various metrics from third-party components. You can use Telegraf to connect to LindormTSDB and report data by using its InfluxDB-compatible components. This topic describes how to use Telegraf to write data to LindormTSDB.

Prerequisites

Install Telegraf

Select an installation method that is appropriate for your operating system. For more information, see the Telegraf documentation.

Connect to LindormTSDB

Modify the OUTPUT PLUGINS section in the Telegraf configuration file telegraf.conf.

Uncomment the outputs.influxdb plugin and modify its configuration to connect to LindormTSDB. The following code provides an example:

[[outputs.influxdb]]
......
#   ## Multiple URLs can be specified for a single cluster, only ONE of the
#   ## urls will be written to each interval.
urls = ["http://ld-bp1jyu376daqi****-proxy-tsdb-pub.lindorm.aliyuncs.com:8242"]
......
database = "default"
...... 
## HTTP Basic Auth
username = "test"
password = "test"

Parameters

Parameter

Description

urls

The HTTP Endpoint for LindormTSDB (Public). To obtain it, see View endpoint.

database

The destination database.

username

The username and password for connecting to LindormTSDB.

Note

If user authentication and authorization is disabled for your Lindorm instance, you do not need to specify the username and password parameters. For more information about how to enable this feature, see Enable user authentication and authorization.

password

For information about other configurable parameters, see the Telegraf documentation.

Report data

Start the Telegraf service. For example, on Linux:

sudo systemctl start telegraf

After Telegraf starts, it automatically reports data using the InfluxDB line protocol. For more information about how to write data by using the line protocol, see Write data by using the line protocol.

Monitor data

You can use CloudMonitor to monitor data writes.

  1. Log on to the Lindorm console. In the upper-left corner of the page, select the region of the instance. On the Instances page, click the ID of the target instance or click View Instance Details in the Actions column for the instance.

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

  3. At the top of the Instance Monitoring page, click CloudMonitor. You can also click the CloudMonitor link in the banner at the top of the page.

  4. On the CloudMonitor page, click the LindormTSDB Metrics tab to view monitoring metrics, including JVM memory usage, storage usage, time series hot storage usage, time series cold storage usage, and data point increment. You can select a time range, such as 1 hour, 3 hours, or 6 hours, at the top of the page. In the upper-right corner, you can click View Alarm Rules or Create Alarm Rule.