Back to Knowledge Base

FAQ: Docker BYOS Monitoring and Logging

Edit

Recommended Prometheus metrics endpoints and Docker logging configuration to prevent disk exhaustion on M-Lab BYOS nodes.

intermediate DockerBYOS Node OperationsMonitoring & LoggingTroubleshooting

Q: How should I monitor my Docker BYOS M-Lab node, and what logging configuration is recommended?

A: Since M-Lab does not provide alerts or notifications for BYOS nodes, you must set up your own monitoring system.

Prometheus Metrics Endpoints

Deploy a Prometheus instance to scrape metrics from these endpoints in your Docker Compose stack:

ServicePortKey Metric
ndt-server9990/metricsndt7_client_test_results_total
jostler9991/metrics
uuid-annotator9992/metrics
heartbeat9993/metrics
traceroute-caller9994/metrics
node_exporter9995/metricsCPU, memory, disk usage

Critical Logging Configuration

Docker’s default json-file logging driver does not rotate logs, and M-Lab containers generate significant log output that can fill your disk. Configure Docker to use the local logging driver by adding this to /etc/docker/daemon.json:

{
  "log-driver": "local"
}

Then restart Docker. The local driver includes automatic log rotation and size limits to prevent disk space issues over time.