Summary status for different metrics

Hello.
I have a task:
there are 2 metrics:

  1. processor load
  2. used memory
    I need to have a summary status for both parameters:
    if parameter 1 is less than 80% (true)
    AND
    parameter 2 is less than 80% (true)
    then the status of the resulting panel is GREEN
    if one of the parameters is false, then RED
    if both of the parameters are false, then RED

Is this possible? How can I do this?
I have several data sources: Zabbiks and ElastichSearch. Can I solve this problem for one of them or both?

Hi,

It depends on what data source your using. So what data source are you using?

Marcus

I have several data sources: Zabbix and ElastichSearch. Can I solve this problem for one of them or both?

Hard to solve using only elastic and grafana. Maybe metaqueries plugin can help - haven’t tried it though.

Zabbix no experience of so can’t answer.

Using prometheus or graphite this would have been quite easy to solve since their query languages allow arithmetic operation in their query language.

Marcus

Marcus

Thanks a lot. Mayby anybody resolve same problem also?