Skip to content

Installation

MiniAPM can be installed in several ways depending on your needs.

MiniAPM consists of two services—a collector and a dashboard—that share the same database:

docker-compose.yml
services:
miniapm:
image: ghcr.io/miniapm/miniapm
command: miniapm
ports:
- "3000:3000"
volumes:
- miniapm_data:/data
environment:
- SQLITE_PATH=/data/miniapm.db
- RUST_LOG=mini_apm=info
restart: unless-stopped
miniapm-admin:
image: ghcr.io/miniapm/miniapm
command: miniapm-admin
ports:
- "3001:3001"
volumes:
- miniapm_data:/data
environment:
- SQLITE_PATH=/data/miniapm.db
- RUST_LOG=mini_apm_admin=info
- ENABLE_USER_ACCOUNTS=true
- SESSION_SECRET=change-me-to-random-string
depends_on:
- miniapm
restart: unless-stopped
volumes:
miniapm_data:

Run with:

Terminal window
docker compose up -d

If you only need the collector (no web dashboard):

Terminal window
docker run -d -p 3000:3000 -v miniapm_data:/data ghcr.io/miniapm/miniapm

Download the latest release for your platform from GitHub Releases.

Terminal window
curl -L https://github.com/miniapm/miniapm/releases/latest/download/miniapm-linux-x86_64 -o miniapm
chmod +x miniapm
./miniapm
Terminal window
curl -L https://github.com/miniapm/miniapm/releases/latest/download/miniapm-darwin-arm64 -o miniapm
chmod +x miniapm
./miniapm
Terminal window
curl -L https://github.com/miniapm/miniapm/releases/latest/download/miniapm-darwin-x86_64 -o miniapm
chmod +x miniapm
./miniapm

Requirements:

  • Rust 1.75 or later
Terminal window
# Clone the repository
git clone https://github.com/miniapm/miniapm.git
cd miniapm
# Run the collector
cargo run -p mini-apm
# Run the dashboard (in another terminal)
cargo run -p mini-apm-admin

After starting MiniAPM, verify the collector is running:

Terminal window
curl http://localhost:3000/health
# Should return:
# {"status":"ok","uptime_seconds":5,"db_ok":true}

Open http://localhost:3001 in your browser to access the dashboard.

On first run, the collector generates an API key automatically and logs it:

INFO mini_apm::server: Single-project mode - API key: proj_abc123...

Save this key—you’ll need it to configure your applications.

MiniAPM ships three binaries:

Terminal window
# Collector server (default port 3000)
miniapm
# Collector on a custom port
miniapm -p 8080
# Admin dashboard (default port 3001)
miniapm-admin
# CLI tools
miniapm-cli create-key my-app # Create a new API key
miniapm-cli list-keys # List all API keys
miniapm-cli reset-password admin newpass # Reset user password
miniapm-cli list-users # List all users