Skip to content

Commit

Permalink
feat(doc): some reformats
Browse files Browse the repository at this point in the history
  • Loading branch information
zipper-meng committed Aug 1, 2024
1 parent 81d1e62 commit f2e28ca
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ to:
For binary builds, Docker images, RPM & DEB packages, and other builds of
Telegraf, please see the [install guide](/docs/INSTALL_GUIDE.md).
**OpenTSDB**
- **OpenTSDB**

See the [releases documentation](/docs/RELEASES.md) for details on versioning
and when releases are made.
通过使用 Input 插件 http_listener_v2 并配置 `data_format``"opentsdb"`,将能够解析 OpenTSDB 格式的写入请求。
通过使用 Input 插件 http_listener_v2 并配置 `data_format``"opentsdb"`,将能够解析 OpenTSDB 格式的写入请求。

## 💻 Usage

Expand Down Expand Up @@ -89,6 +91,13 @@ paths = ["/api/put"]
methods = ["POST", "PUT"]
data_format = "opentsdb"
```
```toml
[[inputs.http_listener_v2]]
service_address = ":8080"
paths = ["/api/put"]
methods = ["POST", "PUT"]
data_format = "opentsdb"
```

We love our community of over 1,200 contributors! Many of the plugins included
in Telegraf were originally contributed by community members. Check out
Expand All @@ -97,18 +106,20 @@ Also, join us on our [Community Slack](https://influxdata.com/slack) or
[Community Forums](https://community.influxdata.com/) if you have questions or
comments for our engineering teams.
**OpenTSDB-Telnet**
- **OpenTSDB-Telnet**

If you are completely new to Telegraf and InfluxDB, you can also enroll for free at
[InfluxDB university](https://www.influxdata.com/university/) to take courses to
learn more.
通过使用 Input 插件 socket_listener,并配置 `data_format` 为 opentsdbtelnet,将能够解析 OpenTSDB-Telnet 格式的写入请求。
通过使用 Input 插件 socket_listener,并配置 `data_format``"opentsdbtelnet"`,将能够解析 OpenTSDB-Telnet 格式的写入请求。
通过使用 Input 插件 socket_listener,并配置 `data_format``"opentsdbtelnet"`,将能够解析 OpenTSDB-Telnet 格式的写入请求。

```toml
[[inputs.socket_listener]]
service_address = "tcp://:8081"
data_format = "opentsdbtelnet"
```
```toml
[[inputs.socket_listener]]
service_address = "tcp://:8081"
data_format = "opentsdbtelnet"
```

## ℹ️ Support
### Output
Expand Down Expand Up @@ -162,7 +173,7 @@ password = "pass"
database = "telegraf"
```

**配置介绍**
- **配置介绍**

| 参数 | 说明 |
|----------|------------------|
Expand Down
2 changes: 1 addition & 1 deletion models/running_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ type InputConfig struct {
StartupErrorBehavior string
LogLevel string

HighPriorityIO bool
HighPriorityIO bool

NameOverride string
MeasurementPrefix string
Expand Down
6 changes: 5 additions & 1 deletion plugins/outputs/cnosdb/internal/models/models_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f2e28ca

Please sign in to comment.