Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,328 for Metric2 (1.11 sec)

  1. pkg/queue/metrics.go

    		"Time taken to process an item", []float64{.01, .1, .2, .5, 1, 3, 5}, enableMetric)
    )
    
    type queueMetrics struct {
    	depth        monitoring.Metric
    	latency      monitoring.Metric
    	workDuration monitoring.Metric
    	id           string
    	clock        clock.WithTicker
    }
    
    // Gets the time since the specified start in seconds.
    func (m *queueMetrics) sinceInSeconds(start time.Time) float64 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authorization/metrics/metrics.go

    limitations under the License.
    */
    
    package metrics
    
    import (
    	"context"
    	"sync"
    
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	"k8s.io/component-base/metrics"
    	"k8s.io/component-base/metrics/legacyregistry"
    )
    
    const (
    	namespace = "apiserver"
    	subsystem = "authorization"
    )
    
    var (
    	authorizationDecisionsTotal = metrics.NewCounterVec(
    		&metrics.CounterOpts{
    			Namespace:      namespace,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 13:20:59 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. hack/verify-generated-stable-metrics.sh

    # See the License for the specific language governing permissions and
    # limitations under the License.
    
    # This script runs to ensure that we do not violate metric stability
    # policies.
    # Usage: `hack/verify-generated-stable-metrics.sh`.
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    source "${KUBE_ROOT}/test/instrumentation/stability-utils.sh"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 05 18:48:48 UTC 2021
    - 928 bytes
    - Viewed (0)
  4. cmd/metrics-v3-api.go

    )
    
    // loadAPIRequestsHTTPMetrics - reads S3 HTTP metrics.
    //
    // This is a `MetricsLoaderFn`.
    //
    // This includes node level S3 HTTP metrics.
    //
    // This function currently ignores `opts`.
    func loadAPIRequestsHTTPMetrics(ctx context.Context, m MetricValues, _ *metricsCache) error {
    	// Collect node level S3 HTTP metrics.
    	httpStats := globalHTTPStats.toServerHTTPStats(false)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 07:41:18 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. pilot/pkg/leaderelection/k8sleaderelection/metrics.go

    limitations under the License.
    */
    
    package k8sleaderelection
    
    import (
    	"sync"
    )
    
    // This file provides abstractions for setting the provider (e.g., prometheus)
    // of metrics.
    
    type leaderMetricsAdapter interface {
    	leaderOn(name string)
    	leaderOff(name string)
    }
    
    // GaugeMetric represents a single numerical value that can arbitrarily go up
    // and down.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Oct 11 16:58:48 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  6. cmd/metrics-router.go

    )
    
    const (
    	prometheusMetricsPathLegacy     = "/prometheus/metrics"
    	prometheusMetricsV2ClusterPath  = "/v2/metrics/cluster"
    	prometheusMetricsV2BucketPath   = "/v2/metrics/bucket"
    	prometheusMetricsV2NodePath     = "/v2/metrics/node"
    	prometheusMetricsV2ResourcePath = "/v2/metrics/resource"
    
    	// Metrics v3 endpoints
    	metricsV3Path = "/metrics/v3"
    )
    
    // Standard env prometheus auth type
    const (
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. cmd/metrics-realtime.go

    			aggr.Merge(&disk)
    		}
    		m.Aggregated.Disk = &aggr
    	}
    
    	if types.Contains(madmin.MetricsScanner) {
    		metrics := globalScannerMetrics.report()
    		m.Aggregated.Scanner = &metrics
    	}
    	if types.Contains(madmin.MetricsOS) {
    		metrics := globalOSMetrics.report()
    		m.Aggregated.OS = &metrics
    	}
    	if types.Contains(madmin.MetricsBatchJobs) {
    		m.Aggregated.BatchJobs = globalBatchJobsMetrics.report(opts.jobID)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 01 05:16:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/metrics.go

    limitations under the License.
    */
    
    package webhook
    
    import (
    	"context"
    )
    
    // AuthenticatorMetrics specifies a set of methods that are used to register various metrics
    type AuthenticatorMetrics struct {
    	// RecordRequestTotal increments the total number of requests for webhooks
    	RecordRequestTotal func(ctx context.Context, code 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)
  9. cmd/metrics-v2_test.go

    			ttfbHist.With(prometheus.Labels{"api": obs.label}).Observe(obs.val)
    		}
    	}
    
    	metrics := getHistogramMetrics(ttfbHist, getBucketTTFBDistributionMD(), false)
    	// additional labels for +Inf for all histogram metrics
    	if expPoints := len(labels) * (len(histBuckets) + 1); expPoints != len(metrics) {
    		t.Fatalf("Expected %v data points but got %v", expPoints, len(metrics))
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 04 18:05:56 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. pkg/istio-agent/metrics/metrics.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package metrics
    
    import (
    	"istio.io/istio/pkg/monitoring"
    )
    
    const (
    	Cancel = "cancelled"
    	Error  = "error"
    )
    
    var (
    	disconnectionTypeTag = monitoring.CreateLabel("type")
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top