1 Star 0 Fork 0

小庄 / fabric

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
metrics.go 648 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jason Yellick 提交于 2018-11-29 22:42 . FAB-13067 Add blockcutter metrics
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package blockcutter
import "github.com/hyperledger/fabric/common/metrics"
var (
blockFillDuration = metrics.HistogramOpts{
Namespace: "blockcutter",
Name: "block_fill_duration",
Help: "The time from first transaction enqueing to the block being cut in seconds.",
LabelNames: []string{"channel"},
StatsdFormat: "%{#fqname}.%{channel}",
}
)
type Metrics struct {
BlockFillDuration metrics.Histogram
}
func NewMetrics(p metrics.Provider) *Metrics {
return &Metrics{
BlockFillDuration: p.NewHistogram(blockFillDuration),
}
}
1
https://gitee.com/zhuanglicheng/fabric.git
git@gitee.com:zhuanglicheng/fabric.git
zhuanglicheng
fabric
fabric
v2.1.1

搜索帮助