Skip to content

Commit 2526d4b

Browse files
committed
feat(output): cnosdb_subscription plugin add cnosdbv2.3 support
1 parent 4ac8359 commit 2526d4b

19 files changed

+1899
-516
lines changed
+20-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
11
# CnosDB Subscription Input Plugin
22

3-
## Build
3+
## Usages
44

5-
To compile this plugin it requires protoc-gen-go and protoc-gen-go-grpc
5+
To listen on port 8803:
66

7-
```shell
8-
# install protoc-gen-go
9-
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
10-
# install protoc-gen-go-grpc
11-
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
7+
```toml
8+
[[inputs.cnosdb_subscription]]
9+
service_address = ":8803"
1210
```
1311

14-
## Usages
15-
16-
To listen on port 8803:
12+
If you want to get response from output plugins immediately, add config `high_priority_io = true`:
1713

1814
```toml
1915
[[inputs.cnosdb_subscription]]
2016
service_address = ":8803"
17+
high_priority_io = true
18+
```
19+
20+
## Develop
21+
22+
If you want to edit protocol files (in directory `protocol/`),
23+
you need **protoc-gen-go** and **protoc-gen-go-grpc** to re-compile them.
24+
See [generate.go](./generate.go).
25+
26+
```shell
27+
# install protoc-gen-go
28+
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
29+
# install protoc-gen-go-grpc
30+
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
2131
```

0 commit comments

Comments
 (0)