|
272 | 272 | }, |
273 | 273 | ], |
274 | 274 | }, |
| 275 | + { |
| 276 | + name: 'Cilium Clustermesh', |
| 277 | + rules: [ |
| 278 | + { |
| 279 | + alert: 'CiliumAgentRemoteClusterNotReady', |
| 280 | + expr: 'count(cilium_clustermesh_remote_cluster_readiness_status < 1) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)), |
| 281 | + labels: { |
| 282 | + severity: 'critical', |
| 283 | + }, |
| 284 | + annotations: { |
| 285 | + summary: "Agent can't mesh with remote cluster.", |
| 286 | + description: "Agent can't mesh with {{$labels.target_cluster}}", |
| 287 | + }, |
| 288 | + 'for': '5m', |
| 289 | + }, |
| 290 | + { |
| 291 | + alert: 'CiliumAgentRemoteClusterFailing', |
| 292 | + expr: 'sum(rate(cilium_clustermesh_remote_cluster_failures[5m])) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)), |
| 293 | + labels: { |
| 294 | + severity: 'critical', |
| 295 | + }, |
| 296 | + annotations: { |
| 297 | + summary: 'Agent fails to mesh with remote cluster.', |
| 298 | + description: 'Agent fails to mesh with {{$labels.target_cluster}}', |
| 299 | + }, |
| 300 | + 'for': '5m', |
| 301 | + }, |
| 302 | + ], |
| 303 | + }, |
| 304 | + { |
| 305 | + name: 'Cilium Kvstoremesh', |
| 306 | + rules: [ |
| 307 | + { |
| 308 | + alert: 'CiliumKvstoremeshRemoteClusterNotReady', |
| 309 | + expr: 'count(cilium_kvstoremesh_remote_cluster_readiness_status < 1) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)), |
| 310 | + labels: { |
| 311 | + severity: 'critical', |
| 312 | + }, |
| 313 | + annotations: { |
| 314 | + summary: "Kvstoremesh can't mesh with remote cluster.", |
| 315 | + description: "Kvstoremesh can't mesh with {{$labels.target_cluster}}", |
| 316 | + }, |
| 317 | + 'for': '5m', |
| 318 | + }, |
| 319 | + { |
| 320 | + alert: 'CiliumKvstoremeshRemoteClusterFailing', |
| 321 | + expr: 'sum(rate(cilium_kvstoremesh_remote_cluster_failures[5m])) by (%s) > 0' % std.join(', ', (['source_cluster', 'target_cluster'] + $._config.alertAggregationLabels)), |
| 322 | + labels: { |
| 323 | + severity: 'critical', |
| 324 | + }, |
| 325 | + annotations: { |
| 326 | + summary: 'Kvstoremesh fails to mesh with remote cluster.', |
| 327 | + description: 'Kvstoremesh fails to mesh with {{$labels.target_cluster}}', |
| 328 | + }, |
| 329 | + 'for': '5m', |
| 330 | + }, |
| 331 | + { |
| 332 | + alert: 'CiliumKvstoremeshErrors', |
| 333 | + expr: 'sum(rate(cilium_kvstoremesh_kvstore_sync_errors_total[5m])) by (%s) > 0' % std.join(', ', (['source_cluster'] + $._config.alertAggregationLabels)), |
| 334 | + labels: { |
| 335 | + severity: 'critical', |
| 336 | + }, |
| 337 | + annotations: { |
| 338 | + summary: 'Kvstoremesh fails to mesh with remote cluster.', |
| 339 | + description: 'Kvstoremesh fails to mesh with {{$labels.target_cluster}}', |
| 340 | + }, |
| 341 | + 'for': '5m', |
| 342 | + }, |
| 343 | + ], |
| 344 | + }, |
275 | 345 | ], |
276 | 346 | }, |
277 | 347 | } |
0 commit comments