All Products
Search
Document Center

Lindorm:Write Data to LindormTSDB with Telegraf

Last Updated:Feb 04, 2026

Telegraf is an open source data collection and monitoring agent that uses plug-ins to build services and collect metrics from third-party components. You can connect Telegraf to LindormTSDB and use the InfluxDB plug-in to report data. This topic describes how to use Telegraf to report data to LindormTSDB.

Prerequisites

Install Telegraf

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

Connect to LindormTSDB

Modify the OUTPUT PLUGINS section of the telegraf.conf configuration file.

Enable the outputs.influxdb plug-in by removing the comment symbol (#), and then configure the plug-in for LindormTSDB. For 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"

Parameter description

Parameter

Description

urls

The public HTTP Endpoint for LindormTSDB. For more information about how to obtain the endpoint, see View endpoints.

database

The database to connect to.

username

The username and password to connect to LindormTSDB.

Note

If authentication is not enabled for the Lindorm instance, you do not need to specify the username and password parameters. For more information about how to enable authentication, see Enable user authentication and permission verification.

password

For more information about other configuration items, see the Telegraf online documentation.

Data Reporting

Start the Telegraf service. The following command is an example for the Linux operating system:

sudo systemctl start telegraf

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

Monitor data

View the data write metrics in the Cloud Monitor console.

  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 navigation pane on the left, click Instance Monitoring.

  3. At the top of the Instance Monitoring page, click CloudMonitor.image

  4. On the Cloud Monitor page, view the metrics related to LindormTSDB.image