metrics

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	StatName string
	// contains filtered or unexported fields
}

Item represents single metrics item

func (*Item) SetValue

func (metricsItem *Item) SetValue(value float64)

SetValue writes new value to prometheus metric

type Metrics

type Metrics struct {
	List map[string]Item
}

Metrics represents list of metrics items

func (*Metrics) AddItem

func (metric *Metrics) AddItem(statName string, name string, help string) error

AddItem adds new metrics item to list

Jump to

Keyboard shortcuts

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