micro/meter
Vasiliy Tolstov 263ea8910d meter: use plan map and metadata
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-23 00:23:29 +03:00
..
context.go meter: add option helper and provide default metric name and label prefix 2021-01-22 19:18:28 +03:00
meter_test.go meter: rework meter interface 2021-01-22 18:21:40 +03:00
meter.go meter: use plan map and metadata 2021-01-23 00:23:29 +03:00
noop.go meter: use plan map and metadata 2021-01-23 00:23:29 +03:00
options.go meter: use plan map and metadata 2021-01-23 00:23:29 +03:00
README.md rename metrics to meter 2021-01-19 16:26:00 +03:00

metrics

The metrics package provides a simple metrics "Reporter" interface which allows the user to submit counters, gauges and timings (along with key/value tags).

Implementations

  • Prometheus (pull): will be first
  • Prometheus (push): certainly achievable
  • InfluxDB: could quite easily be done
  • Telegraf: almost identical to the InfluxDB implementation
  • Micro: Could we provide metrics over Micro's server interface?

Todo

  • Include a handler middleware which uses the Reporter interface to generate per-request level metrics
    • Throughput
    • Errors
    • Duration