Skip to content
This is the documentation for main, which is not released yet. Read the latest.

Events

The daemon records events about what happens to the instances, snapshots, images, networks, volumes and kernels on its host, and why. dicer events shows them, and dicer inspect shows an instance’s last ten. Each event below is listed by the name those commands print, and by its action in --format json.

Fields

FieldDescription
timeWhen it happened.
kindWhat it is about: an instance, a snapshot, an image, a network, a volume or a kernel.
idThe resource’s ID. It tells apart two resources that had the same name at different times. Images have no ID, and are known by their name.
nameThe resource’s name. An image’s name is its full reference, such as docker.io/library/busybox:latest, which dicer events shortens to busybox:latest.
actionWhat happened: one of the events below.
messageWhat happened, in one line for a person to read.
attributesWhat happened, for a program. Each event’s attributes are listed in its table. Every value is a string.

The events file

The daemon keeps events in events.jsonl in its data_dir, which is /var/lib/dicer/events.jsonl by default. It writes one JSON object per line, so events survive a restart of the daemon. It keeps the most recent events.max_count, 10,000 by default. With events.max_age set, it also drops events older than that.

dicer events asks the running daemon for events. When no daemon is running, you can read the file directly, with jq for example.

The file and dicer events --format json write kind and action in lower case, such as instance and died, as the tables below name them. The API names them in upper case, with the enumeration’s name in front: EVENT_KIND_INSTANCE and EVENT_ACTION_DIED.

{"time":"2026-09-22T09:52:07Z","kind":"instance","id":"r4kq2x7m9c1v8b3n6p0z5wte","name":"grafana","action":"died","message":"Instance failed after running for 2h 14m: exit code 1","attributes":{"exit_code":"1"}}

Instances

EventactionAttributesWhat it means
Createdcreatedimage, snapshot, source_instanceThe instance was created: its definition was recorded, after pulling its image if needed. Nothing is booted yet. image is its image’s reference. An instance forked with dicer snapshot fork has snapshot, the snapshot it is a copy of. One forked with dicer fork has source_instance, the instance it is a copy of.
UpdatedupdatedThe instance’s definition was changed with dicer update. The message lists what changed and when it takes effect: at the next start, or, for a running instance’s restart policy, when it next ends.
Renamedrenamedprevious_nameThe instance was renamed. name is its new name, and previous_name is the one it had before.
Resizedresizedvcpus, memory_bytesThe running instance was given more or fewer vCPUs or memory with dicer resize, and keeps them from its next start. vcpus and memory_bytes are what it has now. A resize that the guest failed records no event.
Startedstartedip, restart_count, snapshot, source_instance, woken_by_portThe instance’s hypervisor started and the guest is booting or resuming. ip is its address. See How an instance was started for the other attributes.
StoppedstoppedThe instance was stopped with dicer stop. The message says whether the guest shut down within the grace period or its hypervisor was ended. For an instance on standby, it says that what it froze was discarded.
PausedpausedThe instance’s vCPUs were halted with dicer pause. Its memory is kept.
ResumedresumedA paused instance’s vCPUs were started again with dicer resume.
Standbystandbysize_bytes, idle_secondsThe instance was put on standby: its guest was frozen to disk and its hypervisor ended, releasing its CPU and memory. size_bytes is the disk space the frozen guest takes. An instance put on standby for being idle for its standby_after has idle_seconds, how long it had been idle. One put on standby with dicer standby has none. Resuming it records Started.
Exitedexitedexit_codeThe guest ended cleanly, of its own accord: its program exited with code 0, which is exit_code.
Dieddiedexit_codeThe guest ended in failure, or the instance failed to start. See Why an instance died.
Restartingrestartingdelay, restart_countThe instance ended, recorded as Exited or Died just before, and its restart policy will start it again. delay is how long it waits first, as a Go duration. restart_count is which restart in a row this is.
HealthyhealthyThe instance’s health check passed, after it had been starting or unhealthy. The message has the first line of the check’s output.
Unhealthyunhealthyfailing_streakThe instance’s health check failed failing_streak times in a row, which is its number of retries. The message has the first line of the last check’s output.
Snapshot restoredsnapshot_restoredsnapshotThe instance was put back as the snapshot named snapshot holds it. From a memory snapshot, it was started with its memory and overlay disk rolled back to when the snapshot was taken, and no Started event is recorded. From a disk snapshot, only its overlay disk was rolled back, and it was left stopped.
DeleteddeletedThe instance was deleted: its definition and disks were removed, and its address on its network was released. Its snapshots are kept.

