Functions§
- run_
with_ metric_ collection - Run a function with metric collection enabled. The metrics will be written to a file specified
by an environment variable which name is
output_path_envar
. - serialize_
metric_ snapshot - Serialize a metric snapshot into a JSON object. The object has the following structure:
{
“gauge”: [
{
“metric”:
, “labels”: [ ( , ), ( , ), ], “value”: }, … ], … }