gometricsvr

package module
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutHeader

func PutHeader(metricName string, description string, metricType string)

func PutKey added in v1.0.8

func PutKey(metricName string, key []string)

func PutLine

func PutLine(metricName string, value float64, labels map[string]string)

func StartServer

func StartServer(port int)

Types

type MetricLineT

type MetricLineT struct {
	MetricName string
	Labels     map[string]string
	Value      float64
}

type MetricsT

type MetricsT struct {
	Header []StatT
	Lines  []MetricLineT
	Keys   map[string][]string
	// contains filtered or unexported fields
}

type StatT

type StatT struct {
	MetricName  string
	Description string
	MetricType  string
}

data for in the prometheus header

Jump to

Keyboard shortcuts

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