Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ getlint:
.PHONY: lint
lint: getlint
@mkdir -p /tmp/go-cache
@export GOCACHE=/tmp/go-cache && $(GOPATH)/bin/golangci-lint run --timeout=5m
@export GOCACHE=/tmp/go-cache && $(GOPATH)/bin/golangci-lint run --timeout=10m

mockgen: ensure-mockgen
go generate $(GOBUILDFLAGS) ./...
Expand Down
9 changes: 9 additions & 0 deletions pkg/handlers/webhookrhobsreceiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ func (h *WebhookRHOBSReceiverHandler) processAlert(alert template.Alert, isCurre
}

if !fleetNotificationRetriever.fleetNotification.LimitedSupport && !isCurrentlyFiring {
metrics.ResetResponseMetricFailure(config.ServiceLogService, fleetNotificationRetriever.fleetNotification.Name, alert.Labels[AMLabelAlertName])
return nil
}

Expand Down Expand Up @@ -477,6 +478,14 @@ func (h *WebhookRHOBSReceiverHandler) processAlert(alert template.Alert, isCurre
metrics.CountServiceLogSent(fleetNotification.Name, "firing")
}
metrics.ResetResponseMetricFailure(logService, fleetNotification.Name, alertName)
} else {
var logService string
if fleetNotification.LimitedSupport {
logService = config.ClustersService
} else {
logService = config.ServiceLogService
}
metrics.ResetResponseMetricFailure(logService, fleetNotification.Name, alertName)
}
} else {
if c.wasClusterInLimitedSupport {
Expand Down