 # User Behavior Monitor Golang Version
 The POC/On-demand Customer Behavior Monitor written in Golang. It reads from the previewed version of data warehouse and sends monitor messages to `TiDB Cloud User Behavior Monitoring` Feishu group chat. It's behavior is almost the same with [the Shell version of the monitor](../user_behavior/), with some additional fields. 
 # How to build it
 Firstly create a `conf.yaml` file under directory [/config](/config) by copyting and renaming [/config/conf.yaml.template] 
 The configurarion looks like this
 ``` yaml
 db:
  type: 'mysql'
  address: '127.0.0.1:4000'
  user: 'root'
  password: 'pingcap'
  database: 'tmp_dw'
server:
  listen_ip: '0.0.0.0'
  listen_port: 9000
 ```
 Secondly build the project by calling `make`.
 ``` shell
 make
 ```
Then just run the binary
``` shell
bin/ub-monitor
```
