Collector-Agent
, who formats the span from PHP/Python/C/CPP-Agent and send to Pinpoint-Collector
, is an agent written by golang.Please install golang before the following steps.Install GO
- Goto collector-agent(
pinpoint-c-agent/collector-agent
) - Execute command
go build
- Add environment variables:
export PP_COLLECTOR_AGENT_SPAN_IP=dev-pinpoint export PP_COLLECTOR_AGENT_SPAN_PORT=9993 export PP_COLLECTOR_AGENT_AGENT_IP=dev-pinpoint export PP_COLLECTOR_AGENT_AGENT_PORT=9991 export PP_COLLECTOR_AGENT_STAT_IP=dev-pinpoint export PP_COLLECTOR_AGENT_STAT_PORT=9992 export PP_COLLECTOR_AGENT_ISDOCKER=false export PP_LOG_DIR=/tmp/ export PP_Log_Level=INFO export PP_ADDRESS=0.0.0.0@9999
PP_COLLECTOR_AGENT_SPAN_IP
,PP_COLLECTOR_AGENT_AGENT_IP
,PP_COLLECTOR_AGENT_STAT_IP
: Set the IP of pinpoint-collector.PP_COLLECTOR_AGENT_SPAN_PORT
,PP_COLLECTOR_AGENT_AGENT_PORT
,PP_COLLECTOR_AGENT_STAT_PORT
: Set the port of pinpoint-collector(grpc).PP_LOG_DIR
: Set the path of Collector-Agent's log file.PP_Log_Level
: Set the log level.PP_ADDRESS
: Set the address ofCollector-Agent
, thenPHP/Python-Agent
will connect Collector-Agent through this address.
- Run
Collector-Agent
by executing command./CollectorAgent
docker run -itd -p 9999:9999 --env-file ./env.list ghcr.io/pinpoint-apm/pinpoint-c-agent/collector-agent:latest
Collector Agent Span Specification