prom

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0, BSD-3-Clause, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package prom is a prometheus reporter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

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

Emitter is a prometheus Reporter.

func NewEmitter

func NewEmitter() *Emitter

NewEmitter create a new emitter.

func (*Emitter) Inc

func (e *Emitter) Inc(name string, cnt int, tagPairs ...string)

Inc increases name by cnt with tagPairs.

func (*Emitter) Observe

func (e *Emitter) Observe(name string, v float64, tagPairs ...string)

Observe increases name by v with tagPairs.

Jump to

Keyboard shortcuts

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