@olivierlambert Uh very nice
now I got something to play with in the evening
I'll let you know once I've created a PoC
Best posts made by jmara
-
RE: Prometheus SD through REST API
-
Prometheus SD through REST API
Hi,
I was wondering if we could get a REST API Endpoint to discover vms via the prometheus build-in http_sd?
As a starting point it would be nice the get the ips and pool association of vms through the
/vmscall so that it would be possible to write a wrapper script to match the http_sd format.Or is this possible and I haven't found the correct fields yet?

Cheers,
Jan
Latest posts made by jmara
-
RE: Xen Orchestra Container Storage Interface (CSI) for Kubernetes
@nathanael-h There should be no need to use an access token, because:
a) the personal account does not have access to the vates repo and can therefor not grant any privileges
b) isxenorchestra-csi-drivera public repo and all assets are public availableThe only valid point can be rate limits but as this test setup usually does not invoke a massive load of docker pulls it should be neglectable.
@thasianxi
It looks like a mixup, the Repo / Deployment refers to the github repository name as docker image which is usually the case. Unfortunatly the packages (which are created have a different name) can you replaceghcr.io/vatesfr/xenorchestra-csi-driver:edgewithghcr.io/vatesfr/xenorchestra-csi:edgein the manifest and retry?Cheers
Jan M. -
RE: Xen Orchestra Container Storage Interface (CSI) for Kubernetes
Great stuff, looking forward and will try the CSI in the next couple of weeks

@bvitnik There is an old CSI for xcp-ng (5 years old) which directly talks to the Xen-API, but I'd rather have a middleware which as @olivierlambert already stated has ACL's and security build-in.
Eventually you will end up in a broken xen cluster because you have a k8s node with cluster wide privileges to the XenAPI.@olivierlambert Is there any loose roadmap for the CSI?

Cheers,
Jan -
RE: Prometheus SD through REST API
@olivierlambert Uh very nice
now I got something to play with in the evening
I'll let you know once I've created a PoC -
RE: Prometheus SD through REST API
@olivierlambert As said, I would be a starting point if the fields of the
/vmscall will be extended to include ipaddesses, pool_name/id and maybe host_affinity -
RE: Prometheus SD through REST API
@olivierlambert sure its a new service discovery plugin in the prometheus core which scrapes http endpoints:
https://prometheus.io/docs/prometheus/latest/http_sd/It requires this json format:
[ { "targets": [ "<host>", ... ], "labels": { "<labelname>": "<labelvalue>", ... } }, ... ] -
Prometheus SD through REST API
Hi,
I was wondering if we could get a REST API Endpoint to discover vms via the prometheus build-in http_sd?
As a starting point it would be nice the get the ips and pool association of vms through the
/vmscall so that it would be possible to write a wrapper script to match the http_sd format.Or is this possible and I haven't found the correct fields yet?

Cheers,
Jan -
RE: vCPU overcommitment stats
@olivierlambert ah good to know
thats fine I'll take a look at the metrics maybe I'll write a small rrd stats pusher script as an interim solution for my usecase
until XO6 is available.Thanks for letting me know

-
RE: vCPU overcommitment stats
@olivierlambert I'll check later this afternoon, as the loads keeps increasing through the day and let you know if the counter moves.
Should I file a feature request for XOA as support ticket to get the counter into the stats section? Might be an interesting counter for others as well.
-
RE: vCPU overcommitment stats
@olivierlambert yeah i thought so too
is there any way to visualize this in XOA/netdata?
