Skip to content
This is the documentation for v0.3. Read the latest.

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

MetricTypeLabelsDescription
dicer_build_infogaugeversion, commit, go_versionBuild information for the running daemon. Always 1. The build is in its labels.
dicer_start_time_secondsgaugeStart time of the daemon since the Unix epoch, in seconds. Uptime is time() - dicer_start_time_seconds.

Instances

MetricTypeLabelsDescription
dicer_instancesgaugestateInstances defined on this host, by lifecycle state. Every state is present, at 0 if none.
dicer_instances_healthgaugestatusRunning instances whose health is checked, by what the check has found. status is starting, healthy or unhealthy.
dicer_instances_vcpusgaugevCPUs committed to instances that are starting, running or paused.
dicer_instances_memory_bytesgaugeGuest memory committed to instances that are starting, running or paused.
dicer_instances_vcpus_allocatablegaugevCPUs instances may be committed in total; a start beyond it is refused.
dicer_instances_memory_allocatable_bytesgaugeGuest memory instances may be committed in total; a start beyond it is refused.
dicer_instance_operations_totalcounteroperation, outcomeInstance 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_secondshistogramoperationTime an instance lifecycle operation took.
dicer_instance_restarts_totalcounterInstances 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

MetricTypeLabelsDescription
dicer_imagesgaugeImages held on this host.
dicer_image_disk_bytesgaugeTotal size of the bootable disks those images were converted to.
dicer_image_pulls_totalcounteroutcomeImage pulls that reached a registry, by outcome. Cache hits are not pulls. outcome is success or error.
dicer_image_pull_duration_secondshistogramTime a pull took, from resolving the reference to a bootable disk.
dicer_image_downloaded_bytes_totalcounterCompressed layer bytes downloaded from registries.
dicer_image_conversion_duration_secondshistogramTime spent packing an unpacked image into its EROFS disk.
dicer_image_cache_lookups_totalcounterresultImage lookups by whether this host already held the image. result is hit or miss.
dicer_image_gc_collected_totalcounterreasonImages garbage collection removed, by reason (unused, size).
dicer_image_gc_reclaimed_bytes_totalcounterDisk image garbage collection gave back: bootable disks and cached layers.

Networks

MetricTypeLabelsDescription
dicer_network_addresses_allocatedgaugenetworkAddresses currently assigned to instances on a network.
dicer_network_addresses_availablegaugenetworkAssignable addresses still free on a network. The network, broadcast and gateway addresses are not counted.

API

MetricTypeLabelsDescription
dicer_grpc_requests_totalcountermethod, codegRPC calls served, by full method and response code. code is the gRPC status code, such as OK or NotFound.
dicer_grpc_request_duration_secondshistogrammethodTime 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.