Skip to content

Commit

Permalink
Remove tls expiry warning variable
Browse files Browse the repository at this point in the history
  • Loading branch information
drmatthews committed Jan 2, 2024
1 parent 0a12539 commit 13addae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions roles/monitoring_server/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ monitoring_server_smtp_password: ""
monitoring_server_smtp_start_tls: "false"
ssl_trust: "*"

monitoring_server_tls_expiry_warn_days: "140"

monitoring_server_hostname_extractor: "ansible_host"

monitoring_server_alertmanager:
Expand Down
2 changes: 1 addition & 1 deletion roles/monitoring_server/templates/prometheus_rules.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ groups:
- name: tls-expiry
rules:
- alert: SSLCertExpiringSoon
expr: probe_ssl_earliest_cert_expiry - time() < 86400 * {{ monitoring_server_tls_expiry_warn_days }}
expr: probe_ssl_earliest_cert_expiry - time() < 86400 * 140
for: 1m
labels:
severity: warning
Expand Down

0 comments on commit 13addae

Please sign in to comment.