ipfs-cluster/monitor/metrics
Hector Sanjuan 19b1124999 Make metrics human
Issue #572 exposes metrics but they carry the peer ID in binary.

This was ok with our internal codecs but it doesn't seem to work
very well with json, and makes the output format unusable.

This makes the Metric.Peer field a string.

Additinoally, fixes calling the command without arguments and displaying
the date in the right format.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-26 14:11:30 +02:00
..
checker_test.go Monitor: more refactoring. Rename util to metrics 2018-05-09 11:01:41 +02:00
checker.go Monitor: more refactoring. Rename util to metrics 2018-05-09 11:01:41 +02:00
store_test.go Monitor: more refactoring. Rename util to metrics 2018-05-09 11:01:41 +02:00
store.go Make metrics human 2018-10-26 14:11:30 +02:00
util.go Make metrics human 2018-10-26 14:11:30 +02:00
window_test.go Monitor: remove safe parameter for metrics.Window 2018-05-09 11:01:52 +02:00
window.go Monitor/tests: Allow to run tests using the basic monitor. 2018-05-09 11:39:21 +02:00