XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. mpiton
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 0

    mpiton

    @mpiton

    1
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Age 36

    mpiton Unfollow Follow

    Best posts made by mpiton

    • RE: Xen Orchestra OpenMetrics Plugin - Grafana Dashboard

      @Mang0Musztarda

      To add to what @florent said, here's the complete picture:

      Why your command failed:

      1. Wrong URL: localhost:9004 is the internal port that only listens on
        127.0.0.1. It's proxied through xo-server at /openmetrics/metrics.

      2. Wrong token: The error "Query authentication does not match server setting"
        means your Bearer token doesn't match the one configured in the plugin.

      Correct approach:

      1. Get your secret from: Settings → Plugins → OpenMetrics → "Prometheus secret"

      2. Use the proxied endpoint:

        curl -H "Authorization: Bearer <your-actual-secret>" \                                                                                                                                                                                   
             http://<your-xo-server>/openmetrics/metrics                                                                                                                                                                                         
                                                                                                                                                                                                                                                 
        
      3. For health checks (no auth required):
        curl http://<your-xo-server>/openmetrics/health
        Returns: {"status":"ok"}

      Full documentation is available at:
      https://docs.xen-orchestra.com/advanced#openmetrics--prometheus-integration

      It covers Prometheus configuration, available metrics, Grafana dashboards,
      alerting rules, and troubleshooting.

      @MajorP93 Thanks for sharing your Grafana dashboard! It could indeed be a nice
      addition to link it from the official docs as a community example.

      posted in Infrastructure as Code
      mpitonM
      mpiton

    Latest posts made by mpiton

    • RE: Xen Orchestra OpenMetrics Plugin - Grafana Dashboard

      @Mang0Musztarda

      To add to what @florent said, here's the complete picture:

      Why your command failed:

      1. Wrong URL: localhost:9004 is the internal port that only listens on
        127.0.0.1. It's proxied through xo-server at /openmetrics/metrics.

      2. Wrong token: The error "Query authentication does not match server setting"
        means your Bearer token doesn't match the one configured in the plugin.

      Correct approach:

      1. Get your secret from: Settings → Plugins → OpenMetrics → "Prometheus secret"

      2. Use the proxied endpoint:

        curl -H "Authorization: Bearer <your-actual-secret>" \                                                                                                                                                                                   
             http://<your-xo-server>/openmetrics/metrics                                                                                                                                                                                         
                                                                                                                                                                                                                                                 
        
      3. For health checks (no auth required):
        curl http://<your-xo-server>/openmetrics/health
        Returns: {"status":"ok"}

      Full documentation is available at:
      https://docs.xen-orchestra.com/advanced#openmetrics--prometheus-integration

      It covers Prometheus configuration, available metrics, Grafana dashboards,
      alerting rules, and troubleshooting.

      @MajorP93 Thanks for sharing your Grafana dashboard! It could indeed be a nice
      addition to link it from the official docs as a community example.

      posted in Infrastructure as Code
      mpitonM
      mpiton