Skip to content

Cumulative counters in histograms are exposed in scientific format  #130

Closed
@surik

Description

@surik

After updating prometheus.erl from 4.6.0 to 4.8.1 I noticed that le float counters are formatted using scientific notation.

I think this maybe be related to changes done here #121

bound_to_label_value(Bound) when is_float(Bound) ->
  float_to_list(Bound);

which does float_to_list(Bound,[{scientific,20}])

Although this can be processed by Prometheus but breaks the monotonicity of buckets, see screenshot (deployment at around 12:10 with new prometheus.erl)

image

Should we consider using float_to_list(Bound, [{decimals, 20}, compact]). for backwardcompatability and monotonicity?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions