Skip to content

Not able to load or prepare loki recording rule with Cortex 0.10.7 #271

@frankbaumfalk

Description

@frankbaumfalk

When trying to prepare and load a loki recording rule with

 "cortextool rules load --backend=loki <file>"

I get the error :
"cortextool: error: 1:52: parse error: unexpected character: '|', try --help".
(This is usually the error when a pipe sign is used in the expression and flag "--backend=loki" is not passed.)
A "cortextool rules prepare --backend=loki " does not work either.

But running check and lint the file with "cortextool rules check/lint --backend=loki " gives no error.
What do I miss ?
Thx in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions