Commit 5b479cb5 authored by Labros Papadopoulos's avatar Labros Papadopoulos
Browse files

fix: skip ghost alerts

parent f6e2b887
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -78,6 +78,10 @@ public class AlertResource {
        Alert alert = alerts.get(0);
        String container = alert.getLabels().get("container");

        if (container == null || container.isEmpty()) {
            logger.warnf("Alert did not belong to hypo service");
            return Response.ok().build();
        }
        logger.infof("Received a new alarm from Grafana Loki for %s", container);
        logger.debugf("Received: %s", grafanaPayload.toJsonString());