FUNCTION::JSON_SET_P(3stap)
β¨ NAME β¨
function::json_set_prefix β sets the metric prefix, bestie π
This one lives in the JSON Tapset, and it's genuinely one of the cutest little functions in the whole family. She does one thing and she does it well. Periodt.
πΈ SYNOPSIS πΈ
json_set_prefix:long(prefix:string)
π ARGUMENTS π
prefixβ the prefix name you wanna use, girl. That's it. That's the whole arg. Pass it in as astringand she'll take it from there. π«Ά
π DESCRIPTION π
okay so here's the vibe: this function sets the "prefix", which is basically the name of the base of the metric hierarchy. Think of it as the little name tag at the very top of your whole metric tree β the root, the main character, the one everything else hangs off of. π
Calling this function is optional. If you don't call it, no big deal, no drama β by default the name of the systemtap module is used instead. So she's got a fallback, she's self-sufficient, she's fine on her own. But if you want your metrics to have a specific base name? Then yeah, call her. π
lowkey the whole thing is: want a custom prefix? call it. don't care? she'll use the module name. that's the entire lore. π
π¦ SEE ALSO π¦
okay that's the whole page bestie, go forth and prefix your metrics β¨
SystemTap Tapset Reference, September 2026 edition β mwah, love that for us πππ¦
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms