Templating¶
AutoKuma uses Tera templates in label values and Snippets. Templates let you build monitor definitions dynamically from container metadata.
Try it in the browser
The AutoKuma Playground lets you test templates and snippets interactively.
Available Variables¶
Docker Containers¶
| Variable | Description | Example |
|---|---|---|
container_id |
Full container ID | 92366941fb1f... |
image_id |
SHA256 of the container image | sha256:c2e38600... |
image |
Image name and tag | ghcr.io/immich-app/immich-server:release |
container_name |
Container name | immich-immich-1 |
container |
Full container object | See Docker Engine API |
system_info |
Docker host info | See Docker Engine API |
Docker Swarm Services¶
| Variable | Description |
|---|---|
service |
Full service object from the Docker Engine API |
system_info |
Docker host info |
Examples¶
Simple URL with container name¶
labels:
kuma.{{container_name}}.http.name: "{{container_name}}"
kuma.{{container_name}}.http.url: "http://{{container_name}}:8080"