So i am getting 2 different metrics by doing filters , then displaying the value.
How can i calculate using those 2 values? I want to multiply those 2 values and then again with a static value ill input
So i have SOMETHING going with this using search and google
.es(timefield=@timestamp, q='name:"Service: UPS Battery Output Voltage"', index=nagios*, metric=avg:value).multiply(.es(timefield=@timestamp, q='name:"Service: UPS Battery Output Amperage"', index=nagios*, metric=avg:value)).divide(1000)
but now have to multiply this with the timefield of whatever is selected ex: last 15 mins, day etc against the above query
so query_number*(last 15 mins or time selected) = then multiply this by .08$ and display the metric which = ex: 4.50$ etc etc etc
trying this, can someone confirm at least this works? .es(timefield=@timestamp, q='name:"Service: UPS Battery Output Voltage"', index=nagios*, metric=avg:value).multiply(.es(timefield=@timestamp, q='name:"Service: UPS Battery Output Amperage"', index=nagios*, metric=avg:value)).divide(1000).multiply(.es(nagioscheck*,timefield=1h))
would like it if it was selecible though
