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
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
So i went a bit further and just did the math within my script and then sent the info to ELK. So now my question is, how do i choose the timeframe picked by the user as path of the equation?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.