Monitor certificates in specific directories on end points (linux and windows) using grafana cloud

Hi all,
I have a use case where I am thinking of. Basically Consider I have some certificates placed in my ubuntu system in private network and I want to monitor those certificates expiry and stuff using Grafana Cloud. How can I achieve this use case. Primarily whats coming in my mind was to set up grafana agent on end point but question is how it will be used to monitor certificate expiry and stuff.
If some one can guide me how to do this. This will be a great favor indeed and value added to the use case which I want to achieve using Grafana Cloud.

Thankyou

Looking Forward to seek help

Awais