Skip to content

Incompatibility with XCP-ng >= 8.3 due to XO Lite HTML Response #761

@valdirjuniorfernride

Description

@valdirjuniorfernride

Environment
Exporter Image: ghcr.io/mikedombo/xen-exporter:latest
Working XCP-ng Version: 8.2.1
Failing XCP-ng Version: 8.3.3

Problem Description
The exporter fails to retrieve metrics from XCP-ng hosts running version 8.3.3. This appears to be caused by a change in XCP-ng's default behavior, where the root path (/) now serves an HTML landing page for XO Lite.

When the exporter attempts to connect to the XAPI, it receives this HTML page instead of the expected API response. The script cannot parse the HTML, leading to an empty data structure and a subsequent crash.

Steps to Reproduce
Deploy the xen-exporter container and configure it to target an XCP-ng 8.3.3 host.
Attempt to scrape the /metrics endpoint with Prometheus or curl.
Observe the errors in the Prometheus UI and the exporter's container logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions