collector-agent

command module
v0.0.0-...-469dc3c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

Install Collector-Agent

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

  1. Goto collector-agent(pinpoint-c-agent/collector-agent)
  2. Execute command go build
  3. 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
    
    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.
    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

Collector Agent Span Specification Json string map to Pinpoint item

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL