Skip to main content

Overview

Dockhand provides comprehensive monitoring capabilities for containers, images, and host systems. Track CPU, memory, network I/O, and disk usage in real-time with historical data retention and event tracking.

Container Statistics

Real-Time Metrics

Fetch current statistics for any container:
Response:

Metric Calculations

Dockhand calculates metrics using Docker’s standard formulas:

CPU Percentage

Memory Usage

Docker-compatible memory calculation (subtracts cache):

Network I/O

Block I/O

Streaming Statistics

Get continuous updates via Server-Sent Events:
Response (SSE stream):

Bulk Statistics

Get stats for all containers in an environment:
Response:

Host Metrics

System Statistics

Track host-level resource usage:

Database Schema

Collection Settings

Configure metric collection per environment:

Event Tracking

Container Events

Track container lifecycle events:

Stack Events

Query Events

Dashboard Statistics

Overview Statistics

Get aggregated stats for the dashboard:
Response:

Real-Time Dashboard Stream

Continuous dashboard updates via SSE:

Activity Tracking

Activity Log

Track user actions and system events:

Activity Statistics

Response:

Performance Monitoring

Track performance over time:
Response:

Resource Usage Alerts

Configure alerts for resource thresholds:

Health Monitoring

Container Health Status

Health Check Configuration

Query Unhealthy Containers

Metrics Retention

Retention Policies

Configure how long to keep metrics data:

Cleanup Configuration

Integration Examples

Grafana Integration

Expose metrics for Grafana:

Prometheus Export

Best Practices

Monitoring Strategy

  1. Enable metrics collection only on production environments
  2. Set appropriate retention periods based on disk space
  3. Use streaming endpoints for real-time dashboards
  4. Configure cleanup jobs to prevent database bloat
  5. Monitor the monitor - track Dockhand’s own resource usage

Performance Optimization

Alert Configuration

API Reference