Grafana: [Feature request] Add Alert support for singlestats

Created on 16 Dec 2016  ·  162Comments  ·  Source: grafana/grafana

Please include this information:

  • What Grafana version are you using?
    v4.0.2 (commit: v4.0.2)
  • What datasource are you using?
    Graphite

  • What OS are you running grafana on?
    Mac OS

  • What did you do?
    Went to a dashboard, clicked on a single stat and expected to find the "Alert" tab.

  • What was the expected result?
    I was expecting to see the "Alert" tab

  • What happened instead?
    The "Alert" tab was not present for the Singlestat. It is present for Graph though.

If it relates to alerting

  • An image of the test execution data fully expanded.
    screen shot 2016-12-16 at 02 28 33
arealerting typfeature-request

Most helpful comment

+1

All 162 comments

+1

+1

And tables, and the rest.

+1

+1 !!!!!! YES <3

+1 as well, this would be a fantastic addition!

+1 + alert on "If no data or all values are null" +alert "If execution error or timeout"

+1, I want to have alerts of off/on values

+1

+1
Also for table.

I assume the reason @pdf is downvoting the "+1" comments is because GitHub etiquette is now to upvote the main issue instead of adding "+1" comments. I've removed my comment in favour of an upvote.

Do we have an estimated release on when this will be added? I've added my "up vote".

+1

+1

Making something that should be singlestat into a graph just to add alerts is really really ugly :(

@khou Agreed! Our current workaround is to have a second dashboard with graph versions of our single stats with alerts on.

+1

Alerts for tables will be good too, I think, because of group by hostname, for example:)

+1

With 83+ upvotes it is surprising this isn't in the next milestone.

I agree with you playqdrew...

I've added my upvote on this as well. Alerts should be available for ALL stock panels in Grafana. After upgrading to 4.3.2, I see it's still not an option.

When can we expect this to be added to the next milestone? I see it's not on the 4.4.0 milestone.

+1

One more vote from my side. +1, would be nice to have Alerts if null r bellow certian values for the SingleStat

+1

Upvoted.
Alerts on a single stat would be boss, like disk space.

I need it

+1

Sorry for the additional notification folks, but this is a request for a member of the Grafana GitHub org to please lock this thread to further comments until a time when it is being considered for implementation.

The number of +1 comments doesn't provide any value to the conversation but still notifies every person subscribed. A counter argument could be to tell me to unsubscribe since I don't want to receive those notifications, however I do want notifications if/when this feature is to be implemented.

Those wanting to up vote the issue please use the reactions on the original post, see https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments for more info.

@bergquist can we expect this feature in 5.0?

@yesoreyeram I would love to say yes but it looks like its gonna be tight.

Downloaded beta 5.0 and it´s not on it :(

really? It's such a requested feature yet it's still not made it in. Wow.

This is the second most requested feature on the GitHub repo when sorted by 👍 . Real shame this isn't being treated with higher priority.

This addition is a no-brainer, guys. Hopefully it's not super hard to implement, but it's a pretty high priority issue.

👍

Hoping for this feature to be implemented ASAP

+1 Let do that

Surprised to see that alerting is not possible for single stat. Essential part! Not a nice to have, a need to have!

+1

+1

+1

Please can someone lock this thread, the number of +1 comments is getting frustrating. It is the second most 👍 issue in the repo, so it's pretty obvious how important it is to everyone and it doesn't need any more voting.

Every time I get a notification about the issue I get excited that it is actually being worked on, but then I get sad again when I just see another +1.

+1

Can we not do the +1 comments pleeease??

Note: You are e-mailing hundreds of people by commenting on this issue!

If you just want to show your support and upvote this feature request, please click a "Thumbs up" reaction on costimuraru's original issue description above.

(and my apologies for this e-mail)

+1

+1

Alert on singlestat is nice to have. Especially when you have dozen of servers to monitor.

Unfortunately, it seems that Alerts exist only on Graphs, and if we do not have Alert on Singlestat and other panels in most of our use cases, Grafana Alerting is not well suited and we have to use another component for Alerting (like Prometheus Alertmanager)

No one assigned? No Milestone? For one of the most demanded features (Alert on Singlestat)? is it really possible?

Why such a desired feature not implemented since end of 2016? Even no comments about its status.

does anyone knows a workaround ?
i tried to use graph to monitor status of a windows service and use an alert on it but it doesn't seem to work

+1

@flenoir The workaround we're using is to have a separate dashboard for alerting, and create numerous "Graph" Meters, and set them all to Display -> Mode -> "Single" making it like a bar chart.

We can then (finally) set an alert. I really don't like having to have a separate page with duplicated stats, but as far as I'm aware, it's the only way at the moment.....

@flenoir If you are using Grafana together with Prometheus I recommend that you take a look on Alertmanager, it has much more alert configuration then Grafana.

+1, SingleStat alert for services status(Health/Unhealthy), server status(up/down)

+1 for this... no reason not to have it

+1

+1

+1

At this point, this issue feels like some meta-joke about the GitHub community, and I'd almost vote against locking it.

I don't know whether to laugh or cry @jareware

OMG, since 16.dec.2016 still no alerts available for tables and single stats...
Please, its time to add them....

I just want to know anybody looking into this ?

Graffana support looks death

seems for me like the whole grafana development is dead...

We get new versions of grafana, but there are almost since 2 years not a single new feature... :-)

