- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ExtraLabels (0.09 sec)
-
cmd/metrics-v3-types.go
// adding the given name prefix. The extraLabels are added to each metric as // constant labels. func (m *MetricValues) ToPromMetrics(namePrefix string, extraLabels map[string]string, ) []prometheus.Metric { metrics := make([]prometheus.Metric, 0, len(m.values)) for metricName, mv := range m.values { desc := m.descriptors[metricName] promDesc := desc.toPromDesc(namePrefix, extraLabels) for _, v := range mv {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jul 30 22:28:46 UTC 2024 - 15.6K bytes - Viewed (0) -
cmd/metrics-v3-handler.go
return nil } var metrics []metricDisplay for _, collectorPath := range h.metricsData.collectorPaths { if mg, ok := matchingMG[collectorPath]; ok { var commonLabels []string for k := range mg.ExtraLabels { commonLabels = append(commonLabels, k) } for _, d := range mg.Descriptors { labels := slices.Clone(d.VariableLabels) labels = append(labels, commonLabels...) metric := metricDisplay{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 15 16:28:02 UTC 2024 - 7.8K bytes - Viewed (0)