Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for requests_total (0.15 sec)

  1. pkg/monitoring/example_sum_test.go

    // limitations under the License.
    
    package monitoring_test
    
    import "istio.io/istio/pkg/monitoring"
    
    var (
    	protocol = monitoring.CreateLabel("protocol")
    
    	requests = monitoring.NewSum(
    		"requests_total",
    		"Number of requests handled, by protocol",
    	)
    )
    
    func ExampleNewSum() {
    	// increment on every http request
    	requests.With(protocol.Value("http")).Increment()
    
    	// count gRPC requests double
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1005 bytes
    - Viewed (0)
  2. pilot/pkg/model/telemetry_test.go

    						Value: true,
    					},
    				}},
    
    				Providers: []*tpb.ProviderRef{{Name: "prometheus"}},
    			},
    		},
    	}
    	cfg := `{"metrics":[{"dimensions":{"add":"bar"},"name":"requests_total","tags_to_remove":["remove"]}]}`
    
    	tests := []struct {
    		name             string
    		cfgs             []config.Config
    		proxy            *Proxy
    		class            networking.ListenerClass
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  3. pilot/pkg/model/telemetry.go

    				}
    			}
    		default:
    			// Only prometheus and SD supported currently
    			continue
    		}
    	}
    	return res
    }
    
    var metricToPrometheusMetric = map[string]string{
    	"REQUEST_COUNT":          "requests_total",
    	"REQUEST_DURATION":       "request_duration_milliseconds",
    	"REQUEST_SIZE":           "request_bytes",
    	"RESPONSE_SIZE":          "response_bytes",
    	"TCP_OPENED_CONNECTIONS": "tcp_connections_opened_total",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 18:14:09 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. pkg/controller/podautoscaler/metrics/utilization.go

    	metricsTotal := int64(0)
    	requestsTotal := int64(0)
    	numEntries := 0
    
    	for podName, metric := range metrics {
    		request, hasRequest := requests[podName]
    		if !hasRequest {
    			// we check for missing requests elsewhere, so assuming missing requests == extraneous metrics
    			continue
    		}
    
    		metricsTotal += metric.Value
    		requestsTotal += request
    		numEntries++
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 22 08:59:02 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authentication/authenticatorfactory/metrics.go

    			StabilityLevel: compbasemetrics.ALPHA,
    		},
    		[]string{"code"},
    	)
    
    	metrics = registerables{
    		requestTotal,
    		requestLatency,
    	}
    )
    
    // RecordRequestTotal increments the total number of requests for the delegated authentication.
    func RecordRequestTotal(ctx context.Context, code string) {
    	requestTotal.WithContext(ctx).WithLabelValues(code).Inc()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 29 07:49:14 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authorization/authorizerfactory/metrics.go

    )
    
    var registerMetrics sync.Once
    
    // RegisterMetrics registers authorizer metrics.
    func RegisterMetrics() {
    	registerMetrics.Do(func() {
    		legacyregistry.MustRegister(requestTotal)
    		legacyregistry.MustRegister(requestLatency)
    	})
    }
    
    var (
    	requestTotal = compbasemetrics.NewCounterVec(
    		&compbasemetrics.CounterOpts{
    			Name:           "apiserver_delegated_authz_request_total",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/metrics_test.go

    				return
    			}
    			defer server.Close()
    
    			fakeAuthnMetrics := &fakeAuthenticatorMetrics{}
    			authnMetrics := AuthenticatorMetrics{
    				RecordRequestTotal:   fakeAuthnMetrics.RequestTotal,
    				RecordRequestLatency: fakeAuthnMetrics.RequestLatency,
    			}
    			wh, err := newV1TokenAuthenticator(server.URL, scenario.clientCert, scenario.clientKey, scenario.clientCA, 0, nil, authnMetrics)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 29 07:49:14 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/stats.go

    		},
    		[]string{"status"},
    	)
    	requestCount = metrics.NewCounterVec(
    		&metrics.CounterOpts{
    			Namespace:      "authentication",
    			Subsystem:      "token_cache",
    			Name:           "request_total",
    			StabilityLevel: metrics.ALPHA,
    		},
    		[]string{"status"},
    	)
    	fetchCount = metrics.NewCounterVec(
    		&metrics.CounterOpts{
    			Namespace:      "authentication",
    			Subsystem:      "token_cache",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 01 18:49:09 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/metrics.go

    	RecordRequestLatency func(ctx context.Context, code string, latency float64)
    }
    
    type noopMetrics struct{}
    
    func (noopMetrics) RequestTotal(context.Context, string)            {}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 29 07:49:14 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook.go

    	if err != nil {
    		return nil, err
    	}
    	return newWithBackoff(tokenReview, retryBackoff, implicitAuds, time.Duration(0), AuthenticatorMetrics{
    		RecordRequestTotal:   noopMetrics{}.RequestTotal,
    		RecordRequestLatency: noopMetrics{}.RequestLatency,
    	})
    }
    
    // newWithBackoff allows tests to skip the sleep.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 00:47:42 UTC 2022
    - 11.5K bytes
    - Viewed (0)
Back to top