Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for NewDistribution (0.22 sec)

  1. pilot/pkg/xds/monitoring.go

    	rdsSendErrPushes = pushes.With(typeTag.Value("rds_senderr"))
    
    	debounceTime = monitoring.NewDistribution(
    		"pilot_debounce_time",
    		"Delay in seconds between the first config enters debouncing and the merged push request is pushed into the push queue.",
    		[]float64{.01, .1, 1, 3, 5, 10, 20, 30},
    	)
    
    	pushContextInitTime = monitoring.NewDistribution(
    		"pilot_pushcontext_init_seconds",
    		"Total time in seconds Pilot takes to init pushContext.",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. pkg/queue/metrics.go

    	})
    	depth = monitoring.NewGauge("pilot_worker_queue_depth", "Depth of the controller queues", enableMetric)
    
    	latency = monitoring.NewDistribution("pilot_worker_queue_latency",
    		"Latency before the item is processed", []float64{.01, .1, .2, .5, 1, 3, 5}, enableMetric)
    
    	workDuration = monitoring.NewDistribution("pilot_worker_queue_duration",
    		"Time taken to process an item", []float64{.01, .1, .2, .5, 1, 3, 5}, enableMetric)
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jul 21 16:30:36 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. pkg/monitoring/example_distribution_test.go

    // limitations under the License.
    package monitoring_test
    
    import "istio.io/istio/pkg/monitoring"
    
    var (
    	method = monitoring.CreateLabel("method")
    
    	receivedBytes = monitoring.NewDistribution(
    		"received_bytes_total",
    		"Distribution of received bytes by method",
    		[]float64{10, 100, 1000, 10000},
    		monitoring.WithUnit(monitoring.Bytes),
    	)
    )
    
    func ExampleNewDistribution() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 995 bytes
    - Viewed (0)
  4. pkg/kube/inject/monitoring.go

    	)
    
    	totalSkippedInjections = monitoring.NewSum(
    		"sidecar_injection_skip_total",
    		"Total number of skipped sidecar injection requests.",
    	)
    
    	injectionTime = monitoring.NewDistribution(
    		"sidecar_injection_time_seconds",
    		"Total time taken for injection in seconds.",
    		[]float64{.1, 1, 3, 5, 10, 20, 30, 60},
    	)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. pkg/dns/client/monitoring.go

    		"Total number of DNS requests forwarded to upstream.",
    	)
    
    	failures = monitoring.NewSum(
    		"dns_upstream_failures_total",
    		"Total number of DNS failures.",
    	)
    
    	requestDuration = monitoring.NewDistribution(
    		"dns_upstream_request_duration_seconds",
    		"Total time in seconds Istio takes to get DNS response from upstream.",
    		[]float64{.001, .005, 0.01, 0.1, 1, 5},
    	)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Nov 07 15:55:53 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  6. pkg/monitoring/distribution.go

    	d api.Float64Histogram
    	// precomputedRecordOption is just a precomputation to avoid allocations on each record call
    	precomputedRecordOption []api.RecordOption
    }
    
    var _ Metric = &distribution{}
    
    func newDistribution(o options) *distribution {
    	d, err := meter().Float64Histogram(o.name,
    		api.WithDescription(o.description),
    		api.WithUnit(string(o.unit)))
    	if err != nil {
    		log.Fatalf("failed to create distribution: %v", err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. pkg/wasm/monitoring.go

    		"number of Wasm config conversion count and results, including success, no remote load, marshal failure, remote fetch failure, miss remote fetch hint.",
    	)
    
    	wasmConfigConversionDuration = monitoring.NewDistribution(
    		"wasm_config_conversion_duration",
    		"Total time in milliseconds istio-agent spends on converting remote load in Wasm config.",
    		[]float64{1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384},
    	)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. pkg/monitoring/monitoring.go

    		Description: description,
    	})
    	return newDerivedGauge(name, description)
    }
    
    // NewDistribution creates a new Metric with an aggregation type of Distribution. This means that the
    // data collected by the Metric will be collected and exported as a histogram, with the specified bounds.
    func NewDistribution(name, description string, bounds []float64, opts ...Options) Metric {
    	knownMetrics.register(MetricDefinition{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  9. pkg/xds/monitoring.go

    		"Total number of XDS responses from pilot rejected by proxy.",
    	)
    
    	ResponseWriteTimeouts = monitoring.NewSum(
    		"pilot_xds_write_timeout",
    		"Pilot XDS response write timeouts.",
    	)
    
    	sendTime = monitoring.NewDistribution(
    		"pilot_xds_send_time",
    		"Total time in seconds Pilot takes to send generated configuration.",
    		[]float64{.01, .1, 1, 3, 5, 10, 20, 30},
    	)
    )
    
    func IncrementXDSRejects(xdsType string, node, errCode string) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. pkg/monitoring/monitoring_test.go

    	)
    
    	goofySum = testSum.With(kind.Value("goofy"))
    
    	hookSum = monitoring.NewSum(
    		"hook_total",
    		"Number of hook events observed",
    	)
    
    	testDistribution = monitoring.NewDistribution(
    		"test_buckets",
    		"Testing distribution functionality",
    		[]float64{0, 2.5, 7, 8, 10, 99, 154.3},
    		monitoring.WithUnit(monitoring.Seconds),
    	)
    
    	testGauge = monitoring.NewGauge(
    		"test_gauge",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 8.4K bytes
    - Viewed (0)
Back to top