Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/engine/stats.go

22 lines
1008 B

package engine
import "github.com/grafana/loki/v3/pkg/xcap"
var (
// Top-level phase durations
statLogicalPlanDuration = xcap.NewStatisticInt64("plan.logical.duration", xcap.AggregationTypeSum)
statPhysicalPlanDuration = xcap.NewStatisticInt64("plan.physical.duration", xcap.AggregationTypeSum)
statPrepareDuration = xcap.NewStatisticInt64("prepare.duration", xcap.AggregationTypeSum)
statExecutionDuration = xcap.NewStatisticInt64("execution.duration", xcap.AggregationTypeSum)
// Physical plan subphases
statPhysicalIndexQueryDuration = xcap.NewStatisticInt64("plan.physical.index_query.duration", xcap.AggregationTypeSum)
statPhysicalOptimizeDuration = xcap.NewStatisticInt64("plan.physical.optimize.duration", xcap.AggregationTypeSum)
// Execution subphases
statReadBatchDuration = xcap.NewStatisticInt64("execute.read_batch.duration", xcap.AggregationTypeSum)
statProcessBatchDuration = xcap.NewStatisticInt64("execute.process_batch.duration", xcap.AggregationTypeSum)
)