traffic

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 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

func SetServiceIps added in v0.4.4

func SetServiceIps(
	serviceByIp map[string]string,
	serviceByClusterIp map[string]string,
	targetUrl string,
) error

SetServiceIps tells traffic collector what ips map to what name

Types

This section is empty.

Jump to

Keyboard shortcuts

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