lotus/cmd
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
..
chain-noise Refactor from crypto.SigType to types.KeyType 2020-10-12 00:07:53 +02:00
lotus fix metrics wiring. 2020-11-02 17:56:49 +00:00
lotus-bench Merge remote-tracking branch 'origin/master' into feat/async-restartable-workers 2020-10-23 23:25:35 +02:00
lotus-chainwatch port to v2 imports 2020-10-21 12:16:23 -07:00
lotus-fountain Fix more lint warnings. 2020-08-25 12:56:30 -07:00
lotus-gateway feat: lite-mode - CLI tests for lotus client commands 2020-10-23 15:02:49 +02:00
lotus-health rename build.{BlockDelay=>BlockDelaySecs}. 2020-06-30 14:26:49 +01:00
lotus-keygen Refactor from crypto.SigType to types.KeyType 2020-10-12 00:07:53 +02:00
lotus-pcr Merge pull request #4314 from filecoin-project/feat/lotus-pcr-block-list 2020-10-22 17:59:23 +02:00
lotus-seal-worker Merge pull request #4615 from filecoin-project/feat/worker-pause 2020-10-31 00:26:37 +01:00
lotus-seed Merge remote-tracking branch 'origin/master' into feat/async-restartable-workers 2020-10-23 23:25:35 +02:00
lotus-shed Merge pull request #4498 from filecoin-project/feat/try-election 2020-10-31 01:02:25 +01:00
lotus-stats refactor(ctx): update to latest go-jsonrpc 2020-08-25 15:20:41 -07:00
lotus-storage-miner Merge pull request #4662 from filecoin-project/feat/force-sched-cli 2020-10-30 20:15:49 +01:00
lotus-townhall Lint everything 2020-08-20 20:46:36 -07:00
lotus-wallet register all apis with metric wrapper 2020-10-21 18:37:50 +10:00
tvx fix tvx init. 2020-10-23 13:30:04 +01:00