lotus/node
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
..
config Merge pull request #4652 from filecoin-project/feat/default-max-fee-cfg 2020-10-30 21:35:10 +01:00
hello Add peer to peer manager before fetching the tipset 2020-09-08 20:13:16 +02:00
impl Merge pull request #4105 from filecoin-project/asr/decode-params 2020-10-31 01:05:50 +01:00
modules bootstrap: don't return early when one drand resolution fails 2020-10-30 21:58:17 +01:00
repo Add lotus-shed datastore rewrite command 2020-10-28 23:24:45 +01:00
test migrate methods to abstracted methods 2020-10-21 12:18:37 -07:00
builder.go fix metrics wiring. 2020-11-02 17:56:49 +00:00
fxlog.go Update go-log to v2 2020-01-08 20:22:31 +01:00
node_test.go Test the tape upgrade 2020-10-12 00:01:25 -07:00
options.go workers: get to executing tasks remotely! 2020-03-19 18:11:45 +01:00
testopts.go Cleanup imports after rename 2019-10-18 13:47:41 +09:00