Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for prometheus_io_port (0.35 sec)

  1. operator/pkg/util/k8s.go

    }
    
    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
    		case "prometheus_io_path":
    			path = val
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. pkg/kube/inject/webhook.go

    	prometheusScrapeAnnotation = "prometheus_io_scrape"
    	prometheusPortAnnotation   = "prometheus_io_port"
    	prometheusPathAnnotation   = "prometheus_io_path"
    
    	watchDebounceDelay = 100 * time.Millisecond
    )
    
    const (
    	// InitContainers is the name of the property in k8s pod spec
    	InitContainers = "initContainers"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
Back to top