Hello Sandeep,

When using Strimzi and Kafka I created a small app that parses the cert
file and pushes the validity period as a prom metric.

You can run the app periodically in a cron job, you would mount the secret
within the job pod and parse the file.

I was using prom push gateway for that but you can make it run within a
deployment and expose the metrics to prom as well.

Fares

Le jeu. 28 juil. 2022 à 04:42, Luke Chen <show...@gmail.com> a écrit :

> Hi Sandeep,
>
> AFAIK, Kafka doesn't expose this kind of metrics.
> I did a quick search, and found there's a similar request in Strimzi.
> https://github.com/strimzi/strimzi-kafka-operator/issues/3761
>
> Maybe you can help contribute it? Either to Kafka or to Strimzi? :)
>
> Thank you.
> Luke
>
> On Wed, Jul 27, 2022 at 11:28 PM Sandeep M <sunyar...@gmail.com> wrote:
>
> > Hi Team,
> >
> > I using Kafka with strimzi as kafka operator. I wanted to monitor kafka
> > certificate expiry. We have Rancher kubernetes management tool which has
> > built in Prometheus and Grafana. How could we monitor certificate expiry
> > with current setup.
> >
> > Regards,
> > Sandeep
> >
>

Reply via email to