traffic

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractLabels

func ExtractLabels(metric *dto.Metric) []prompb.Label

func MetricFamiliesToProtoWriteRequest

func MetricFamiliesToProtoWriteRequest(metricFamilies map[string]*dto.MetricFamily) *prompb.WriteRequest

func ScrapeTarget

func ScrapeTarget(targetURL string) (string, map[string]*dto.MetricFamily, error)

ScrapeTarget scrapes an http endpoint for prometheus metrics

func SetPodTargets

func SetPodTargets(pods []*corev1.Pod, targetUrl string) error

SetPodTargets tells traffic collector which pods to target

Types

This section is empty.

Jump to

Keyboard shortcuts

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