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

Alerts not removed when relation is broken. #29

Open
dstathis opened this issue Nov 3, 2023 · 2 comments
Open

Alerts not removed when relation is broken. #29

dstathis opened this issue Nov 3, 2023 · 2 comments

Comments

@dstathis
Copy link
Contributor

dstathis commented Nov 3, 2023

Bug Description

If you remove a relation between a workload and grafana-agent, the alert rules for that workload will remain.

To Reproduce

  1. Relate grafana-agent to COS
  2. Relate grafana-agent to a workload (eg: zookeeper)
  3. Remove the previous relation
  4. Check the alerts in prometheus

Environment

                           juju info v0.1                            
┌──────────────┬────────────────────────────────────────────────────┐
│ jhack        │ 0.3.18.3                                           │
│ python       │ 3.10.12 (/home/dylan/repos/jhack/venv/bin/python3) │
│ juju-* snaps │  juju-wait │ 2.8.4~2.8.4 - 96 (stable)             │
│              │  juju      │ 3.1.7-072088c - 25251 (3.1/edge)      │
│ microk8s     │ MicroK8s v1.27.6 revision 6070                     │
│ lxd          │ 5.19                                               │
│ multipass    │ 1.12.2                                             │
│ multipassd   │ 1.12.2                                             │
│ os           │ Ubuntu 22.04.3 LTS                                 │
│ kernel       │ Linux 5.15.0-87-generic x86_64                     │
└──────────────┴────────────────────────────────────────────────────┘

Relevant log output

-

Additional context

No response

@lucabello
Copy link
Contributor

Note: this issue might be caused by Prometheus, so it should be investigated there first.

@sed-i
Copy link
Contributor

sed-i commented Aug 22, 2024

Could be because of the way subordinate relation data works: first to the leader and then out to prometheus.

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

No branches or pull requests

3 participants