Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for newDerivedGauge (0.17 sec)

  1. security/pkg/server/ca/monitoring.go

    		"citadel_server_root_cert_expiry_timestamp",
    		"The unix timestamp, in seconds, when Citadel root cert will expire. "+
    			"A negative time indicates the cert is expired.",
    	)
    	rootCertExpirySeconds = monitoring.NewDerivedGauge(
    		"citadel_server_root_cert_expiry_seconds",
    		"The time remaining, in seconds, before the root certificate will expire. "+
    			"A negative value indicates the cert is expired.",
    	)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:09 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. security/pkg/nodeagent/cache/monitoring.go

    	numFileSecretFailures = monitoring.NewSum(
    		"num_file_secret_failures_total",
    		"Number of times secret generation failed for files",
    	)
    
    	certExpirySeconds = monitoring.NewDerivedGauge(
    		"cert_expiry_seconds",
    		"The time remaining, in seconds, before the certificate chain will expire. "+
    			"A negative value indicates the cert is expired.",
    	)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. pkg/monitoring/monitoring.go

    	if dm != nil {
    		return dm
    	}
    	return newGauge(o)
    }
    
    // NewDerivedGauge creates a new Gauge Metric. That means that data collected by the new
    // Metric will export only the last recorded value.
    // Unlike NewGauge, the DerivedGauge accepts functions which are called to get the current value.
    func NewDerivedGauge(name, description string) DerivedMetric {
    	knownMetrics.register(MetricDefinition{
    		Name:        name,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  4. pkg/monitoring/derived_gauge.go

    	"istio.io/istio/pkg/slices"
    )
    
    type derivedGauge struct {
    	mu    sync.RWMutex
    	attrs map[attribute.Set]func() float64
    
    	name string
    }
    
    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),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. pilot/pkg/bootstrap/monitoring.go

    )
    
    type monitor struct {
    	monitoringServer *http.Server
    }
    
    const (
    	metricsPath = "/metrics"
    	versionPath = "/version"
    )
    
    var (
    	serverStart = time.Now()
    
    	_ = monitoring.NewDerivedGauge(
    		"istiod_uptime_seconds",
    		"Current istiod server uptime in seconds",
    	).ValueFrom(func() float64 {
    		return time.Since(serverStart).Seconds()
    	})
    
    	versionTag   = monitoring.CreateLabel("version")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 14:41:40 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. pkg/monitoring/monitoring_test.go

    }
    
    var (
    	testDerivedGauge = monitoring.NewDerivedGauge(
    		"test_derived_gauge",
    		"Testing derived gauge functionality",
    	).ValueFrom(func() float64 {
    		return 17.76
    	})
    
    	testDerivedGaugeLabels = monitoring.NewDerivedGauge(
    		"test_derived_gauge_labels",
    		"Testing derived gauge functionality",
    	)
    )
    
    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