+
Skip to content

Documentation for CRI-O metrics possible outdated #9311

Open
@thanos1983

Description

@thanos1983

I have spend 2 days trying to figure out how to use the CRI-O metrics with Prometheus.

I give up I can not figure it out. Either the documentation is deprecated or the configurations are.

I followed the instructions given here: tutorials/metrics.md.

The exporter is running:

$ kubectl get all -n cri-o-metrics-exporter --kubeconfig IaC/k8s/tf/kube/config
NAME                                          READY   STATUS    RESTARTS   AGE
pod/cri-o-metrics-exporter-56855d56c8-jcv6z   1/1     Running   0          7h27m

NAME                             TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)   AGE
service/cri-o-metrics-exporter   ClusterIP   10.200.131.115   <none>        80/TCP    7h27m

NAME                                     READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/cri-o-metrics-exporter   1/1     1            1           7h27m

NAME                                                DESIRED   CURRENT   READY   AGE
replicaset.apps/cri-o-metrics-exporter-56855d56c8   1         1         1       7h27m

The crio metrics configurations are in place:

$ cat /etc/crio/crio.conf.d/01-metrics.conf
[crio.metrics]
enable_metrics = true
metrics_port = 9090

I have added the scrape configurations on Prometheus and now I am getting the error:

Error scraping target: server returned HTTP status 404 Not Found

I do not know what I am missing. Is there anyone who maintains the metrics?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载