json_exporter icon indicating copy to clipboard operation
json_exporter copied to clipboard

Force a label value not to be in scientific notation

Open ThomasDalla opened this issue 1 year ago • 0 comments

Is there a way to force the labels to be in String format?

{
  "id": 1655371,
  "value": 1.0338218390804599
}

This becomes: my_metric{id="1.655371e+06"} 1.0338218390804599

When I would like: my_metric{id="1655371"} 1.0338218390804599

Is there a way to force the label not to be in scientific notation?

ThomasDalla avatar Mar 09 '25 18:03 ThomasDalla