Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.
This repository was archived by the owner on May 11, 2026. It is now read-only.

Define threshold condition on Elasticsearch data #477

@ehsanjavadynia

Description

@ehsanjavadynia

Hi, I've read the elasticsearch alerter document. but I didn't realize how I can define my condition based on source.
our elasticsearch document is something like this:
{ "key": "my-key", "value": 20 }

I want to define an alert which detect value higher than 45. Is it possible in hawkular?
I've already tried mapping value to text (using mapping field in context) and it didn't work. value won't be mapped to text.
is it possible to write a condition like this:
"conditions": [ { "type": "EVENT", "dataId": "myDataId", "expression": "source.value > 20" } ]
and can we use other condition types with elasticsearch plugin? (threshold, compare, ...).
Could you help me with this? I have spent two days reading documents and trying...
Thanks 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