Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force a label value not to be in scientific notation #367

Open
ThomasDalla opened this issue Mar 9, 2025 · 0 comments
Open

Force a label value not to be in scientific notation #367

ThomasDalla opened this issue Mar 9, 2025 · 0 comments

Comments

@ThomasDalla
Copy link

ThomasDalla commented Mar 9, 2025

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 ThomasDalla changed the title json_exporter converts string labels that are numerical to float64 Force a label value not to be in scientific notation Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant