Files
MlssFrncJrg 7985244daf feat: technical release (#10677)
* feat(@vates/iscsi): 0.4.0

* feat(@vates/types): 2.5.0

* feat(@xen-orchestra/backups): 0.78.0

* feat(@xen-orchestra/backups-cli): 1.1.18

* feat(@xen-orchestra/disk-cli): 2.2.5

* feat(@xen-orchestra/immutable-backups): 3.0.9

* feat(@xen-orchestra/web-core): 0.65.0

* feat(@xen-orchestra/mixins): 0.23.0

* feat(@xen-orchestra/proxy): 0.34.0

* feat(@xen-orchestra/vmware-explorer): 1.2.0

* feat(@xen-orchestra/qa-test): 1.4.0

* feat(@xen-orchestra/rest-api): 0.41.1

* feat(@xen-orchestra/web): 0.65.0

* feat(xo-server): 5.213.0

* feat(xo-server-sdn-controller): 1.6.0

* feat(xo-web): 5.208.0

* chore(CHANGELOG): update next
2026-10-28 16:02:08 +01:00
..
2025-12-17 17:17:53 +01:00
2026-10-28 16:02:08 +01:00
2025-12-17 17:17:53 +01:00

xo-server-openmetrics

XO Server plugin exposing metrics in OpenMetrics/Prometheus format

Usage

Exposes XenServer/XCP-ng metrics in OpenMetrics/Prometheus format.

Like all other xo-server plugins, it can be configured directly via the web interface, see the plugin documentation.

This plugin creates an HTTP server that exposes a /metrics endpoint compatible with Prometheus scraping. All metrics are enriched with human-readable labels (pool_name, host_name, vm_name, etc.) for easy filtering and visualization.

Features:

  • Real-time metrics from all connected pools
  • Host metrics: CPU, memory, network, disk IOPS/throughput/latency
  • Host uptime metric (xcp_host_uptime_seconds)
  • Host status metric (xcp_host_status) with power_state and enabled labels, including non-running hosts
  • VM status metric (xcp_vm_status) with power_state label, including non-running VMs
  • VM uptime metric (xcp_vm_uptime_seconds) for running VMs
  • VM metrics: CPU, memory, network, disk, runstate
  • Host power metric (xcp_host_power_consumption_watts) read from IPMI, carrying a source="ipmi" label
  • Estimated per-VM power metric (xcp_vm_power_consumption_watts, label estimate="true"): each running guest's share of its host's power, split proportionally to CPU load (cpu_usage × vCPUs); dom0 is excluded and the per-host total is preserved; flagged data_complete="false" when a VM's cpu_usage is missing
  • is_control_domain label on all VM metrics to distinguish dom0 from user VMs
  • tags label on host, VM and SR metrics carrying the XO tags of the object (comma-separated, sorted), enabling selective monitoring with regex matchers such as {tags=~"(^|.*,)production(,.*|$)"}
  • VDI disk size metrics: virtual size and physical usage per VDI (xcp_vdi_virtual_size_bytes, xcp_vdi_physical_usage_bytes)
  • Bearer token authentication
  • OpenMetrics format with EOF marker

Contributions

Contributions are very welcomed, either on the documentation or on the code.

You may:

  • report any issue you've encountered;
  • fork and create a pull request.

License

AGPL-3.0-or-later © Vates SAS