Cheers

Are you serious? There's been new features nearly every release and in the last two years, grafana has changed dramatically. Just today they released 5.3 with yet even more new features. They may not be the features you want, but to say they aren't releasing new features is just plain ignorant.

If those complaining are really concerned about not having certain features, I'd highly suggest you consider supporting the product rather than criticizing the _open source_ version.

Features that you want not coming fast enough? Sign up for Enterprise to help influence the future roadmap then. https://grafana.com/enterprise

@calebtote , I'm using your hosted grafana cloud and I don't have this feature ! Is it normal ?

+1

Hi, I dont know if you have seen it, but they have at least planned it for future releases :)

Quote from: http://docs.grafana.org/alerting/rules/ (under Rule Config)
"Currently only the graph panel supports alert rules but this will be added to the Singlestat and Table panels as well in a future release."

Would be great if the alerting system of grafana improves a bit more - everything else is awesome.

I raised a request for conditional alerts here and even this issue is very important to be solved to get the alert system right.

Btw, I just came to know from the website that Grafana 6 is to be shipped on Feb. Any plans to include this in that? Thanks.

+1

+1

@torkelo Any news on this?

+8000

+1

Seriously, can we just lock this please @torkelo @bergquist ?

Whats the problem with implementing this?

Nothing @KawaiDesu someone just needs to do it at some stage, and obviously there aren't enough resources for alerting work atm. I just want to stop the +1 spam in my inbox.

+1
I would like to have support for SingleStat alert for the better view for my services status when its working and when it's not like ((Health/Unhealthy), (up/down)). Though I can achieve this with Graphs but I would like to have the high-level view for my support team :)

+1

+1

+1

@khou Agreed! Our current workaround is to have a second dashboard with graph versions of our single stats with alerts on.

Nice idea. One problem is clicking on the alert will navigate to secondary dashboard which is not desirable. Have you found a way to overcome this.
Also I was thinking of adding graph panels in same primary dashboard and hiding them. Is there a provision to do the same in grafana?
Thanks,
Sunil

wow, exactly what i need !
to get alerts from SingleStat and table panel :)

+1

+1

+11111

+1

It's curious to me that this isn't on any of your road maps. I think I'm in a similar situation to a lot of others where I don't sit in a big room with monitors on the walls so we can all see the status of what we're monitoring. My team is remote and we don't have the time to sit and look at a dashboard all day. The dashboard gets checked probably in the morning and a few other times during the day but other than that we require alerts to know when it's time to look at it.

I understand that resources are scarce and it's hard to find the time to implement a feature like this. But I wanted to take the time to explain this important use-case.

I would like to convince my company to use Grafana but without the ability to alert on a singlestat or a table it's a non-starter (understand also that this would be a paid support installation for a relatively large company).

Again I know how things get prioritized and how one has to make a decision as to what is, and what is not on the roadmap. But I was surprised that I couldn't alert like this, and shocked to find that it isn't even on the roadmap. So I wanted take the time here to hopefully convince you to move it higher up the priority list.

Really, the company should be able to contribute few days of its own developers time to implement the alert and contribute it back. It's open source, after all.

+1

+1

