promutil

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTelemtMetrics

func ExtractTelemtMetrics(metrics []ParsedMetric) *model.LiveMetrics

ExtractTelemtMetrics extracts all relevant telemt metrics from parsed data.

func FetchAndParse

func FetchAndParse(body io.Reader) (*model.LiveMetrics, error)

FetchAndParse fetches metrics from an HTTP endpoint and parses them.

Types

type ParsedMetric

type ParsedMetric struct {
	Name   string
	Labels map[string]string
	Value  float64
}

ParsedMetric holds a single parsed Prometheus metric line.

func ParseMetrics

func ParseMetrics(text string) ([]ParsedMetric, error)

ParseMetrics parses Prometheus text format into structured metrics.

Jump to

Keyboard shortcuts

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