Documentation ¶
Index ¶
- Constants
- Variables
- func NewCounterVec(subsystem, name, help string, labels ...string) *prometheus.CounterVec
- func NewGaugeVec(subsystem, name, help string, labels ...string) *prometheus.GaugeVec
- func NewHistogram(subsystem, name, help string, buckets []float64) *prometheus.Histogram
- func NewHistogramVec(subsystem, name, help string, buckets []float64, labels ...string) *prometheus.HistogramVec
Constants ¶
View Source
const ( SUBSYSTEM_GRPC = "grpc" SUBSYSTEM_CORE_COMMITTER = "committer" SUBSYSTEM_RPCSERVER = "rpcserver" SUBSYSTEM_CORE_PROPOSER_SCHEDULER = "scheduler" SUBSYSTEM_CORE_PROPOSER = "proposer" SUBSYSTEM_CORE_VERIFIER = "verifier" SUBSYSTEM_WASM_WASMER = "wasmer" SUBSYSTEM_TXPOOL = "txpool" SUBSYSTEM_VM = "vm" ChainId = "chainId" PoolType = "poolType" MetricBlockSize = "metric_block_size" MetricBlockCounter = "metric_block_counter" MetricTxCounter = "metric_tx_counter" MetricTxPoolSize = "metric_tx_pool_size" // tx pool MetricValidateTxInDBTime = "validate_tx_exist_db_time" // tx pool MetricValidateTxSignTime = "validate_tx_sign_time" // tx pool MetricTpsGauge = "metric_tps_gauge" MetricBlockCommitTime = "metric_block_commit_time" MetricBlockIntervalTime = "metric_block_interval_time" HelpCurrentBlockSizeMetric = "current block size metric" HelpBlockCountsMetric = "block counts metric" HelpTxCountsMetric = "tx counts metric" HelpTxPoolSizeMetric = "tx pool size metric" // tx pool MetricValidateTxInDBTimeMetric = "validate tx exist in db time metric" // tx pool MetricValidateTxSignTimeMetric = "validate tx sign time metric" // tx pool HelpTpsGaugeMetric = "real-time transaction per second (TPS) metric" HelpBlockCommitTimeMetric = "block commit time metric" HelpBlockIntervalTimeMetric = "block interval metric" MetricDeployedContractCounter = "metric_deployed_contract_counter" MetricContractInvokeCounter = "metric_contract_invoke_counter" MetricGasUsedHistogram = "metric_gas_used_histogram" HelpDeployedContractCounterMetric = "deployed contract counter metric" HelpContractInvokeCounterMetric = "contract invoke counter metric" HelpGasUsedHistogramMetric = "gas used histogram metric" )
各统计指标
Variables ¶
View Source
var ( MetricRegisterer prometheus.Registerer = metricRegistry MetricGatherer prometheus.Gatherer = metricRegistry )
Functions ¶
func NewCounterVec ¶
func NewCounterVec(subsystem, name, help string, labels ...string) *prometheus.CounterVec
NewCounterVec 新建Counter计数器 @param subsystem @param name @param help @param labels @return *prometheus.CounterVec
func NewGaugeVec ¶
func NewGaugeVec(subsystem, name, help string, labels ...string) *prometheus.GaugeVec
NewGaugeVec 新建计量器GaugeVec @param subsystem @param name @param help @param labels @return *prometheus.GaugeVec
func NewHistogram ¶
func NewHistogram(subsystem, name, help string, buckets []float64) *prometheus.Histogram
NewHistogram 新建统计图Histogram @param subsystem @param name @param help @param buckets @return *prometheus.Histogram
func NewHistogramVec ¶
func NewHistogramVec(subsystem, name, help string, buckets []float64, labels ...string) *prometheus.HistogramVec
NewHistogramVec 新建统计图HistogramVec @param subsystem @param name @param help @param buckets @param labels @return *prometheus.HistogramVec
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.