metrics

package
v0.0.0-...-b4e7bf2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectIDLabel  string = "__projectid__"
	MetricNameLabel string = "__name__"
)

Variables

This section is empty.

Functions

func GetMetricFingerprint

func GetMetricFingerprint(metricName string, attributes map[string]string) string

Types

type ClickHouseIngester

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

func NewClickHouseIngester

func NewClickHouseIngester(db clickhouse.Conn, logger *zap.Logger) *ClickHouseIngester

func (*ClickHouseIngester) Add

func (c *ClickHouseIngester) Add(
	resAttr map[string]string,
	resURL string,
	scopeInstr pcommon.InstrumentationScope,
	scopeURL string,
	m pmetric.Metric,
)

func (*ClickHouseIngester) Write

func (c *ClickHouseIngester) Write(ctx context.Context, ingestionTimestamp time.Time) error

type MetricsMetadata

type MetricsMetadata struct {
	ResAttr    map[string]string
	ResURL     string
	ScopeURL   string
	ScopeInstr pcommon.InstrumentationScope
}

MetricsMetaData contain specific metric data

type MetricsModel

type MetricsModel interface {
	Add(
		resAttr map[string]string,
		resURL string,
		scopeInstr pcommon.InstrumentationScope,
		scopeURL string,
		m pmetric.Metric,
	)
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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