mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* [backend-scheduler] require minimum time between tenant sorting * [backend-scheduler] remove compaction.backoff configuration * Rename metric for clarity * Generate config manifest * Update changelog * Update changelog * Move log message * Include additional guidance for minimum cycle interval * Include additional guidance for minimum cycle interval
30 lines
1.1 KiB
Go
30 lines
1.1 KiB
Go
package provider
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
var (
|
|
metricJobsCreated = promauto.NewCounterVec(prometheus.CounterOpts{
|
|
Namespace: "tempo_backend_scheduler",
|
|
Name: "compaction_jobs_created_total",
|
|
Help: "Total number of compaction jobs created",
|
|
}, []string{"tenant"})
|
|
metricTenantReset = promauto.NewCounterVec(prometheus.CounterOpts{
|
|
Namespace: "tempo_backend_scheduler",
|
|
Name: "compaction_tenant_reset_total",
|
|
Help: "The number of times the tenant is changed",
|
|
}, []string{"tenant"})
|
|
metricEmptyTenantCycle = promauto.NewCounter(prometheus.CounterOpts{
|
|
Namespace: "tempo_backend_scheduler",
|
|
Name: "compaction_empty_tenant_cycle_total",
|
|
Help: "The number of compaction cycles where no tenant had work available",
|
|
})
|
|
metricTenantEmptyJob = promauto.NewCounter(prometheus.CounterOpts{
|
|
Namespace: "tempo_backend_scheduler",
|
|
Name: "compaction_tenant_empty_job_total",
|
|
Help: "The number of times an empty job was received from the priority queue",
|
|
})
|
|
)
|