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

[Bug] Unified Alerting Not Working #855

Closed
celestialorb opened this issue Dec 8, 2022 · 5 comments
Closed

[Bug] Unified Alerting Not Working #855

celestialorb opened this issue Dec 8, 2022 · 5 comments
Labels
feature-request requests a new feature that currently isn't implemented in the project good first issue Good for newcomers help wanted Extra attention is needed triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@celestialorb
Copy link
Contributor

celestialorb commented Dec 8, 2022

Describe the bug
When enabling unified alerting for a Grafana deployment I still receive one alert for each replica of the deployment.

Version
v4.7.0

To Reproduce
Steps to reproduce the behavior:

  1. Enable unified alerting in the Grafana configuration spec.
  2. Create the Grafana instance with the operator with multiple replicas.
  3. Create an alert that will fire.
  4. Verify that multiple instances of the alert are received despite unified alerting being enabled.

Expected behavior
I expect that enabling unified alerting in the Grafana spec would provision a Grafana deployment/configmap with proper unified alerting.

Suspect component/Location where the bug might be occurring
I suspect this is being caused by not providing the ha_peers configuration under unified_alerting in the config map. If the operator can manage a service for the Gossip protocol and set that service to the ha_peers I believe that might resolve the issue. This should be similar to how the Helm chart solves it.

@celestialorb celestialorb added bug Something isn't working needs triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Dec 8, 2022
@pb82
Copy link
Collaborator

pb82 commented Dec 20, 2022

@celestialorb what Grafana version are you using? I believe it has to be at least v8.0.0. You can override the base image if Grafana that the operator deploys.

@celestialorb
Copy link
Contributor Author

@celestialorb what Grafana version are you using? I believe it has to be at least v8.0.0. You can override the base image if Grafana that the operator deploys.

I'm using Grafana 9.3.0.

@NissesSenap
Copy link
Collaborator

@celestialorb wasn't unified alerting deprecated in version 9?

We are not grafana maintainers so we don't know all possible grafana configuration options.
This to me sounds that we are missing a configuration value under: https://github.com/grafana-operator/grafana-operator/blob/master/documentation/api.md#grafanaspecconfigunified_alerting

I look at the docs and it seems like it's missing the ha_peers config that you mention: https://grafana.com/docs/grafana/latest/alerting/set-up/configure-high-availability/#enable-alerting-high-availability-in-grafana

To add this it's a simple fix and we are happy to take PR:s

@NissesSenap NissesSenap added triage/accepted Indicates an issue or PR is ready to be actively worked on. help wanted Extra attention is needed good first issue Good for newcomers feature-request requests a new feature that currently isn't implemented in the project and removed needs triage Indicates an issue or PR lacks a `triage/foo` label and requires one. bug Something isn't working labels Dec 28, 2022
@celestialorb
Copy link
Contributor Author

@celestialorb wasn't unified alerting deprecated in version 9?

We are not grafana maintainers so we don't know all possible grafana configuration options. This to me sounds that we are missing a configuration value under: https://github.com/grafana-operator/grafana-operator/blob/master/documentation/api.md#grafanaspecconfigunified_alerting

I look at the docs and it seems like it's missing the ha_peers config that you mention: https://grafana.com/docs/grafana/latest/alerting/set-up/configure-high-availability/#enable-alerting-high-availability-in-grafana

To add this it's a simple fix and we are happy to take PR:s

If I recall correctly, unified alerting was opt-in in Grafana 8 and then made the default in Grafana 9.

I can take a look at crafting together a simple PR for it.

@NissesSenap
Copy link
Collaborator

I'm like 100% sure that had read it somewhere but I guess I misunderstood it and after the grafana homepage update I'm unable to find anything about it more or less. Sorry about that.

Looking forward to your pr @celestialorb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request requests a new feature that currently isn't implemented in the project good first issue Good for newcomers help wanted Extra attention is needed triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

3 participants