micro/metrics
Василий Толстов daffa9e548
use metadata.Metadata (#8)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-18 16:50:41 +03:00
..
wrapper use metadata.Metadata (#8) 2020-11-18 16:50:41 +03:00
README.md Metrics interface and Prometheus implementation (#1929) 2020-08-18 08:27:50 +01:00
noop.go use metadata.Metadata (#8) 2020-11-18 16:50:41 +03:00
options.go use metadata.Metadata (#8) 2020-11-18 16:50:41 +03:00
reporter.go use metadata.Metadata (#8) 2020-11-18 16:50:41 +03:00
reporter_test.go metrics: minor changes to interface and set default 2020-11-15 00:38:38 +03:00

README.md

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