7999d24f81
this commit updates our monkit dependency to the v3 version where it outputs in an influx style. this makes discovery much easier as many tools are built to look at it this way. graphite and rothko will suffer some due to no longer being a tree based on dots. hopefully time will exist to update rothko to index based on the new metric format. it adds an influx output for the statreceiver so that we can write to influxdb v1 or v2 directly. Change-Id: Iae9f9494a6d29cfbd1f932a5e71a891b490415ff
19 lines
368 B
Go
19 lines
368 B
Go
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package debug
|
|
|
|
import (
|
|
"github.com/spacemonkeygo/monkit/v3"
|
|
"google.golang.org/grpc/status"
|
|
)
|
|
|
|
func init() {
|
|
monkit.AddErrorNameHandler(func(err error) (string, bool) {
|
|
if s, ok := status.FromError(err); ok {
|
|
return "grpc_" + s.Code().String(), true
|
|
}
|
|
return "", false
|
|
})
|
|
}
|