Skip to content

promtail: relax checks with #PromtailPipelineStage

Ghost User requested to merge prom-eval-time into master
promtail: relax checks with #PromtailPipelineStage

The #PromtailPipelineStage is a big disjunction and slow to be unified with in the current cue version.

Defined stages inside promtail/custom_metrics.cue are still properly
validated by #PromtailPipelineStageMatch.

Theses custom stages are then used in
promtail.config.snippets.pipelineStages. So no real risks of placing bad
data there.

master:

 time cue eval  >/dev/null

real    0m35.643s
user    1m1.623s
sys     0m1.378sum

prom-eval-time:

 time cue eval  >/dev/null

real    0m33.615s
user    0m58.044s
sys     0m1.420s

Not a big difference, but noticable with trackbone v2, as it will unify
the configuration multiple times when running it.
Edited by Ghost User

Merge request reports

Loading