cfg/app/promtail/schema/metrics.cue

39 lines
586 B
Plaintext

package schema
#BaseMetric: {
type: string
description?: string
prefix?: string
source?: string
max_idle_duration?: string
}
#CounterMetric: {
#BaseMetric
type: "Counter"
config: {
match_all?: bool
count_entry_bytes?: bool
value?: string
action: "inc" | "add"
}
}
#GaugeMetric: {
#BaseMetric
type: "Gauge"
config: {
value?: string
action: "set" | "inc" | "dec" | "add" | "sub"
}
}
#HistogramMetric: {
#BaseMetric
type: "Histogram"
config: {
value?: string
buckets: [int]
}
}