forked from influxdata/telegraf
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(output): cnosdb_subscription plugin add cnosdbv2.3 support
- Loading branch information
1 parent
4ac8359
commit 2526d4b
Showing
19 changed files
with
1,899 additions
and
516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
# CnosDB Subscription Input Plugin | ||
|
||
## Build | ||
## Usages | ||
|
||
To compile this plugin it requires protoc-gen-go and protoc-gen-go-grpc | ||
To listen on port 8803: | ||
|
||
```shell | ||
# install protoc-gen-go | ||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | ||
# install protoc-gen-go-grpc | ||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest | ||
```toml | ||
[[inputs.cnosdb_subscription]] | ||
service_address = ":8803" | ||
``` | ||
|
||
## Usages | ||
|
||
To listen on port 8803: | ||
If you want to get response from output plugins immediately, add config `high_priority_io = true`: | ||
|
||
```toml | ||
[[inputs.cnosdb_subscription]] | ||
service_address = ":8803" | ||
high_priority_io = true | ||
``` | ||
|
||
## Develop | ||
|
||
If you want to edit protocol files (in directory `protocol/`), | ||
you need **protoc-gen-go** and **protoc-gen-go-grpc** to re-compile them. | ||
See [generate.go](./generate.go). | ||
|
||
```shell | ||
# install protoc-gen-go | ||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | ||
# install protoc-gen-go-grpc | ||
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest | ||
``` |
Oops, something went wrong.