How can I monitor my apps certificate expiratin in grafana

Hi everyone,
I would like to know if I can monitor my application’s certifcate expiration on Grafana. For instance, the nginx certificates, my Java app etc. I am using loki and promtail.
Ive found this link which is explaining using telegraf, however, I want to know how I can achieve it using loki, promtail

Would appreciate if someone could give a tutorial on this, Thanks