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

patch - adding label managed-by:coralogix-operator to alerts #26

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

OrNovo
Copy link
Contributor

@OrNovo OrNovo commented Jul 17, 2023

e.g. -

apiVersion: coralogix.com/v1alpha1
kind: Alert
metadata:
  labels:
    app.kubernetes.io/name: alert
    app.kubernetes.io/instance: alert-sample
    app.kubernetes.io/part-of: coralogix-operator
    app.kuberentes.io/managed-by: kustomize
    app.kubernetes.io/created-by: coralogix-operator
  name: standard-alert-example
spec:
  name: standard alert example
  description: alert from k8s operator
  severity: Info
  alertType:
    standard:
      filters:
        searchQuery: remote_addr_enriched:/.*/
      conditions:
        alertWhen: More
        threshold: 5
        timeWindow: FiveMinutes
status:
  active: true
  alertType:
    standard:
      conditions:
        alertWhen: More
        threshold: 5
        timeWindow: FiveMinutes
      filters:
        searchQuery: remote_addr_enriched:/.*/
  description: alert from k8s operator
  **labels:
    managed-by: coralogix-operator**
  name: standard alert example
  severity: Info

@OrNovo OrNovo requested a review from a team as a code owner July 17, 2023 08:32
@OrNovo OrNovo linked an issue Jul 17, 2023 that may be closed by this pull request
@OrNovo OrNovo requested a review from povilasv July 17, 2023 08:36
@OrNovo OrNovo merged commit 241b646 into main Jul 17, 2023
5 checks passed
@OrNovo OrNovo deleted the alerts-adding_label_managed-by branch July 17, 2023 10:49
@github-actions
Copy link
Contributor

🎉 This PR is included in version 0.1.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure Alerts are created with a label managed by
4 participants