globocom / alchemetrics

Elixir metrics reporter and collector
MIT License
35 stars 7 forks source link

Create function that accept which datapoints to receive #9

Closed bernardolins closed 7 years ago

bernardolins commented 7 years ago

Create a function that accept, for example, 99, 95, mean as argument to determine which datapoints to use

HugoLnx commented 7 years ago

Interface proposal:

# Default Values
# @metrics [:last_interval]
# @extra %{}
report('users_controller', value: 100, metrics: [:p99, :p95, :avg, :total, :last_interval], metadata: %{type: 'controller', group: 'http'})

PS.: That would replace measure_time