metrics

package module
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

README

metrics

metrics package helps to create ydb-go-sdk traces with monitoring over prometheus

Usage

import (
    "github.com/ydb-platform/ydb-go-sdk/v3"
    ydbPrometheus "github.com/ydb-platform/ydb-go-sdk-prometheus"
)

...
    // init prometheus registry
	registry := prometheus.NewRegistry()

	db, err := ydb.Open(
		ctx,
        os.Getenv("YDB_CONNECTION_STRING"),
		ydbPrometheus.WithTraces(registry),
	)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Coordination added in v0.7.0

func Coordination(registry prometheus.Registerer, opts ...option) trace.Coordination

Coordination makes trace.Coordination with prometheus metrics publishing

func DatabaseSQL added in v0.11.7

func DatabaseSQL(registry prometheus.Registerer, opts ...option) trace.DatabaseSQL

DatabaseSQL makes trace.DatabaseSQL with core metrics publishing

func Discovery added in v0.7.0

func Discovery(registry prometheus.Registerer, opts ...option) trace.Discovery

Discovery makes trace.Discovery with prometheus metrics publishing

func Driver

func Driver(registry prometheus.Registerer, opts ...option) trace.Driver

Driver makes Driver with prometheus metrics publishing

func Ratelimiter added in v0.7.0

func Ratelimiter(registry prometheus.Registerer, opts ...option) trace.Ratelimiter

Ratelimiter makes trace.Ratelimiter with prometheus metrics publishing

func Retry added in v0.7.0

func Retry(registry prometheus.Registerer, opts ...option) trace.Retry

Retry makes trace.Retry with prometheus metrics publishing

func Scheme added in v0.7.0

func Scheme(registry prometheus.Registerer, opts ...option) trace.Scheme

Scheme makes trace.Scheme with prometheus metrics publishing

func Scripting added in v0.7.0

func Scripting(registry prometheus.Registerer, opts ...option) trace.Scripting

Scripting makes trace.Scripting with prometheus metrics publishing

func Table

func Table(registry prometheus.Registerer, opts ...option) trace.Table

Table makes trace.Trace with prometheus metrics publishing

func WithDetails

func WithDetails(details trace.Details) option

func WithNamespace

func WithNamespace(namespace string) option

func WithSeparator

func WithSeparator(separator string) option

func WithTimerBuckets added in v0.12.0

func WithTimerBuckets(timerBuckets []float64) option

func WithTraces added in v0.7.0

func WithTraces(registry prometheus.Registerer, opts ...option) ydb.Option

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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