Comments (5)
Hi! π How would you want Alertmanager to sort alerts in such case? Lexicographically by labels?
from alertmanager.
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.
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.
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.
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)
- Go stdlib vuln - please upgrade go version HOT 4
- AlertManager not respecting repeat_interval timer setting on duplicate alert HOT 1
- `amtool` ZSH completion is broken
- Prometheus Alertmanager not sending email notifications HOT 3
- Alerts are not triggering to its target communications HOT 2
- [UI] Feature: Localtime / Timezone option
- multiple peers send alert that should only be sent once after failed notify attempt HOT 4
- Alertmanager send resolved notification when problem not solved HOT 3
- Cannot send alerts to multiple receivers simultaneously using matchers field. HOT 8
- Unable to change time zone in Grafana Alerting Notification Template (Always in UTC) HOT 1
- bad response status 404 Not Found HOT 1
- Task: Improvements to silences
- Work around PrometheusOperatorSyncFailed, integration=opsgenie, max_runes=130? HOT 1
- config.SecretURL type returns Json.Unmarshal() error which can expose the secret url. HOT 1
- amtool does not have a way to specify a time to test with. HOT 4
- Support time_interval testing with amtool config routes test HOT 2
- AlertManager doesn't send alert to Slack HOT 1
- Docker image prom/alertmanager:v0.27.0 fails to parse webhook_url_file from msteams_config HOT 2
- AlertManager doesn't send some of alerts to Pagerduty HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alertmanager.