robusta-dev / robusta

Kubernetes observability and automation, with an awesome Prometheus integration
https://home.robusta.dev/
MIT License
2.57k stars 252 forks source link

Grafana annotations don't work? #1410

Open nice-pink opened 5 months ago

nice-pink commented 5 months ago

Describe the bug I set up the add_pdeployment_lines_to_grafana in values.yaml but can't get it running. I might have misconfigured it.

To Reproduce This is the relevant part of the values.yaml.

The slack notifications work, but the annotations don't.

customPlaybooks:
- triggers:
    - on_pod_crash_loop: {}
    - on_pod_oom_killed: {}
    - on_container_oom_killed: {}
    # - on_deployment_update: {}
  actions:
    - resource_babysitter: {}
  sinks:
    - slack
- triggers:
    - on_daemonset_all_changes: {}
    - on_statefulset_all_changes: {}
    - on_daemonset_all_changes: {}
    - on_pod_create: {}
    - on_pod_delete: {}
  actions:
    - add_deployment_lines_to_grafana:
        grafana_api_key: "{{ env.GRAFANA_API_KEY }}"
        grafana_dashboard_uid: GRAFANA_DASHBOARD_ID
        grafana_url: "http://grafana.ops.svc.cluster.local:80"
        cluster_name: "{{ env.CLUSTER_NAME }}"

Expected behavior I don't see any annotations (deployment_lines) in the dashboard.

Desktop (please complete the following information):