Configuring Prometheus is done by editing the Prometheus configuration file prometheus.yml (default location `/etc/prometheus/prometheus.yml`). ### Configuring third-party database addresses Point the `remote_read url` and `remote_write url` to the domain name or IP address of the server running the taosAdapter service, the REST service port (taosAdapter uses 6041 by default), and the name of the database you want to write to TDengine, and ensure that the corresponding URL form as follows. - remote_read url : `http://:/prometheus/v1/remote_read/` - remote_write url : `http://:/prometheus/v1/remote_write/` ### Configure Basic authentication - username: - password: ### Example configuration of remote_write and remote_read related sections in prometheus.yml file ```yaml remote_write: - url: "http://localhost:6041/prometheus/v1/remote_write/prometheus_data" basic_auth: username: root password: taosdata remote_read: - url: "http://localhost:6041/prometheus/v1/remote_read/prometheus_data" basic_auth: username: root password: taosdata remote_timeout: 10s read_recent: true ```