prometheus

package
v0.0.0-...-1b09624 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(serverName string, idc string)

func NewHttpHandler

func NewHttpHandler() http.Handler

func Register

func Register(pType PrometheusType, name string, labels []string, bulks []float64)

func Update

func Update(pType PrometheusType, name string, kv map[string]string, value float64) error

Types

type PrometheusType

type PrometheusType int

表示内部方法还是暴露的外部接口

const (
	PrometheusTypeQPS PrometheusType = iota
	PrometheusTypeTotal
	PrometheusTypeGauge
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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