-
Notifications
You must be signed in to change notification settings - Fork 292
IH-615: move metrics collection out of RRDD #6016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IH-615: move metrics collection out of RRDD #6016
Conversation
2001e34
to
9ca88ac
Compare
a542c64
to
f8fdcfa
Compare
Encountered crashes with the previous version of the code, determined that the cause was removing deprecated xcp-rrdd calls, so reverted these and had to also leave HA-related metrics collection as is for now, it needs to be converted to use the message switch separately. This is currently finishing up XenRT testing (#205763) after some manual testing and looking good. UPD: BST+BVT passed |
Essentially, networkd is an rrdd plugin using protocol "v0". I think that much of the code in |
What did this involve? Opening xencenter and checking that all the metrics were still reported? (and check that they changed when adding traffic / cpu load) |
Several metrics collectors still rely on a similar function in xcp_rrdd, but plugins will use this factored-out version. Signed-off-by: Andrii Sultanov <andrii.sultanov@cloud.com>
It still currently reads from a file written to by networkd and deserializes the stats. Signed-off-by: Andrii Sultanov <andrii.sultanov@cloud.com>
…plugin Signed-off-by: Andrii Sultanov <andrii.sultanov@cloud.com>
Signed-off-by: Andrii Sultanov <andrii.sultanov@cloud.com>
Signed-off-by: Andrii Sultanov <andrii.sultanov@cloud.com>
Signed-off-by: Andrii Sultanov <andrii.sultanov@cloud.com>
f8fdcfa
to
aa631b9
Compare
Rebased on top of master, there were some dune/makefile changes that modified things around rrdd plugins. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have discussed moving the part of network_monitor_thread.ml (xcp-networkd) that ends up doing into the RRDs (the rx and tx counters) to the new RRD plugin daemon. We will leave the other stats (carrier, duplex, etc), which are read by xapi and put in its DB, in xcp-networkd.
I am approving this PR now so that we can merge it, but we should do the above relatively soon as well.
Moves out two metrics collectors out of RRDD into separate plugins:
Three more collectors are still in
xcp_rrdd.ml
, this is because memory-, HA-, and SR-cache-related metrics collection is tightly integrated with RRDD itself, exposing calls through RRDD bindings for XAPI to use. To convert these into plugins (and drop the collection-related code inxcp_rrdd.ml
, and stop linking to Xenctrl), these calls need to be done through standard message switch mechanism instead. This is for a future PR.Also:
Needs to be merged together with a corresponding spec repo PR, I will open it after XenRT testing completes (currently running BVT/BST) + also need to test manually