telemetry

package
v0.5.6-dev.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "gort-controller"
)

Variables

This section is empty.

Functions

func BuildPromExporter

func BuildPromExporter() (*prometheus.Exporter, 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