Skip to content

Conversation

@balous
Copy link
Contributor

@balous balous commented Oct 21, 2024

This PR adds two groups of rules:

  • Cilium agent clustermesh alerts to detect when agent has problems to mesh with remote clusters
  • Cilium kvstoremesh alerts to detect when kvstoremesh component has problems to cache remote cluster's identities

@balous balous requested a review from a team as a code owner October 21, 2024 05:28
@balous balous changed the title Cilium clustermesh alert Cilium clustermesh alerts Oct 21, 2024
Copy link
Member

@Dasomeone Dasomeone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @balous, thanks for another contribution to this mixin, and apologies for the delay in getting a response :)

We've recently been working on moving over our linting from Drone CI to Github Actions and it appears a few steps are no longer included, so I've manually ran the linting for this change which highlighted a few issues that need to be addressed.
If you want to reproduce, you can install mixtool yourself and run mixtool lint mixin.libsonnet

mixtool lint mixin.libsonnet 
[alert-severity-rule] Alert 'CiliumAgentRemoteClusterNotReady' severity must be 'warning', 'critical' or 'info', is currently 'high'
[alert-description-missing-rule] Alert 'CiliumAgentRemoteClusterNotReady' must have annotation 'description'
[alert-summary-templating] Alert CiliumAgentRemoteClusterNotReady annotation 'summary' must not use templates
[alert-summary-style] Alert CiliumAgentRemoteClusterNotReady annotation 'summary' must start with capital letter and end with period, is currently 'Agent can't mesh with {{$labels.target_cluster}}'
[alert-severity-rule] Alert 'CiliumAgentRemoteClusterFailing' severity must be 'warning', 'critical' or 'info', is currently 'high'
[alert-description-missing-rule] Alert 'CiliumAgentRemoteClusterFailing' must have annotation 'description'
[alert-summary-templating] Alert CiliumAgentRemoteClusterFailing annotation 'summary' must not use templates
[alert-summary-style] Alert CiliumAgentRemoteClusterFailing annotation 'summary' must start with capital letter and end with period, is currently 'Agent fails to mesh with {{$labels.target_cluster}}'
[alert-severity-rule] Alert 'CiliumKvstoremeshRemoteClusterNotReady' severity must be 'warning', 'critical' or 'info', is currently 'high'
[alert-description-missing-rule] Alert 'CiliumKvstoremeshRemoteClusterNotReady' must have annotation 'description'
[alert-summary-templating] Alert CiliumKvstoremeshRemoteClusterNotReady annotation 'summary' must not use templates
[alert-summary-style] Alert CiliumKvstoremeshRemoteClusterNotReady annotation 'summary' must start with capital letter and end with period, is currently 'Kvstoremesh can't mesh with {{$labels.target_cluster}}'
[alert-severity-rule] Alert 'CiliumKvstoremeshRemoteClusterFailing' severity must be 'warning', 'critical' or 'info', is currently 'high'
[alert-description-missing-rule] Alert 'CiliumKvstoremeshRemoteClusterFailing' must have annotation 'description'
[alert-summary-templating] Alert CiliumKvstoremeshRemoteClusterFailing annotation 'summary' must not use templates
[alert-summary-style] Alert CiliumKvstoremeshRemoteClusterFailing annotation 'summary' must start with capital letter and end with period, is currently 'Kvstoremesh fails to mesh with {{$labels.target_cluster}}'
[alert-severity-rule] Alert 'CiliumKvstoremeshErrors' severity must be 'warning', 'critical' or 'info', is currently 'high'
[alert-description-missing-rule] Alert 'CiliumKvstoremeshErrors' must have annotation 'description'
[alert-summary-templating] Alert CiliumKvstoremeshErrors annotation 'summary' must not use templates
[alert-summary-style] Alert CiliumKvstoremeshErrors annotation 'summary' must start with capital letter and end with period, is currently 'Kvstoremesh fails to mesh with {{$labels.target_cluster}}'
2024/10/22 13:04:14 failed to lint the file mixin.libsonnet: 20 lint errors found

@balous balous force-pushed the cilium-clustermesh branch from 4a5cb40 to f44fd44 Compare October 23, 2024 05:32
@balous
Copy link
Contributor Author

balous commented Oct 23, 2024

Fixed.

Copy link
Member

@Dasomeone Dasomeone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for making the changes!

@Dasomeone Dasomeone merged commit b976154 into grafana:master Oct 23, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants