- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for SanitizeLabelName (0.25 sec)
-
operator/pkg/util/k8s.go
} return nil } func PrometheusPathAndPort(pod *v1.Pod) (string, int, error) { path := "/metrics" port := 9090 for key, val := range pod.ObjectMeta.Annotations { switch strutil.SanitizeLabelName(key) { case "prometheus_io_port": p, err := strconv.Atoi(val) if err != nil { return "", 0, fmt.Errorf("failed to parse port from annotation: %v", err) } port = p
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Feb 27 16:55:16 UTC 2024 - 3.6K bytes - Viewed (0)