I have multiple AWK queries I get haproxy metrics value by them
How can I improve the query to return any other value if it's sent empty string?
And what value I can use in the above keys to signalize the problems with haproxy metric?
I don't see in /tmp/.hastats.tmp any values except zero or positive integer numbers.
Would I be right if I'll use the negative integer (-1) to problem reporting?
but sometimes the query return no value neither any other messages - just empty string.awk -F , '/[keyword]/{print $5}' /tmp/.hastats.tmp
How can I improve the query to return any other value if it's sent empty string?
And what value I can use in the above keys to signalize the problems with haproxy metric?
I don't see in /tmp/.hastats.tmp any values except zero or positive integer numbers.
Would I be right if I'll use the negative integer (-1) to problem reporting?