6 Star 47 Fork 28

Hyperledger/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),
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hyperledger/fabric.git
git@gitee.com:hyperledger/fabric.git
hyperledger
fabric
fabric
v1.4.0

搜索帮助

0d507c66 1850385 C8b1a773 1850385