Hi,
I have integrated alerts with slack and I want ssl expiry to show date/time in human readable format.
Currently the value with I am getting in slack is something like 5.023386e+06
My configuration alerts look like this.
alerts :
- alert: SSLExpiry
expr: probe_ssl_earliest_cert_expiry{job="blackbox"} - time() < 86400 * 60
for: 5m
labels:
severity: critical
value: '{{ $value }}'
annotations:
description: '{{ $labels.instance }} of job {{ $labels.job }} is SSL EXPIRING
SOON'
summary: Instance {{ $labels.instance }}, SSL Expiring Soon
Regards,
Jyotir