---
name: "function::json_set_prefix"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::json_set_prefix"
---

# function::json\_set\_prefix(3stap)

Set the metric prefix.

## NAME

function::json\_set\_prefix - Set the metric prefix.

## SYNOPSIS

```
    json_set_prefix:long(prefix:string)
```

## ARGUMENTS

*prefix*

The prefix name to be used.

## DESCRIPTION

This function sets the “prefix”, which is the name of the base of the metric hierarchy. Calling this function is optional, by default the name of the systemtap module is used.

## SEE ALSO0

[*tapset::json*(3stap)](/tapset::json/3stap.md)
