Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for MustNewConstMetric (0.08 seconds)

  1. cmd/metrics.go

    	nodesUp, nodesDown := globalNotificationSys.GetPeerOnlineCount()
    	ch <- prometheus.MustNewConstMetric(
    		prometheus.NewDesc(
    			prometheus.BuildFQName(minioNamespace, "nodes", "online"),
    			"Total number of MinIO nodes online",
    			nil, nil),
    		prometheus.GaugeValue,
    		float64(nodesUp),
    	)
    	ch <- prometheus.MustNewConstMetric(
    		prometheus.NewDesc(
    			prometheus.BuildFQName(minioNamespace, "nodes", "offline"),
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 24 04:06:31 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  2. cmd/metrics-v2.go

    			if metric.Histogram == nil {
    				return true
    			}
    			for k, v := range metric.Histogram {
    				labels = append(labels, metric.HistogramBucketLabel)
    				values = append(values, k)
    				ch <- prometheus.MustNewConstMetric(
    					prometheus.NewDesc(
    						prometheus.BuildFQName(string(metric.Description.Namespace),
    							string(metric.Description.Subsystem),
    							string(metric.Description.Name)),
    						metric.Description.Help,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 133.6K bytes
    - Click Count (0)
Back to Top