metrics

package
v1.6.5-rc27 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 18 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 GeoCollect added in v1.5.4

func GeoCollect(ctx context.Context, data []byte)

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

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

type SQLBatcher added in v1.5.3

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

func NewSQLBatcher added in v1.5.3

func NewSQLBatcher(preStatm string) *SQLBatcher

func (*SQLBatcher) Insert added in v1.5.3

func (b *SQLBatcher) Insert(query string) error

Jump to

Keyboard shortcuts

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