Documentation
¶
Index ¶
- func ExtractLabels(metric *dto.Metric) []prompb.Label
- func MetricFamiliesToProtoWriteRequest(metricFamilies map[string]*dto.MetricFamily) *prompb.WriteRequest
- func ScrapeTarget(targetURL string) (string, map[string]*dto.MetricFamily, error)
- func SetPodTargets(pods []*corev1.Pod, targetUrl string) error
- func SetServiceIps(serviceByIp map[string]string, serviceByClusterIp map[string]string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricFamiliesToProtoWriteRequest ¶
func MetricFamiliesToProtoWriteRequest(metricFamilies map[string]*dto.MetricFamily) *prompb.WriteRequest
func ScrapeTarget ¶
ScrapeTarget scrapes an http endpoint for prometheus metrics
func SetPodTargets ¶
SetPodTargets tells traffic collector which pods to target
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.