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

# function::json\_add\_string\_metric(3stap)

Add a string metric

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

*name*

The name of the string metric.

*description*

Metric description. An empty string can be used.

## DESCRIPTION

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

## SEE ALSO0

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