Skip to content

Commit

Permalink
update for collector-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
eeliu committed May 31, 2024
1 parent d964370 commit 2416b5a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions DOC/collector-agent/readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## Install Collector Agent
`Collector-Agent` formats the span from PHP/Python/C/CPP-Agent and send to `Pinpoint-Collector`.

### 1. build from source
1. Goto collector-agent(`pinpoint-c-agent/collector-agent`)
2. Execute command `make`
3. Add environment variables:
### 1. Build
- Install: `GOBIN=/usr/local/bin/ go install github.com/pinpoint-apm/pinpoint-c-agent/collector-agent@dev`
- ❗❗❗Note: collector-agent: located into `/usr/local/bin/`
- Add environment variables:
```
export PP_COLLECTOR_AGENT_SPAN_IP=dev-pinpoint
export PP_COLLECTOR_AGENT_SPAN_PORT=9993
Expand All @@ -19,10 +19,10 @@
```
1. `PP_COLLECTOR_AGENT_SPAN_IP`, `PP_COLLECTOR_AGENT_AGENT_IP`, `PP_COLLECTOR_AGENT_STAT_IP`: Set the IP of pinpoint-collector.
2. `PP_COLLECTOR_AGENT_SPAN_PORT`, `PP_COLLECTOR_AGENT_AGENT_PORT`, `PP_COLLECTOR_AGENT_STAT_PORT`: Set the port of pinpoint-collector(grpc).
3. `PP_LOG_DIR`: Set the path of Collector-Agent's log file.
3. `PP_LOG_DIR`: Set the path of collector-agent's log file.
4. `PP_Log_Level`: Set the log level.
5. `PP_ADDRESS`: Set the address of `Collector-Agent`, then `PHP/Python-Agent` will connect Collector-Agent through this address.
4. Run `Collector-Agent` by executing command `./CollectorAgent`
5. `PP_ADDRESS`: Set the address of `collector-agent`, then `PHP/Python-Agent` will connect collector-agent through this address.
- Run `collector-agent` by executing command `./collector-agent`

### 2. Use docker images

Expand Down

0 comments on commit 2416b5a

Please sign in to comment.