MCPcopy
hub / github.com/grafana/tempo / forTenant

Method forTenant

pkg/drain/metrics.go:66–75  ·  view source on GitHub ↗
(tenant string)

Source from the content-addressed store, hash-verified

64}
65
66func (m *metrics) forTenant(tenant string) *tenantMetrics {
67 return &tenantMetrics{
68 PatternsEvictedTotal: m.PatternsEvictedTotal.WithLabelValues(tenant),
69 PatternsExpiredTotal: m.PatternsExpiredTotal.WithLabelValues(tenant),
70 PatternsDetectedTotal: m.PatternsDetectedTotal.WithLabelValues(tenant),
71 LinesSkippedTooManyTokens: m.LinesSkipped.WithLabelValues(TooManyTokens, tenant),
72 LinesSkippedTooFewTokens: m.LinesSkipped.WithLabelValues(TooFewTokens, tenant),
73 TokensPerLine: m.TokensPerLine.WithLabelValues(tenant),
74 }
75}
76
77var globalMetrics = newMetrics(prometheus.DefaultRegisterer)
78

Callers 1

metricsForTenantFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected