GithubHelp home page GithubHelp logo

Comments (5)

grobinson-grafana avatar grobinson-grafana commented on June 30, 2024

Hi! πŸ‘‹ How would you want Alertmanager to sort alerts in such case? Lexicographically by labels?

from alertmanager.

ricardogpsf avatar ricardogpsf commented on June 30, 2024

By number values, it’s a query of erros counting and the those values are numbers (integers, I think).
I already sort the query result by those count values on β€œLoki side”, so having no sorting in alertmanager side would make sense for that type of cases.

from alertmanager.

grobinson-grafana avatar grobinson-grafana commented on June 30, 2024

Hi! πŸ‘‹ I'm not sure what you mean by number values? Alerts in Alertmanager are basically a set of labels, annotations, a start time and an end time. That's the full set of data we can sort with, so we could sort newest alerts first as an alternative, for example.

from alertmanager.

ricardogpsf avatar ricardogpsf commented on June 30, 2024

Sorry, I used the wrong terms.
There is a value associated with the alert, no? Not at the alertmanager side, but related to the query we use to fire an alert.
Like, in a query that triggers an alert when DB CPU usage is above 80%, we would have a value associated to the alert that could be 95% and we can show it in the alert description. I know that value itself does not go to alertmanager side, but the Alerts in an alert group go in a certain order depending on the query executed, right?!
So would be possible to keep the original order that alerts go to alert manage would be helpful without sorting them when they are on alertmanager.
Let me know if I'm wrong in the way I understand the alertmanager behavior (probably I'm).
Again, Thanks for you time.

from alertmanager.

grobinson-grafana avatar grobinson-grafana commented on June 30, 2024

There is a value associated with the alert, no?

It's not a strict requirement from Alertmanager. But as mentioned, alerts that come from Prometheus need a query that returns some kind of value.

I know that value itself does not go to alertmanager side, but the Alerts in an alert group go in a certain order depending on the query executed, right?!

I'm afraid that's not the case. Alerts in Alertmanger are not ordered, and Prometheus does not send them in a deterministic order. In addition, alerts can come from multiple Prometheus servers at the same time (even in the same groups).

from alertmanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.