Skip to content

Commit

Permalink
chore: update query_victoriametrics
Browse files Browse the repository at this point in the history
  • Loading branch information
ezhil56x committed Sep 11, 2024
1 parent 0534696 commit 4312c38
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions examples/workflows/query_victoriametrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,33 @@ workflow:
queryType: query

actions:
- name: ntfy-action
- 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:
config: "{{ providers.ntfy }}"
type: ntfy
type: slack
config: "{{ providers.slack }}"
with:
message: "Result: {{ steps.victoriametrics-step.results.data.result }}"
topic: victoriametrics
message: "Result: {{ steps.victoriametrics-step.results.data.result.0.value.1 }} is greater than 0.0040! 🚨"

- name: slack-action
- name: trigger-slack2
if: "{{ A }}"
provider:
config: "{{ providers.slack }}"
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 }}"
message: "Result: {{ steps.victoriametrics-step.results.data.result.0.value.1 }} is greater than 0.0040! 🚨"
topic: ezhil

0 comments on commit 4312c38

Please sign in to comment.