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/storage/stores/shipper/index/metrics.go

20 lines
585 B

package index
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
type metrics struct {
openExistingFileFailuresTotal prometheus.Counter
}
func newMetrics(r prometheus.Registerer) *metrics {
return &metrics{
openExistingFileFailuresTotal: promauto.With(r).NewCounter(prometheus.CounterOpts{
Namespace: "loki_boltdb_shipper",
Name: "open_existing_file_failures_total",
Help: "Total number of failures in opening of existing files while loading active index tables during startup",
}),
}
}