prometheusgw

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGateway

func NewGateway(cliGW *cligw.Gateway, url string) ports.PrometheusGateway

Types

type Gateway

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

func (*Gateway) CallFor

func (gateway *Gateway) CallFor(metrics ports.Metrics) (result ports.MetricsResult, err error)

CallFor makes an HTTP request to the specified gateway URL to fetch metrics. It returns the metrics result or an error if something goes wrong.

type MetricsData

type MetricsData map[string]*ioPrometheusClient.MetricFamily

Jump to

Keyboard shortcuts

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