cfg/app/promtail/schema/pipeline.cue

107 lines
1.7 KiB
Plaintext

package schema
#PipelineStage: {
cri?: {
max_partial_lines?: int
max_partial_line_size?: int
max_partial_line_size_truncate?: bool
}
decolorize?: null
drop?: {
source?: [...string] | string
separator?: string
expression?: string
value?: string
older_than?: string
longer_than?: string | int
drop_counter_reason?: string
}
json?: {
expressions?: [string]: string
source?: string
drop_malformed?: bool
}
labelallow?: [...string]
labeldrop?: [...string]
labels?: [string]: string
limit?: {
rate?: int
burst?: int
by_label_name?: string
max_distinct_labels?: int
drop?: bool
}
logfmt?: {
mapping?: [string]: string
source?: string
}
match?: {
selector: string
pipeline_name?: string
action?: "keep" | "drop"
drop_counter_reason?: string
stages?: [#PipelineStage]
}
metrics?: [string]: #CounterMetric | #GaugeMetric | #HistogramMetric
multiline?: {
firstline: string
max_wait_time?: string
max_lines?: int
}
output?: {
source: string
}
pack?: {
labels: [string]
ingest_timestamp?: bool
}
regex?: {
expression: string
source?: string
}
replace?: {
expression: string
source?: string
replace?: string
}
sampling?: {
rate?: float
}
static_labels?: [string]: string
template?: {
source: string
template: string
}
tenant?: {
label?: string
source?: string
value?: string
}
timestamp?: {
source: string
format: string
fallback_formats?: [...string]
location?: string
}
}