Installing on Docker
This guide covers running MetricsHub as a Docker container. You can use Docker directly or Docker Compose.
- Community Edition
- Enterprise Edition
Pulling the Image
Pull the Community image from Docker Hub:
docker pull metricshub/metricshub-community:3.9.02
Preparing the Configuration
Create directories and download example configuration:
mkdir -p /opt/metricshub/{logs,config}
cd /opt/metricshub
wget -O ./config/metricshub.yaml https://metricshub.com/docs/latest/resources/config/linux/metricshub-example.yaml
Set permissions (container runs as UID 1000):
chown -R 1000:1000 /opt/metricshub && chmod -R 775 /opt/metricshub
Starting the Container
cd /opt/metricshub && docker run -d \
--name=metricshub-community \
-p 31888:31888 \
-v $(pwd)/config:/opt/metricshub/lib/config \
-v $(pwd)/logs:/opt/metricshub/lib/logs \
metricshub/metricshub-community:3.9.02
Docker Compose
For easier management, you can use Docker Compose. Create a docker-compose.yaml file in /opt/metricshub:
services:
metricshub:
image: metricshub/metricshub-community:3.9.02
container_name: metricshub-community
ports:
- 31888:31888 # MetricsHub Web UI
volumes:
- ./logs:/opt/metricshub/lib/logs
- ./config:/opt/metricshub/lib/config
restart: unless-stopped
Start with docker compose up -d.
Managing Containers
Use these commands to manage your MetricsHub container:
docker stop metricshub-community
docker start metricshub-community
docker restart metricshub-community
docker logs metricshub-community
Upgrading
To upgrade to a newer version:
- Stop and remove the existing container:
docker stop metricshub-community && docker rm metricshub-community - Pull the latest image:
docker pull metricshub/metricshub-community:latest - Start with your existing configuration (same command as initial start)
Your configuration files are preserved in the mounted volumes.
Pulling the Image
Login to the Enterprise registry with credentials from your onboarding email:
docker login docker.metricshub.com
docker pull docker.metricshub.com/metricshub-enterprise:3.9.02
Preparing the Configuration
Create directories and download example configuration:
mkdir -p /opt/metricshub/{logs,config,otel}
cd /opt/metricshub
wget -O ./config/metricshub.yaml https://metricshub.com/docs/latest/resources/config/linux/metricshub-example.yaml
wget -O ./otel/otel-config.yaml https://metricshub.com/docs/latest/resources/config/otel/otel-config-example.yaml
Set permissions (container runs as UID 1000):
chown -R 1000:1000 /opt/metricshub && chmod -R 775 /opt/metricshub
Starting the Container
cd /opt/metricshub && docker run -d \
--name=metricshub-enterprise \
-p 24375:24375 -p 13133:13133 -p 31888:31888 \
-v $(pwd)/config:/opt/metricshub/lib/config \
-v $(pwd)/otel/otel-config.yaml:/opt/metricshub/lib/otel/otel-config.yaml \
-v $(pwd)/logs:/opt/metricshub/lib/logs \
--hostname=localhost \
docker.metricshub.com/metricshub-enterprise:3.9.02
Docker Compose
For easier management, you can use Docker Compose. Create a docker-compose.yaml file in /opt/metricshub:
services:
metricshub:
image: docker.metricshub.com/metricshub-enterprise:3.9.02
container_name: metricshub-enterprise
hostname: localhost
ports:
- 13133:13133 # OTel Collector HealthCheck
- 24375:24375 # OTel Collector Prometheus Exporter
- 31888:31888 # MetricsHub Web UI
volumes:
- ./logs:/opt/metricshub/lib/logs
- ./config:/opt/metricshub/lib/config
- ./otel/otel-config.yaml:/opt/metricshub/lib/otel/otel-config.yaml
restart: unless-stopped
Start with docker compose up -d.
Managing Containers
Use these commands to manage your MetricsHub container:
docker stop metricshub-enterprise
docker start metricshub-enterprise
docker restart metricshub-enterprise
docker logs metricshub-enterprise
Upgrading
To upgrade to a newer version:
- Stop and remove the existing container:
docker stop metricshub-enterprise && docker rm metricshub-enterprise - Pull the latest image:
docker pull docker.metricshub.com/metricshub-enterprise:latest - Start with your existing configuration (same command as initial start)
Your configuration files are preserved in the mounted volumes.
Next Steps
Once running, you're ready to configure MetricsHub:
- Configure your resources — define what to monitor
- Set up telemetry export — choose where to send metrics
- Access the Web UI — manage and monitor from your browser