This project is a port of the Metrics Java library.
Add the metrics
dependency to your pubspec.yaml
.
It contains a set of metrics.
final registry = new MetricRegistry();
There are several kind of metrics:
- the Gauges.
- the Counters.
- the Histograms.
- the Meters.
- the Timers.
They allows to export the collected datas. Currently there are :
- a
ConsoleReporter
that will use theprint
method to display the metrics. - a
CsvReporter
that will write the metrics in cvs files under a provided directory. - a
LogReporter
that will use aLogger
from the logging package. - a
GraphiteReporter
that will send the metrics to graphite.
Apache 2.0