FUNCTION::JSON\_ADD\_S(3stap) JSON Tapset FUNCTION::JSON\_ADD\_S(3stap)

# [NAME](#NAME)

function::json\_add\_string\_metric - Add a string metric

# [SYNOPSIS](#SYNOPSIS)

```


    json_add_string_metric:long(name:string,description:string)
```

# [ARGUMENTS](#ARGUMENTS)

*name*

The name of the string metric.

*description*

Metric description. An empty string can be used.

# [DESCRIPTION](#DESCRIPTION)

This function adds a string metric, setting up everything needed.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::json*(3stap)](/man/enterprise-packages/systemtap/tapset::json.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::json_add_string_metric(3stap) from systemtap 5.6-r0 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
