prometheus

package
v0.0.0-...-96b04c8 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MeteringDefaultTimeout = 20 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusService

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

func NewPrometheusService

func NewPrometheusService(Endpoint string) (PrometheusService, error)

func (PrometheusService) GetMetadata

func (p PrometheusService) GetMetadata(namespace string) []dto.Metadata

func (PrometheusService) GetMetricLabelSet

func (p PrometheusService) GetMetricLabelSet(expr string, start, end time.Time) []map[string]string

func (PrometheusService) GetNamedMetrics

func (p PrometheusService) GetNamedMetrics(metrics []string, ts time.Time, opts *dto.QueryOptions) []dto.Metric

func (PrometheusService) GetNamedMetricsOverTime

func (p PrometheusService) GetNamedMetricsOverTime(opts *dto.QueryOptions) []dto.Metric

Jump to

Keyboard shortcuts

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