Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NewDesc (0.07 sec)

  1. cmd/metrics.go

    	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"),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. cmd/metrics-v2.go

    	if metric.Description.Type == histogramMetric {
    		if metric.Histogram == nil {
    			return
    		}
    		for k, v := range metric.Histogram {
    			pmetric, err := prometheus.NewConstMetric(
    				prometheus.NewDesc(
    					prometheus.BuildFQName(string(metric.Description.Namespace),
    						string(metric.Description.Subsystem),
    						string(metric.Description.Name)),
    					metric.Description.Help,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  3. cmd/metrics-resource.go

    // to define Metric and  help string
    func newMinioResourceCollector(metricsGroups []*MetricsGroupV2) *minioResourceCollector {
    	return &minioResourceCollector{
    		metricsGroups: metricsGroups,
    		desc:          prometheus.NewDesc("minio_resource_stats", "Resource statistics exposed by MinIO server", nil, nil),
    	}
    }
    
    func prepareResourceMetrics(rm ResourceMetric, subSys MetricSubsystem, requireAvgMax bool) []MetricV2 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 23:30:33 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. cmd/metrics-v3-types.go

    	return prometheus.BuildFQName(namePrefix, "", string(md.Name))
    }
    
    func (md *MetricDescriptor) toPromDesc(namePrefix string, extraLabels map[string]string) *prometheus.Desc {
    	return prometheus.NewDesc(
    		md.toPromName(namePrefix),
    		md.Help,
    		md.VariableLabels, extraLabels,
    	)
    }
    
    // NewCounterMD - creates a new counter metric descriptor.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 30 22:28:46 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top