Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fluentbit alerts for mimir #1044

Merged
merged 1 commit into from
Mar 5, 2024
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

This file was deleted.

28 changes: 17 additions & 11 deletions helm/prometheus-rules/templates/alerting-rules/fluentbit.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
creationTimestamp: null
labels:
{{- include "labels.common" . | nindent 4 }}
cluster_type: "management_cluster"
name: fluentbit.rules
namespace: {{ .Values.namespace }}
spec:
Expand All @@ -20,12 +19,10 @@ spec:
for: 10m
labels:
area: empowerment
cancel_if_outside_working_hours: "true"
cancel_if_apiserver_down: "true"
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
cancel_if_cluster_status_updating: "true"
cancel_if_scrape_timeout: "true"
cancel_if_outside_working_hours: "true"
severity: page
team: atlas
topic: observability
Expand All @@ -38,16 +35,13 @@ spec:
for: 10m
labels:
area: empowerment
cancel_if_outside_working_hours: {{ include "workingHoursOnly" . }}
cancel_if_apiserver_down: "true"
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
cancel_if_cluster_status_updating: "true"
cancel_if_scrape_timeout: "true"
cancel_if_outside_working_hours: "true"
severity: page
team: atlas
topic: observability
# This alert ensures our fluent-bit daemon sets are running on the management clusters nodes for customers that configured it.
- alert: FluentbitDown
annotations:
description: '{{`Fluentbit is down on node ({{ $labels.node }}).`}}'
Expand All @@ -56,12 +50,24 @@ spec:
for: 15m
labels:
area: empowerment
cancel_if_outside_working_hours: "true"
cancel_if_apiserver_down: "true"
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
cancel_if_cluster_status_updating: "true"
cancel_if_scrape_timeout: "true"
cancel_if_outside_working_hours: "true"
severity: page
team: atlas
topic: observability
- alert: FluentbitDaemonSetNotSatisfied
annotations:
description: '{{`Daemonset {{ $labels.namespace}}/{{ $labels.daemonset }} is not satisfied.`}}'
expr: kube_daemonset_status_number_unavailable{daemonset="fluent-logshipping-app"} > 0
for: 1h
labels:
area: kaas
cancel_if_cluster_status_creating: "true"
cancel_if_cluster_status_deleting: "true"
cancel_if_cluster_status_updating: "true"
cancel_if_outside_working_hours: "true"
severity: page
team: atlas
topic: managementcluster