scaphandre icon indicating copy to clipboard operation
scaphandre copied to clipboard

Support for other container runtimes than Docker

Open Bengrunt opened this issue 2 years ago • 3 comments

Problem

I'm trying to use scaphandre on an Openshift/OKD cluster that is not using Docker as the container runtime but CRI-O. Scaphandre seems to only support docker for its --containers option with the prometheus submodule.

For instance that's what I get on an OKD test cluster (4.12.0-0.okd-2023-02-04-212953), running CRI-O 1.25 and Kubernetes 1.25 on Fedora CoreOS 37 nodes:

root@scaphandre-bnl6l:/app# scaphandre -v 3 prometheus --containers
Scaphandre prometheus exporter
Sending ⚡ metrics
scaphandre::exporters::prometheus: 2023-02-15T15:06:27: Starting Prometheus exporter
Press CTRL-C to stop scaphandre
scaphandre::exporters: Couldn't connect to docker socket. Error: /var/run/docker.sock not found.

Solution

That would be great if scaphandre was somehow compatible with other container runtimes (I think there is a CRI standard nowadays?) so that it can work in any kind of K8s cluster.

I've got no clue how we could do that however TBH :)

Bengrunt avatar Feb 15 '23 15:02 Bengrunt

Hi !

Support for CRI-O can be added for 1.1 release. Would you be keen to test it once it's being developed ?

bpetit avatar Jun 07 '23 13:06 bpetit

Hi !

Support for CRI-O can be added for 1.1 release. Would you be keen to test it once it's being developed ?

Hello,

Of course, I would gladly do that.

Bengrunt avatar Jun 07 '23 14:06 Bengrunt

Hi,

Can we expect this to be ready for 1.1 release by september 22?

Artiach avatar Aug 31 '23 08:08 Artiach