Hi,
Can we configure alerts at the status panel?
Since we build the status panel for 8 servers to monitor them. For every 5-10 minutes, we are checking the dashboards manually, whether they are in good state or bad state.
We want to get alerts if one of the servers goes to RED state instead of going and see the panels manually.
Is there any way to send alerts to mails like that?
If not, can you please tell us are there any other ways to accomplish this.
Thank you.
1 Like
Hi,
Alerts are only supported using the graph panel right now.
One way of doing this as I’ve found working quite nice is to have specific dashboards for alerting and use other dashboards for looking more into details. In the detailed dashboards you can have your status panel for example.
Please let me know if this helps
Marcus
Hi @mefraimsson,
Thank you.
I understand that I’ll use the graph panels for configuring alerts.
Thank you
Hi Praneeth,
I may not be able to tell you the right way to do it, instead here’s a little workaround that worked for me.
I’m using Elastic Heartbeat v6.7.2 with Elasticsearch to monitor my services and Grafana v6.0.2 + Status Panel v1.0.9 for visualization.
Now, in my case, I was not able to see the tab for creating alerts on the status panel. So, when you click on the panel title for options -> More -> Panel JSON
and you should see the JSON for the panel.
Add this property at the root level in the JSON.
{
"alert": {
"conditions": [
{
"evaluator": {
"params": [
0.1
],
"type": "lt"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"A",
"10s",
"now"
]
},
"reducer": {
"params": [],
"type": "last"
},
"type": "query"
}
],
"executionErrorState": "alerting",
"for": "1m",
"frequency": "10s",
"handler": 1,
"name": "<<YOUR ALERT NAME>>",
"noDataState": "alerting",
"notifications": []
},
...
}
Tweak the query.params
, query.reducer.type
, frequency
, for
and name
values as per your needs.
Click on Update
and that should be it.
The conditions
part is especially important, so make sure to set the values correctly. Another way would be to create an alert on a Graph and copy the JSON from it.
1 Like