Skip to content

Commit

Permalink
[INLONG-3412][Docker] add audit configuration for other component doc…
Browse files Browse the repository at this point in the history
…ker image (apache#325)
  • Loading branch information
dockerzhang committed Mar 29, 2022
1 parent 594e9a6 commit 8afbee2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
14 changes: 6 additions & 8 deletions docs/modules/audit/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,23 @@ All deploying files at `inlong-audit` directory, if you use MySQL to store audit
### Configure MessageQueue
You can choose Apache Pulsar or InLong TubeMQ as your MessageQueue service:

- If using Pulsar, the configuration file is `conf/audit-proxy-pulsar.conf`. Replace **`PULSAR_BROKER_LIST`** with the service url of your Pulsar cluster.
- If using Pulsar, the configuration file is `conf/audit-proxy-pulsar.conf`. Change the Pulsar service url for next configuration.

```Shell
agent1.sources.tcp-source.host = 0.0.0.0
agent1.sources.tcp-source.port = 10081
agent1.sinks.pulsar-sink-msg1.pulsar_server_url= pulsar://PULSAR_BROKER_LIST
agent1.sinks.pulsar-sink-msg1.pulsar_server_url= pulsar://localhost:6650
agent1.sinks.pulsar-sink-msg1.topic = persistent://public/default/inlong-audit
agent1.sinks.pulsar-sink-msg2.pulsar_server_url = pulsar://PULSAR_BROKER_LIST
agent1.sinks.pulsar-sink-msg2.pulsar_server_url = pulsar://localhost:6650
agent1.sinks.pulsar-sink-msg2.topic = persistent://public/default/inlong-audit
```

- If using TubeMQ, the configuration file is `conf/audit-proxy-tube.conf`. Replace **`TUBE_LIST`** with the master address of your TubeMQ cluster.
- If using TubeMQ, the configuration file is `conf/audit-proxy-tube.conf`. Change the TubeMQ master address for next configuration.

```Shell
agent1.sources.tcp-source.host = 0.0.0.0
agent1.sources.tcp-source.port = 10081
agent1.sinks.tube-sink-msg1.master-host-port-list = TUBE_LIST
agent1.sinks.tube-sink-msg1.master-host-port-list = localhost:8715
agent1.sinks.tube-sink-msg1.topic = inlong-audit
agent1.sinks.tube-sink-msg2.master-host-port-list = TUBE_LIST
agent1.sinks.tube-sink-msg2.master-host-port-list = localhost:8715
agent1.sinks.tube-sink-msg2.topic = inlong-audit
```

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/dataproxy/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ All deploying files at `inlong-dataproxy` directory.
configuration file: `conf/common.properties`:
```
# manager address
manager_hosts=127.0.0.1:8083
manager.hosts=127.0.0.1:8083
# audit proxy address
audit.proxys=127.0.0.1:10081
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,22 @@ title: 安装部署
### 配置消息队列
消息队列服务目前可以使用Apache Pulsar或者InLong TubeMQ:

- 若使用Pulsar,配置文件 `conf/audit-proxy-pulsar.conf`**`PULSAR_BROKER_LIST`**替换为Pulsar集群的服务地址
- 若使用Pulsar,配置文件 `conf/audit-proxy-pulsar.conf`修改下列配置中的 Pulsar service 地址

```Shell
agent1.sources.tcp-source.host = 0.0.0.0
agent1.sources.tcp-source.port = 10081
agent1.sinks.pulsar-sink-msg1.pulsar_server_url= pulsar://PULSAR_BROKER_LIST
agent1.sinks.pulsar-sink-msg1.pulsar_server_url= pulsar://localhost:6650
agent1.sinks.pulsar-sink-msg1.topic = persistent://public/default/inlong-audit
agent1.sinks.pulsar-sink-msg2.pulsar_server_url = pulsar://PULSAR_BROKER_LIST
agent1.sinks.pulsar-sink-msg2.pulsar_server_url = pulsar://localhost:6650
agent1.sinks.pulsar-sink-msg2.topic = persistent://public/default/inlong-audit
```

- 若使用TubeMQ,配置文件 `conf/audit-proxy-tube.conf`**`TUBE_LIST`**替换为TubeMQ集群的master地址
- 若使用TubeMQ,配置文件 `conf/audit-proxy-tube.conf`修改下列配置中的 TubeMQ master 地址
```Shell
agent1.sources.tcp-source.host = 0.0.0.0
agent1.sources.tcp-source.port = 10081
agent1.sinks.tube-sink-msg1.master-host-port-list = TUBE_LIST
agent1.sinks.tube-sink-msg1.master-host-port-list = localhost:8715
agent1.sinks.tube-sink-msg1.topic = inlong-audit
agent1.sinks.tube-sink-msg2.master-host-port-list = TUBE_LIST
agent1.sinks.tube-sink-msg2.master-host-port-list = localhost:8715
agent1.sinks.tube-sink-msg2.topic = inlong-audit
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title: 安装部署
配置文件:`conf/common.properties`:
```
# manager 地址
manager_hosts=127.0.0.1:8083
manager.hosts=127.0.0.1:8083
# audit proxy 地址
audit.proxys=127.0.0.1:10081
```
Expand Down

0 comments on commit 8afbee2

Please sign in to comment.