tarantool / metrics

Metric collection library for Tarantool
MIT License
39 stars 24 forks source link

Graphite exporter do not supports decimal values #353

Closed DifferentialOrange closed 2 years ago

DifferentialOrange commented 2 years ago

Graphite exporter plugin strips all decimal values from a number.

https://github.com/tarantool/metrics/blob/7f8dd5c98f41e569ba8142bf8d8e8cd2d1f033e4/metrics/plugins/graphite.lua#L31

tarantool> ('343423.23423'):match('%d*')
---
- '343423'
...
DifferentialOrange commented 2 years ago

AFAIR, plain tonumber solves all problems.