victoria

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package victoria wraps victoria metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

Counter is a prom metric.

func NewCounter

func NewCounter(opts Opts, labels ...string) *Counter

NewCounter factory method for Counter.

func (*Counter) Build

func (m *Counter) Build() metrics.Counter

Build metric instance.

func (*Counter) With

func (m *Counter) With(labelsAndValues ...string) metrics.CounterBuilder

With append new values.

type Histo

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

Histo is a prom metric.

func NewHisto

func NewHisto(opts Opts, labels ...string) *Histo

NewHisto factory method for Histo.

func (*Histo) Build

func (m *Histo) Build() metrics.Histo

Build metric instance.

func (*Histo) With

func (m *Histo) With(labelsAndValues ...string) metrics.HistoBuilder

With append new values.

type Increment

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

Increment is a prom metric.

func NewIncrement

func NewIncrement(opts Opts, labels ...string) *Increment

NewIncrement factory method for Increment.

func (*Increment) Build

func (m *Increment) Build() metrics.Increment

Build metric instance.

func (*Increment) With

func (m *Increment) With(labelsAndValues ...string) metrics.IncrementBuilder

With append new values.

type Opts

type Opts struct {
	Namespace string
	Subsystem string
	Name      string
}

Opts is a sctruct for metric name.

func (*Opts) ToString

func (o *Opts) ToString(labels string) string

ToString converts Opts struct to metric name.

Jump to

Keyboard shortcuts

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