Skip to content

Commit

Permalink
Merge branch 'GlebBerjoskin/iterative_alert_batch_processing' of gith…
Browse files Browse the repository at this point in the history
…ub.com:keephq/keep into GlebBerjoskin/iterative_alert_batch_processing
  • Loading branch information
GlebBerjoskin committed Sep 16, 2024
2 parents c712acb + 9f38959 commit c5f00ac
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions examples/workflows/query_victoriametrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,37 @@ workflow:
config: "{{ providers.victoriametrics }}"
type: victoriametrics
with:
query: process_memory_limit_bytes
query: avg(rate(process_cpu_seconds_total))
queryType: query
actions: []

actions:
- name: trigger-slack1
condition:
- name: threshold-condition
type: threshold
value: "{{ steps.victoriametrics-step.results.data.result.0.value.1 }}"
compare_to: 0.0050
alias: A
operator: ">"
provider:
type: slack
config: "{{ providers.slack }}"
with:
message: "Result: {{ steps.victoriametrics-step.results.data.result.0.value.1 }} is greater than 0.0040! 🚨"

- name: trigger-slack2
if: "{{ A }}"
provider:
type: slack
config: "{{ providers.slack }}"
with:
message: "Result: {{ steps.victoriametrics-step.results.data.result.0.value.1 }} is greater than 0.0040! 🚨"

- name: trigger-ntfy
if: "{{ A }}"
provider:
type: ntfy
config: "{{ providers.ntfy }}"
with:
message: "Result: {{ steps.victoriametrics-step.results.data.result.0.value.1 }} is greater than 0.0040! 🚨"
topic: ezhil

0 comments on commit c5f00ac

Please sign in to comment.