telemetry

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceName is the name of the service for the purposes of
	ServiceName = "gort-controller"
)

Variables

View Source
var (
	PrometheusExporter *prometheus.Exporter

	MeterProvider metric.MeterProvider
)

Functions

func CreateAndRegisterExporters

func CreateAndRegisterExporters() error

Types

type MetricCounter

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

func Errors

func Errors() *MetricCounter

Errors increments the total errors counter.

func TotalRequests

func TotalRequests() *MetricCounter

TotalRequestCount increments the unauthorized requests counter.

func UnauthorizedRequests

func UnauthorizedRequests() *MetricCounter

UnauthorizedRequestCount increments the total requests counter.

func (*MetricCounter) Commit

func (c *MetricCounter) Commit(ctx context.Context)

func (*MetricCounter) WithAttribute

func (c *MetricCounter) WithAttribute(key string, value interface{}) *MetricCounter

func (*MetricCounter) WithEntryFields

func (c *MetricCounter) WithEntryFields(e log.Entry) *MetricCounter

func (*MetricCounter) WithError

func (c *MetricCounter) WithError(err error) *MetricCounter

func (*MetricCounter) WithValue

func (c *MetricCounter) WithValue(value int64) *MetricCounter

Jump to

Keyboard shortcuts

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