Singlestat is being rewritten, alerting will follow - I ask again that we lock this issue to contributors until such time as there's new information to report.

+1

+1

+1

+1

+1

For heaven's sake, please add this!

Sorry to disturb but there are 91 people that would like to follow this thread and be notified when actual progress is being made. If you could avoid to keep writing +1 comments, swearings or similar I think it would be better for everyone. Those comments also don't help in speeding up the development, in case it wasn't clear...

EDIT: 91 is the number of participants, not subscribed people

actually that would be a nice thing to give people tools to add alerts in custom panels

+1

+1

We do need singlestat alert button and sound. +1

+1 this would be yuge

I searched for a while why the "Alerts" tab didn't appear and thought that my Grafana was bugged. Now I stumble upon this thread from 2016 stating that it's "normal" not being able to put an alert on single stats ? That's crazy!

Really hope you'll put this basic and needed feature on your roadmap asap. It's so basic that I don't understand why it's not enabled for this particular event.

I searched for a while why the "Alerts" tab didn't appear and thought that my Grafana was bugged. Now I stumble upon this thread from 2016 stating that it's "normal" not being able to put an alert on single stats ? That's crazy!

Really hope you'll put this basic and needed feature on your roadmap asap. It's so basic that I don't understand why it's not enabled for this particular event.

Quote all, it's borderline embarassing missing a feature that's basically given for granted from people exploring the potential of grafana and it turns to completely awkward when the explicit request for it it's still pendig after THREE YEARS
geez

You folks should really dial your tone down; this is open-source software that you get for free, nobody owes you anything.
If you're missing a feature so dearly, either contribute to the project or feel free to pick a different one.

I appreciate the sentiment @stefanotorresi but I suspect you're shouting into the wind.

To be fair not everyone has the skillset to contribute and yes its free but when you state on your website "Currently only the graph panel supports alert rules but this will be added to the Singlestat and Table panels as well in a future release" I think its ok for people to start getting a bit impatient when it doesn't even appear to be on the roadmap still

You folks should really dial your tone down; this is open-source software that you get for free, nobody owes you anything.
If you're missing a feature so dearly, either contribute to the project or feel free to pick a different one.

That’s not entirely true. I’m a paying customer of Grafana Enterprise. I’ve raised this request through my CSM as well.

From https://github.com/grafana/grafana/pull/21416#issuecomment-572551160:

The current plan is to make alert rules it's own standalone thing (so not created as part of any panel or dashboard)

I don't see why this issue hasn't been closed, though, this being the case...

+1 basic and expected!

+1 Very much needed for us too.

+1

This thread is epic.

On 1/21/20, malanvaneck notifications@github.com wrote:

+1

--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/grafana/grafana/issues/6983#issuecomment-576861058

Thanks to ALL the +1 comments, I finally unsubscribed from this post and will not get any updates anymore.

Which is a pity because I do want to know when they will fix this.

Many thanks to everybody wo gave a +1 for letting me make this decision. This is NOT how issue tracking of github works. you have the thumb up to let everybody know that you also wants this feature.

Kind regards

Jan

Thanks to ALL the +1 comments, I finally unsubscribed from this post and will not get any updates anymore.

Which is a pity because I do want to know when they will fix this.

Many thanks to everybody wo gave a +1 for letting me make this decision. This is NOT how issue tracking of github works. you have the thumb up to let everybody know that you also wants this feature.

Kind regards

Jan

+1

this is gold 😂

Any news regarding the request?

The request on Github exists since 2016, it seems people need it.

It would be really helpful if the alarms are added not only into the Singlestats, but also for “Table”, “Gauge” and everything else.

just for fun ==> +1 sorry - hope this stays the last comment EVER!

It would be very nice to have it. +1 also....

hope for it until the end of the word

My promotion at work depends on this feature 😂

@djbrunoatimix that's great, so you have a perfect motivation to develop this feature. Go code! You will earn your promotion and gratidue of people in this feature request.
You can start at https://github.com/grafana/grafana/blob/master/CONTRIBUTING.md

+1

waiting since 2016.

wondering have any one figured out any workaround for this?

waiting since 2016.

wondering have any one figured out any workaround for this?

Just checking back here after abandoning Grafana a year ago to see if there's been a change. Yes, there's a workaround. Use a different product.

I used this for visualizing data from Elasticsearch but without this alerting it's not very useful. See my comment above here.

