GithubHelp home page GithubHelp logo

Comments (1)

wallrj avatar wallrj commented on July 24, 2024

Thanks @gbassinello

I want to build a Grafana dashboard using the Prometheus data source to list all ingresses that aren't managed by cert-manager.

Given that problem, I prefer your alternative suggestion, but I'm happy to change my mind if that turns out not to be viable.

List all ingresses using the kube_state_metrics kube_ingress_annotations metric that don't have a cert-manager annotation.

I tried it out locally

EDITOR=vi kubectl edit -n prometheus deployments.apps default-kube-state-metrics
    spec:
      containers:
      - args:
        - --metric-annotations-allowlist=ingresses=[cert-manager.io/issuer,cert-manager.io/cluster-issuer],secrets=[cert-manager.io/certificate-name]
kubectl get --raw /api/v1/namespaces/prometheus/services/default-kube-state-metrics:8080/proxy/metrics | grep annotation_cert_manager_io
kube_ingress_annotations{namespace="default",ingress="example-1",annotation_cert_manager_io_cluster_issuer="issuer-1"} 1
kube_secret_annotations{namespace="default",secret="example-1-tls",annotation_cert_manager_io_certificate_name="example-1-tls"} 1
kube_secret_annotations{namespace="samplewebhook",secret="samplewebhook-example-webhook-webhook-tls",annotation_cert_manager_io_certificate_name="samplewebhook-example-webhook-webhook-tls"} 1
kube_secret_annotations{namespace="samplewebhook",secret="samplewebhook-example-webhook-ca",annotation_cert_manager_io_certificate_name="samplewebhook-example-webhook-ca"} 1

It should be possible to construct the report from those metrics, right?

from cert-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.