swag metrics and expiration dates #21
-
Hello, I’m currently using SWAG and I’d like to integrate it into my observability stack.
Is there already a module, exporter, or configuration available for this purpose? Thanks for your support! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
swag is just nginx, if you can do it in nginx you can do it with swag. as to recommending a way to verify certificate expiration, letsencrypt certs are good for 90 days, none of us chase this info because swag automatically renews it before expiration, so we just don't care when it expires. |
Beta Was this translation helpful? Give feedback.
I realize this is not why you're here, but I'll let you know anyway. That error should not happen in SWAG unless you manually broke things in a major way. SWAG is designed to keep only one certbot/acme account. If you're getting that error, I suggest nuking the /config/etc folder and starting over because that error means something broke so bad that none of the assumptions SWAG's cert renewal logic makes are accurate anymore.
SWAG's certbot logic is pretty well tested at this point. The only times folks have failed renewals are when either they copy/move/restore the config folder incorrectly (invalidating the symlinks certbot uses) or they make a change to their dns.
In any case, promethe…