Metrics
The Prometheus metrics the daemon serves at /metrics, once enabled with metrics.enable. Every metric of Dicer’s own is named dicer_. See Monitoring for scraping and alerts.
The endpoint also serves the Go runtime’s go_* metrics and the daemon process’s process_* metrics, and speaks OpenMetrics to a scraper that asks for it.
Daemon
| Metric | Type | Labels | Description |
|---|---|---|---|
dicer_build_info | gauge | version, commit, go_version | Build information for the running daemon. Always 1. The build is in its labels. |
dicer_start_time_seconds | gauge | Start time of the daemon since the Unix epoch, in seconds. Uptime is time() - dicer_start_time_seconds. |
Instances
| Metric | Type | Labels | Description |
|---|---|---|---|
dicer_instances | gauge | state | Instances defined on this host, by lifecycle state. Every state is present, at 0 if none. |
dicer_instances_health | gauge | status | Running instances whose health is checked, by what the check has found. status is starting, healthy or unhealthy. |
dicer_instances_vcpus | gauge | vCPUs committed to instances that are starting, running or paused. | |
dicer_instances_memory_bytes | gauge | Guest memory committed to instances that are starting, running or paused. | |
dicer_instances_vcpus_allocatable | gauge | vCPUs instances may be committed in total; a start beyond it is refused. | |
dicer_instances_memory_allocatable_bytes | gauge | Guest memory instances may be committed in total; a start beyond it is refused. | |
dicer_instance_operations_total | counter | operation, outcome | Instance lifecycle operations by operation (start, stop, pause, resume, delete, create_snapshot, restore_snapshot, delete_snapshot) and outcome. outcome is success or error. |
dicer_instance_operation_duration_seconds | histogram | operation | Time an instance lifecycle operation took. |
dicer_instance_restarts_total | counter | Instances started again by their restart policy after they ended. |
The allocatable amounts are the host’s CPUs and memory, less the reserve, multiplied by the overcommit, as the configuration’s resources sets them. See Capacity.
Images
| Metric | Type | Labels | Description |
|---|---|---|---|
dicer_images | gauge | Images held on this host. | |
dicer_image_disk_bytes | gauge | Total size of the bootable disks those images were converted to. | |
dicer_image_pulls_total | counter | outcome | Image pulls that reached a registry, by outcome. Cache hits are not pulls. outcome is success or error. |
dicer_image_pull_duration_seconds | histogram | Time a pull took, from resolving the reference to a bootable disk. | |
dicer_image_downloaded_bytes_total | counter | Compressed layer bytes downloaded from registries. | |
dicer_image_conversion_duration_seconds | histogram | Time spent packing an unpacked image into its EROFS disk. | |
dicer_image_cache_lookups_total | counter | result | Image lookups by whether this host already held the image. result is hit or miss. |
dicer_image_gc_collected_total | counter | reason | Images garbage collection removed, by reason (unused, size). |
dicer_image_gc_reclaimed_bytes_total | counter | Disk image garbage collection gave back: bootable disks and cached layers. |
Networks
| Metric | Type | Labels | Description |
|---|---|---|---|
dicer_network_addresses_allocated | gauge | network | Addresses currently assigned to instances on a network. |
dicer_network_addresses_available | gauge | network | Assignable addresses still free on a network. The network, broadcast and gateway addresses are not counted. |
API
| Metric | Type | Labels | Description |
|---|---|---|---|
dicer_grpc_requests_total | counter | method, code | gRPC calls served, by full method and response code. code is the gRPC status code, such as OK or NotFound. |
dicer_grpc_request_duration_seconds | histogram | method | Time a gRPC call took, from the first byte to the final status. For a stream, such as dicer logs -f, it is how long the client stayed. |