metrics

package
v1.2.0-rc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EventMtc = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: _eventMtcName,
			Help: "received events metrics.",
		},
		[]string{"account", "project", "publisher", "eventtype"},
	)

	PublisherMtc = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: _publisherMtcName,
			Help: "registered publishers for the project.",
		},
		[]string{"account", "project"},
	)

	BlockChainTxMtc = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: _blockChainTxMtcName,
		Help: "blockchain transaction counter metrics.",
	}, []string{"project", "chainID"})
)

Functions

func RemoveMetrics

func RemoveMetrics(ctx context.Context, account string, project string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL