..::lib::Smoke...hers::Medratio(3)

okay bestie, you found the SmokePing manual page ..::lib::Smoke...hers::Medratio(3) and the star of the show is Smokeping::matchers::Medratio πŸ’…βœ¨

πŸ’– NAME πŸ’–

Smokeping::matchers::Medratio β€” detect changes in the latency median. periodt. πŸ‘‘

πŸ¦‹ OVERVIEW πŸ¦‹

The Medratio matcher establishes a historic median latency over several measurement rounds. It compares that median against a second median latency value, again built over several rounds of measurement.

Because it’s looking at the median, this matcher is largely immune to spikes and will only react to long-term developments. no cap, it’s giving patient main character energy 🧚

✨ DESCRIPTION ✨

Call the matcher with this sequence, bestie:

type = matcher
pattern =  Medratio(historic=>a,current=>b,comparator=>o,percentage=>p)

Then the options are:

  • historic β€” the number of values to use for building the 'historic' median. πŸŽ€
  • current β€” the number of values to use for building the 'current' median. πŸ¦‹
  • comparator β€” which comparison operator should be used to compare current/historic with percentage. πŸ’…
  • percentage β€” right hand side of the comparison. 🌸

Here’s the little timeline vibe:

old <--- historic ---><--- current ---> now

🌸 EXAMPLE 🌸

Take the 12 last median values. Build the median out of the first 10 and the median from the other 2 values. Divide the results and decide if it is bigger than 150 percent. πŸ‘‘

Medratio(historic=>10,current=>2,comparator=>'>',percentage=>150);

med(current)/med(historic) > 150/100

This means the matcher will activate when the current latency median is more than 1.5 times the historic latency median established over the last 10 rounds of measurement. that’s the threshold, bestie β€” not a drill πŸ’€πŸ”₯

Copyright (c) 2006 by OETIKER+PARTNER AG. All rights reserved.

🫢 SPONSORSHIP 🫢

The development of this matcher has been paid for by Virtela Communications, <http://www.virtela.net/>. 🫢

πŸ‘‘ LICENSE πŸ‘‘

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> β€” icon behavior, honestly. πŸ’œ

okay that’s the whole page, bestie 🫢 this is version 2.9.0, dated 2025-06-30, under the manual name ..::lib::Smoke...hers::Medratio(3). stay sparkly ✨

πŸ“¦ where this page comes from