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

Function pushVultureMetrics

cmd/tempo-vulture/main.go:443–455  ·  view source on GitHub ↗
(metrics traceMetrics)

Source from the content-addressed store, hash-verified

441}
442
443func pushVultureMetrics(metrics traceMetrics) {
444 metricTracesInspected.Add(float64(metrics.requested))
445 metricTracesErrors.WithLabelValues("incorrectresult").Add(float64(metrics.incorrectResult))
446 metricTracesErrors.WithLabelValues("incorrect_metrics_result").Add(float64(metrics.incorrectMetricsResult))
447 metricTracesErrors.WithLabelValues("missingspans").Add(float64(metrics.missingSpans))
448 metricTracesErrors.WithLabelValues("notfound_search").Add(float64(metrics.notFoundSearch))
449 metricTracesErrors.WithLabelValues("notfound_traceql").Add(float64(metrics.notFoundTraceQL))
450 metricTracesErrors.WithLabelValues("notfound_byid").Add(float64(metrics.notFoundByID))
451 metricTracesErrors.WithLabelValues("notfound_metrics").Add(float64(metrics.notFoundByMetrics))
452 metricTracesErrors.WithLabelValues("inaccurate_metrics").Add(float64(metrics.inaccurateMetrics))
453 metricTracesErrors.WithLabelValues("requestfailed").Add(float64(metrics.requestFailed))
454 metricTracesErrors.WithLabelValues("notfound_search_attribute").Add(float64(metrics.notFoundSearchAttribute))
455}
456
457func selectPastTimestamp(start, stop time.Time, interval, retention time.Duration, r *rand.Rand) (newStart, ts time.Time) {
458 oldest := stop.Add(-retention)

Callers 3

doReadFunction · 0.85
doSearchFunction · 0.85
doMetricsFunction · 0.85

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected