..::lib::Smoke...hers::Avgratio(3)
π NAME π
okay bestie, welcome to the SmokePing manual page for Smokeping::matchers::Avgratio π
its whole job? detect changes in average median latency. periodt.
πΈ OVERVIEW πΈ
so the Avgratio matcher builds up a historic average median latency over several measurement rounds. then it compares that average against a second average latency value that's also built over several rounds of measurement. it's giving "past latency vs current latency" vibe check, yk? β¨
β¨ DESCRIPTION β¨
call the matcher with this exact sequence, no cap:
type = matcher
pattern = Avgratio(historic=>a,current=>b,comparator=>o,percentage=>p)
ποΈ the params, bestie ποΈ
historicβ the number of median values to use for building the'historic'average.currentβ the number of median values to use for building the'current'average.comparatorβ which comparison operator should be used to comparecurrent/historicwithpercentage.percentageβ right hand side of the comparison.
then the timeline situation is literally:
old <--- historic ---><--- current ---> now
π₯ EXAMPLE π₯
okay so build the average median latency over 10 samples, use that to divide the current average latency built over 2 samples, and check if it's bigger than 150%. the code is:
Avgratio(historic=>10,current=>2,comparator=>'>',percentage=>150);
avg(current)/avg(historic) > 150/100
this means the matcher will activate when the current latency average is more than 1.5 times the historic latency average established over the last 10 rounds of measurement. yes bestie, 1.5x is the threshold, and it ate. π
π COPYRIGHT π
Copyright (c) 2004 by OETIKER+PARTNER AG. All rights reserved.
π«Ά SPONSORSHIP π«Ά
the development of this matcher has been sponsored by Virtela Communications, <http://www.virtela.net/>. iconic support, fr fr π«Ά
π LICENSE π
okay legal bestie moment, here's the actual license tea:
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
π¦ AUTHOR π¦
Tobias Oetiker <tobi@oetiker.ch> β author icon, periodt π
mwah π catch u later, bestie β SmokePing 2.9.0, dated 2025-06-30, page ..::lib::Smoke...hers::Avgratio(3).
π¦ where this page comes from
- alpine 3.23: smokeping-doc 2.9.0-r1 Β· GPL-2.0-or-later
- alpine 3.24: smokeping-doc 2.9.0-r1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms