lotus/cmd/lotus
Raúl Kripalani 656ece06e5 fix metrics wiring.
Some components like go-ds-measure, go-ipfs-blockstore and go-bitswap
expose metrics via ipfs/go-metrics-interface, but Lotus never injects
the Prometheus exporter (ipfs/go-metrics-prometheus). Therefore, those
metrics never surface in instrumentation.

Instead, Lotus uses OpenCensus directly.

This commit injects the Prometheus exporter for go-metrics-interface, and
instructs the OpenCensus Prometheus exporter to use the DefaultRegistry.

This has the effect of exposing blending the metrics of both metrics
libraries.

With this patch, the datastore, cache utilisation, and bitswap metrics
are now exported via the /debug/metrics endpoint.

This commit also fixes an issue where the metrics scope was empty, making
go-metrics-interface default to "<no-scope>". Angle brackets are inadmissible
characters for Prometheus, so it was refusing to export the affected metrics.
(These were the ARC cache metrics.)
2020-11-02 17:56:49 +00:00
..
backup.go Full node metadata backup 2020-10-01 17:55:48 +02:00
daemon_nodaemon.go Update cli 2020-06-04 01:01:41 +02:00
daemon.go fix metrics wiring. 2020-11-02 17:56:49 +00:00
debug_advance.go [WIP] Fix ticket randomness 2020-09-10 17:41:55 -04:00
main.go Full node metadata backup 2020-10-01 17:55:48 +02:00
rpc.go fix metrics wiring. 2020-11-02 17:56:49 +00:00