Since I was only connecting to Elasticsearch, it was straight forward to just go with Kibana paired with Elastalert for my needs.

Of course, Grafana looks much nicer than Kibana, and Elastalert is way more tedious to setup. But at least it affords literally the most basic alerting feature.

i think workaround is just to have a small tiny out of sight graph panel(with the alert) and a corresponding big singlestat panel together.

I can't believe it is still not a feature.

i think workaround is just to have a small tiny out of sight graph panel(with the alert) and a corresponding big singlestat panel together.

It's not really a good workaround for us, because if you want to change the corresponding metric, you have to change 2 panels. And when you have many graphs on different boards, grown over time and changed by different developers, it's easy to forget the change on a panel.

+1

+1

UP!!! 4 Year !!!!
But adding Singlestat or Gauge is not such a difficult problem!

Developers, you could take 2 steps:

  1. Give users what they want
  2. Recycle alerts as you want and then roll out the update

But you only feed with promises!

OMG it's not implemented yet1?

+1
+1
+1
...

This hasn't been added? Any workarounds? Pretty embracing trying to make a professional implementation to ship and for getting alerts a second dashboard to hide all these graphs is needed

Please add it

+1 for Singlestats
+1 for Gauge
+1 for Table

my workaround is to change a Gauge inside a Graph with this configuration,

image

that permits the use of alerts

morphing this

image

to this

image

its long opened

4 years for this!?

still wait this feature. +1

+1

+1

+1

Getting endless +1 from this thread for years finally got me tired, unsubscribing and migrating...

Dear github newbs. Your +1's are annoying since they trigger an email to all followers without contributing anything new to the discussion. If you only want to add emphasis, please instead add to the count of thumbs up in the original message. [cue onslaught of hilarious "ironic" +1 messages]

Dear github newbs. Your +1's are annoying since they trigger an email to all followers without contributing anything new to the discussion. If you only want to add emphasis, please instead add to the count of thumbs up in the original message. [cue onslaught of hilarious "ironic" +1 messages]

+1

I just found a workaround, which make this issue more ridiculous since the problem is "only" the tab "alert" who isn't display for singlestat panel (or other kind of panel)

If you write the JSON model with the alert and a singlestats, you can setup the alert and it's just works (I sent alert to slack with image)
image

Of course the threshold isn't automatically setup but you can set it manually

EDIT: Basically you can configure the panel with a graph, edit the json model and change "type": "graph" to "type": "stat"

dear developers we waiting 4 years.

+1

Still figuring some major aspects, but in broad strokes:

  • Alert definitions become their own objects/views (and then panels will be able to subscribe to them, or their instances). Largely for https://github.com/grafana/grafana/issues/7832
  • Alert definitions can create multiple alert instances. For example, host=* could be per-host alerts.

From that, the parts relevant to this:

  • Have server side expressions that reduce time series data to single stats, and be able to display them and create conditions.
  • Allow already reduced data as alerting input

So there will be alerting on queries that return a single number, or multiple numbers with key/value labels that can be alerted on, and then can also be visualized. But it will flip the relationship some so it is not quite alerting on single stat _panels_, since alerts will not be tied directly one-to-one to panels.

Some ugly pocs:

Alert on already reduced data, alerts per state/country (where countByState would the response from a SQL avg(value) group by state where ... or something like a prom instant vector query:
image

Alert on two time series queries (different time periods) and compare them against thresholds (per state):
image

Those "expression" boxes above do not manipulate the data, but rather adds data to the response. So using the previous example "F" would be the condition, and visualizing that (to work within current poc constrains). The "eye/hidden" icon in this case isn't disabling the queries, it is just not having them to sent to the front end (for now).

+1

How many years has it been? Four, it has been four years since this was requested ...

Even though singlestat has been replaced by stat I still need this - I am trying to use it to gauge response codes from sites and send me a notification when there is an issue with them

Wow. I cannot believe this is already 4 years old :D Sad.

+1

happy birthday to singlestat alerts request !

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yuvaraj951 picture yuvaraj951  ·  3Comments

sslupsky picture sslupsky  ·  3Comments

Azef1 picture Azef1  ·  3Comments

tuxinaut picture tuxinaut  ·  3Comments

jackmeagher picture jackmeagher  ·  3Comments