XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    hosts stats rest api

    Scheduled Pinned Locked Moved Unsolved REST API
    5 Posts 2 Posters 805 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      r0123456789
      last edited by

      Hello guys!
      Thanks for the nice work with the rest API, it help a lot.
      Can I ask to add stats hosts in the API?
      Can be similar to xo-cli host.stats.
      Today for see how many resources cpu my host using i need to use xo-cli or connect to ssh and use host-data-xe source-query data-source=cpu(X).

      Will be a nice feature.
      Thanks!

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Thanks for your feedback 🙂

        How would you like to use those? Eg in terms of use cases

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          r0123456789 @olivierlambert
          last edited by

          @olivierlambert Thanks for the reply!

          I have some scripts that collect cpu usage data and record this information in a database and make grafana search for this data to generate consumption graphs in "real time"

          Capturar.PNG

          I tried to use netdata but when my hosts use 100% CPU netdata stop to collect and with netdata I can't see all CPU usage like xo-cli or "xe data-source=cpu"

          I want to stop using ssh and xo-cli and use just the rest api to collect all my data.

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            I see. RRD Parsing is costly though, I will discuss with @julien-f about this. Also adding @yann in the loop since we started some work about Open Metrics.

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              r0123456789 @olivierlambert
              last edited by

              @olivierlambert you guys are awesome!
              Thanks for thinking in the possibilite

              1 Reply Last reply Reply Quote 0
              • olivierlambertO olivierlambert moved this topic from Feedback and requests on

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post