bioyino
bioyino copied to clipboard
[bug] Frequent gauge metric incorrect interpretation
Description
In case of send some gauge metric more than 200 times per server stats interval / discrete period, count of sends replaces actual value.
Example:
Send path:2|g
200 times (or more).
send_to_statsd () {
nc -u 127.0.0.1 8125;
}
generate_metrics () {
local I=1;
while true; do
echo "path:2|g";
usleep 1000;
I=$((${I}+1))
if [ ${I} -gt 200 ]; then
break;
fi
done
}
generate_metrics | send_to_statsd
Expected behavior:
Path value equals 2.
Actual behavior:
Path value equals 200.
Addition
Value doesn't matter. Probably 200 means update-count-threshold server parameter.