Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Float64ObservableGauge (0.25 sec)

  1. pkg/monitoring/gauge.go

    import (
    	"context"
    	"sync"
    
    	"go.opentelemetry.io/otel/attribute"
    	api "go.opentelemetry.io/otel/metric"
    
    	"istio.io/istio/pkg/log"
    )
    
    type gauge struct {
    	baseMetric
    	g api.Float64ObservableGauge
    
    	// attributeSets stores a map of attributes -> values, for gauges.
    	attributeSetsMutex *sync.RWMutex
    	attributeSets      map[attribute.Set]*gaugeValues
    	currentGaugeSet    *gaugeValues
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. pkg/monitoring/derived_gauge.go

    var _ DerivedMetric = &derivedGauge{}
    
    func newDerivedGauge(name, description string) DerivedMetric {
    	dm := &derivedGauge{
    		name:  name,
    		attrs: map[attribute.Set]func() float64{},
    	}
    	_, err := meter().Float64ObservableGauge(name,
    		api.WithDescription(description),
    		api.WithFloat64Callback(func(ctx context.Context, observer api.Float64Observer) error {
    			dm.mu.RLock()
    			defer dm.mu.RUnlock()
    			for kv, compute := range dm.attrs {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top