How an instance was started

A Started event’s attributes say how the instance came to start:

HowAttributesMessage begins
Started by its restart policyrestart_count: how many times in a row the policy has restarted itRestarted instance
Started any other waynone of theseStarted instance
Forked from a memory snapshot, and resumedsnapshot: the snapshot it was forked fromStarted instance from memory snapshot …
Forked from a running or paused instancesource_instance: the instance it was forked fromStarted instance from instance …
Resumed from standby by dicer startnone of theseResumed instance from standby
Woken from standby by a connectionwoken_by_port: the published host port the connection came toResumed instance from standby, woken by a connection

Why an instance died

A Died event’s message says why the instance failed:

  • its program exited with a non-zero code, which exit_code is;
  • the guest reset, after a kernel panic or a reboot;
  • the hypervisor exited;
  • its health check failed, and its restart policy acts on that;
  • it failed to start, or to resume from standby;
  • a start or stop was interrupted by the daemon restarting.

exit_code is present only when the guest reported one. When the restart policy gives up, the message says so too.

An instance that crashes and is restarted by its policy records Died, Restarting and Started in turn. dicer events --name NAME is therefore its timeline: why it ended, how long it waited, and how it came back.

Snapshots

Every snapshot event has an instance attribute: the instance the snapshot was taken of, by the name it had at the time.

EventactionAttributesWhat it means
Createdcreatedinstance, kind, size_bytes, paused_secondsThe snapshot was taken with dicer snapshot create. kind is memory, of a running or paused instance’s memory and overlay disk, or disk, of a stopped or failed instance’s overlay disk alone. size_bytes is the disk space it takes. paused_seconds is how long a running instance was paused to take it. Copying the overlay disk can make that long where the filesystem cannot reflink. A snapshot that paused nothing has no paused_seconds.
DeleteddeletedinstanceThe snapshot was deleted, along with its files.

Restoring a snapshot is recorded as an event of its instance: Snapshot restored, above.

Images

Every image event has a digest attribute: the image’s sha256: digest.

EventactionAttributesWhat it means
Pulledpulleddigest, size_bytesThe image was pulled and made into a boot disk. size_bytes is the boot disk’s size. The message says how much was downloaded, or that the layers were already cached.
Collectedcollecteddigest, reasonGarbage collection removed the image and its boot disk. reason is unused when no instance had used the image for longer than images.gc_max_unused_age. It is size when the image store was over images.gc_max_size and this image was the least recently used.
Deleteddeleteddigest, byThe image and its boot disk were removed. by is user when it was removed with dicer image delete, or prune when dicer image prune removed it because no instance used it.

Networks

Every network event has subnet and gateway attributes.

EventactionAttributesWhat it means
Createdcreatedsubnet, gatewayThe network was created with dicer network create, or it is the default network, which the daemon creates when it first starts. The message also says whether it is isolated or internal.
Deleteddeletedsubnet, gatewayThe network was deleted, and the addresses it had allocated were released.

Volumes

Every volume event has a size_bytes attribute.

EventactionAttributesWhat it means
Createdcreatedsize_bytesThe volume was created with dicer volume create, and formatted as ext4.
Deleteddeletedsize_bytesThe volume was deleted, along with its data.

Kernels

Every kernel event has an arch attribute: the kernel’s architecture.

EventactionAttributesWhat it means
ImportedimportedarchThe kernel was imported with dicer kernel import, or it is the default kernel, which the daemon puts on the host when it starts if it is not there. It is on the host. The message says its size, and when it had no checksum to verify it against.
UpdatedupdatedarchThe daemon was upgraded to a version that carries a newer default kernel, and has put it in place of the old one.
DeleteddeletedarchThe kernel was deleted, along with its copy on the host.