24 lines
700 B
Go
24 lines
700 B
Go
|
package lines
|
||
|
|
||
|
import (
|
||
|
"git.k-space.ee/k-space/logmower-shipper/pkg/globals"
|
||
|
prom "github.com/prometheus/client_golang/prometheus"
|
||
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
promRecordDroppedTooLarge = promauto.NewCounterVec(prom.CounterOpts{
|
||
|
Namespace: globals.PrometheusPrefix,
|
||
|
// Subsystem: "record",
|
||
|
Name: "dropped_lines", // "dropped",
|
||
|
Help: "Records dropped due to being too large",
|
||
|
}, []string{"filename"})
|
||
|
|
||
|
promRecordPrefixParsingErr = promauto.NewCounterVec(prom.CounterOpts{
|
||
|
Namespace: globals.PrometheusPrefix,
|
||
|
Subsystem: "record",
|
||
|
Name: "parsing_errors",
|
||
|
Help: "Errors while parsing log line prefixes",
|
||
|
}, []string{"filename"})
|
||
|
)
|