GDATASoftwareAG / Graylog-Plugin-AlertManager-Callback

A plugin for Graylog which provides the possibility to send alerts to the Prometheus AlertManager API.
MIT License
23 stars 5 forks source link

Alerts disregarded when condition grace set to zero #9

Closed aither64 closed 5 years ago

aither64 commented 5 years ago

When condition grace in graylog is set to zero, the payload sent to alertmanager contains startsAt and endsAt set to the same time. Alertmanager seems to disregard these alerts. You could say that they are already resolved anyway, so it makes sense.

Would it be possible to always set endsAt at least one minute to the future?

StefanHufschmidt commented 5 years ago

@aither64 nice finding. Sorry for the late answer. I've requested @knackaron to fix the failing test and add a test for the behavior you described.

StefanHufschmidt commented 5 years ago

@aither64 we've just released a hotfix related to this issue. It should be fixed now.