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

Cilium clustermesh alerts #1347

Merged
merged 3 commits into from
Oct 23, 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
70 changes: 70 additions & 0 deletions cilium-enterprise-mixin/alerts/ciliumAlerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,76 @@
},
],
},
{
name: 'Cilium Clustermesh',
rules: [
{
alert: 'CiliumAgentRemoteClusterNotReady',
expr: 'count(cilium_clustermesh_remote_cluster_readiness_status < 1) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)),
labels: {
severity: 'critical',
},
annotations: {
summary: "Agent can't mesh with remote cluster.",
description: "Agent can't mesh with {{$labels.target_cluster}}",
},
'for': '5m',
},
{
alert: 'CiliumAgentRemoteClusterFailing',
expr: 'sum(rate(cilium_clustermesh_remote_cluster_failures[5m])) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)),
labels: {
severity: 'critical',
},
annotations: {
summary: 'Agent fails to mesh with remote cluster.',
description: 'Agent fails to mesh with {{$labels.target_cluster}}',
},
'for': '5m',
},
],
},
{
name: 'Cilium Kvstoremesh',
rules: [
{
alert: 'CiliumKvstoremeshRemoteClusterNotReady',
expr: 'count(cilium_kvstoremesh_remote_cluster_readiness_status < 1) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)),
labels: {
severity: 'critical',
},
annotations: {
summary: "Kvstoremesh can't mesh with remote cluster.",
description: "Kvstoremesh can't mesh with {{$labels.target_cluster}}",
},
'for': '5m',
},
{
alert: 'CiliumKvstoremeshRemoteClusterFailing',
expr: 'sum(rate(cilium_kvstoremesh_remote_cluster_failures[5m])) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)),
labels: {
severity: 'critical',
},
annotations: {
summary: 'Kvstoremesh fails to mesh with remote cluster.',
description: 'Kvstoremesh fails to mesh with {{$labels.target_cluster}}',
},
'for': '5m',
},
{
alert: 'CiliumKvstoremeshErrors',
expr: 'sum(rate(cilium_kvstoremesh_kvstore_sync_errors_total[5m])) by (%s) > 0' % std.join(', ', (['source_cluster'] + $._config.alertAggregationLabels)),
labels: {
severity: 'critical',
},
annotations: {
summary: 'Kvstoremesh fails to mesh with remote cluster.',
description: 'Kvstoremesh fails to mesh with {{$labels.target_cluster}}',
},
'for': '5m',
},
],
},
],
},
}
6 changes: 6 additions & 0 deletions cilium-enterprise-mixin/jsonnetfile.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": 1,
"dependencies": [],
"legacyImports": false
}

Loading