文件操作 - README.md
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/src/netdata/exporting/opentsdb/README.md
编辑文件内容
<!-- title: "Export metrics to OpenTSDB with HTTP" description: "Archive your Agent's metrics to a OpenTSDB database for long-term storage and further analysis." custom_edit_url: https://github.com/netdata/netdata/edit/master/exporting/opentsdb/README.md sidebar_label: OpenTSDB with HTTP --> # Export metrics to OpenTSDB with HTTP Netdata can easily communicate with OpenTSDB using HTTP API. To enable this channel, run `./edit-config exporting.conf` in the Netdata configuration directory and set the following options: ```conf [opentsdb:http:my_instance] enabled = yes destination = localhost:4242 ``` In this example, OpenTSDB is running with its default port, which is `4242`. If you run OpenTSDB on a different port, change the `destination = localhost:4242` line accordingly. ## HTTPS As of [v1.16.0](https://github.com/netdata/netdata/releases/tag/v1.16.0), Netdata can send metrics to OpenTSDB using TLS/SSL. Unfortunately, OpenTDSB does not support encrypted connections, so you will have to configure a reverse proxy to enable HTTPS communication between Netdata and OpenTSBD. You can set up a reverse proxy with [Nginx](/docs/Running-behind-nginx.md). After your proxy is configured, make the following changes to `exporting.conf`: ```conf [opentsdb:https:my_instance] enabled = yes destination = localhost:8082 ``` In this example, we used the port `8082` for our reverse proxy. If your reverse proxy listens on a different port, change the `destination = localhost:8082` line accordingly. [](<>)
修改文件时间
将文件时间修改为当前时间的前一年
删除文件