metrics

package
v1.4.3-poc-rc3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func EventMetricsInc added in v1.2.5

func EventMetricsInc(ctx context.Context, account, project, publisher, eventtype string)

func Init added in v1.2.5

func Init(ctx context.Context)

func PublisherMetricsDec added in v1.2.5

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

func PublisherMetricsInc added in v1.2.5

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

func RemoveMetrics

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

Types

type ClickhouseClient added in v1.2.5

type ClickhouseClient struct {
	// contains filtered or unexported fields
}

func (*ClickhouseClient) Insert added in v1.2.5

func (c *ClickhouseClient) Insert(query string) error

func (*ClickhouseClient) Run added in v1.2.5

func (c *ClickhouseClient) Run()

type CustomMetrics added in v1.4.1

type CustomMetrics interface {
	Submit(gjson.Result) error
}

func NewCustomMetric added in v1.4.1

func NewCustomMetric(account string, project string) CustomMetrics

Jump to

Keyboard shortcuts

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