Skip to content

Repository files navigation

APM (Agent Package Manager)


Quick start

  1. Download docker-compose.yml to start APM Server

    docker compose -f docker-compose.yml up
  2. Install agent from APM CLI @fynal-ai/apm

    pnpm install -g @fynal-ai/apm
    apm --help
  3. Create a new agent

    apm init

    follow the instruction to create a new agent

  4. Install agent to AMP server

    apm install

Deploy APM Server alone with exist external database

Instead of deploying all in one with docker-compose.yml, you can deploy APM Server alone with exist external database.

export APM_LOCAL_REPOSITORY_DIR=~/.apm

docker run --name apm-test --rm -p 12008:12008  -v $APM_LOCAL_REPOSITORY_DIR:/app/.apm -e MONGO_CONNECTION_STRING=<MONGO_CONNECTION_STRING> -e REDIS_CONNECTION_STRING=<REDIS_CONNECTION_STRING> fynalai/apm:latest

See http://127.0.0.1:12008/documentation for Application development.

For more environment variables, see Dockerfile.latest

Install agent from Agent Store

APM

Development

See http://127.0.0.1:12008/documentation for Application development. seperate-dev-start.md

publish-packages-to-public.md

Q&A

Configure Agent Store endpoint to switch between dev and production environment

setenv.sh:

export APM_AGENT_STORE_BASE_URL="https://agentstoreemp.baystoneai.com"

docker-compose.yml:

- APM_AGENT_STORE_BASE_URL=http://172.16.7.141:11008

Releases

Packages

Used by

Contributors

Languages