Skip to content

Instantly share code, notes, and snippets.

@ties
Created August 7, 2020 12:31
Show Gist options
  • Save ties/d6b50b34837bce995bd8b1e582b7bf5a to your computer and use it in GitHub Desktop.
Save ties/d6b50b34837bce995bd8b1e582b7bf5a to your computer and use it in GitHub Desktop.
- name: ssl_expiry.rules
rules:
- alert: SSLCertExpiringSoon
expr: probe_ssl_earliest_cert_expiry - time() < 86400 * 7
for: 10m
annotations:
summary: "SSL certificate for {{ $labels.instance }} is about to expire."
labels:
severity: "warning"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment