The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
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
SetDefaultMetricsReporter allows other packages (such as profiles) to set the DefaultMetricsReporter
The "initialized" flag prevents this from being overwritten (because other packages may already be using it)