Hi,

On 10/23/20 5:54 PM, [email protected] wrote:
> Hello my friends.
> I'm using ribbybibby <https://github.com/ribbybibby>/*ssl_exporter
> <https://github.com/ribbybibby/ssl_exporter>  *for checking ssl expiry
> for some services. All works fine  but I would like to add more
> information to the slack message. Specifically, add to the messages
> instance on which the certificates expire.
> Now the slack receives messages with the name of the alert, the number
> of instances with expiring certificates and a link to the prom. I'm
> trying to change the config but to no avail so far.
> ```
>   - alert: ssl_cert_expire
>     expr: ssl_cert_not_after{ - time() < 86400 *7
>     for: 2m
>     labels:
>       severity: 'warning'
>     annotations:
>       title: 'Warning: SSL cert will expire soon for the site (instance
> {{ $labels.instance }})'
>       description: 'SSL cert expires in 7 days\n  VALUE = {{ $value
> }}\n  LABELS: {{ $labels }}'
> ```

I think we would need some more details in order to help:

1) Can you verify the PromQL expression (there seems to be a "{" too
much or something else missing)?
2) Can you share an example result from your PromQL?
3) Can you show your Alertmanager config, especially the slack receiver
part (be sure to delete any secrets)?
4) Can you verify that your config reloads of Prometheus and
Alertmanager have been successful? Try checking the logs (stderr) and/or
the config metrics.

Kind regards,
Christi

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/8a31234f-87c1-863f-3325-67e420f96100%40hoffmann-christian.info.

Reply via email to