I have a question to see if i can set alert condition by chaining multiple value_name
from below Prometheus data.
- Data source: Prometheus
Data format as below:
equipment_value{eqp_id="19986",value="18.11",value_datetime="2024-11-21T10:00:00Z",value_name="Amps A"} 18.11
equipment_value{eqp_id="19986",value="0.0",value_datetime="2024-11-21T10:00:00Z",value_name="Overspeed"} 0.0
equipment_value{eqp_id="19986",value="0.0",value_datetime="2024-11-21T10:00:00Z",value_name="Emergency Stop"} 0.0
equipment_value{eqp_id="19986",value="-1.0",value_datetime="2024-11-21T10:00:00Z",value_name="Power Factor"} -1.0
equipment_value{eqp_id="19986",value="58.91",value_datetime="2024-11-21T10:00:00Z",value_name="Frequency"} 58.91
equipment_value{eqp_id="19986",value="-0.14",value_datetime="2024-11-21T10:00:00Z",value_name="Oil Pressure"} -0.14
equipment_value{eqp_id="19986",value="3534.0",value_datetime="2024-11-21T10:00:00Z",value_name="RPM"} 3534.0
equipment_value{eqp_id="19986",value="0.0",value_datetime="2024-11-21T10:00:00Z",value_name="Coolant Temp"} 0.0
I was able to create individual alert (see screenshot below)
While this works, I want something else as below: Amps A = 0 and Emergency Stop = 1
From my readings, i’ve to use some transformers in Grafana, which i’m still unclear about. Appreciate if anyone can comment on this.
Thanks!