mirage / prometheus

OCaml library for reporting metrics to a Prometheus server
Apache License 2.0
49 stars 27 forks source link

Switch float representation to OCaml's default `"%f"` #22

Closed toots closed 4 years ago

toots commented 4 years ago

The default float representation from Fmt.float uses a scientific notation that looses significant information on data such as timestamps:

  Fmt.strf "%a" Fmt.float 1575363850.57 --> 1.57536e+09
toots commented 4 years ago

Sounds good, thank you!