Metrics¶
Migration Manager exposes metrics about the daemon and the entities it manages through the /1.0/metrics endpoint.
The metrics are served in the OpenMetrics text format, which can be consumed by Prometheus and compatible scrapers.
The endpoint requires the same authentication as the rest of the API, so the scraper needs either a trusted TLS client certificate or a valid OIDC token.
curl -s --cert client.crt --key client.key https://<server>:6443/1.0/metrics
Available metrics¶
Metric |
Labels |
Description |
|---|---|---|
|
|
The number of defined artifacts. |
|
|
The number of defined batches. |
|
|
The number of instances assigned to a batch. |
|
|
The number of instances of a batch that have been migrated. |
|
|
The number of instances of a batch that are blocked from migrating. |
|
|
The disk size in bytes of the instances assigned to a batch. |
|
|
The disk size in bytes of a batch that has been transferred to the target. |
|
The number of instances known to the daemon. |
|
|
|
The number of networks known to the daemon. |
|
|
The number of instances currently in a migration queue. |
|
|
The number of configured sources. |
|
|
The number of instances reported by a source. |
|
|
The number of instances of a source that were fully imported by the last sync. |
|
|
The number of instances of a source that have been migrated. |
|
|
The number of instances of a source that aren’t eligible for migration. |
|
|
The number of instances of a source affected by an import issue. |
|
|
The number of configured targets. |
|
|
The number of recorded warnings. |
|
The daemon uptime in seconds. |
|
|
The number of goroutines that currently exist. |
|
|
The number of bytes allocated and still in use. |
|
|
The total number of bytes allocated, even if freed. |
|
|
The number of allocated objects. |
|
|
The number of bytes obtained from the system. |
The per-batch and per-source metrics report the same numbers as the /1.0/stats endpoint.
An instance assigned to several batches is counted in each of them, so the per-batch series can add up to more than migration_manager_instances.
Incus OS metrics¶
When Migration Manager runs on Incus OS, the system metrics reported by the Incus OS node exporter are appended to the output.
This provides the usual node_* metrics for the host, such as CPU, memory, disk and network usage, alongside the Migration Manager metrics.