Commit 31f216ee authored by Rizwan Shakoor's avatar Rizwan Shakoor

Added alert jsonnet file as well

parent 17fd06f1
Pipeline #4193 failed with stages
in 3 seconds
...@@ -12,8 +12,8 @@ local my_alert_condition_A = alert_model_data.new( ...@@ -12,8 +12,8 @@ local my_alert_condition_A = alert_model_data.new(
); );
local my_alert_condition_B = alert_model_data.new( local my_alert_condition_B = alert_model_data.new(
evaluatorParams=10, evaluatorParams=100,
evaluatorType='lt', evaluatorType='gt',
operatorType='and', operatorType='and',
queryRefId='C', queryRefId='C',
queryTimeStart=null, queryTimeStart=null,
...@@ -23,19 +23,19 @@ local my_alert_condition_B = alert_model_data.new( ...@@ -23,19 +23,19 @@ local my_alert_condition_B = alert_model_data.new(
); );
alert_test.new(id=331, alert_test.new(id=389871,
uid='test_uid12344', uid='test_uid389871',
orgID=1, orgID=1,
folderUID='6G7_MULVz', folderUID='ab_xyz1234',
ruleGroup='my_alert-dashboards', ruleGroup='my_alert-dashboards',
title='alert-rule_331', title='alert-rule_for_spring-boot-jvm-with_script',
condition='B', condition='C',
updated="2023-04-09T15:52:13+05:00", updated="2023-04-09T15:52:13+05:00",
noDataState="NoData", noDataState="NoData",
panelId="2", panelId="6",
execErrState="Error", execErrState="Error",
isPaused=false, isPaused=false,
dashboardUid="ABC12345", dashboardUid="ABCJVM123",
interval='2m', interval='2m',
annotationDesc="Alert is Triggering .. Huhhhh!!!!!", annotationDesc="Alert is Triggering .. Huhhhh!!!!!",
annotationSummary="This is Test Rule" annotationSummary="This is Test Rule"
...@@ -43,9 +43,9 @@ alert_test.new(id=331, ...@@ -43,9 +43,9 @@ alert_test.new(id=331,
refId="A", refId="A",
from=600, from=600,
to=0, to=0,
datasourceUid="oQQKKPY4z", datasourceUid="Dxn-4VYVk",
editorMode="code", editorMode="code",
expr="prometheus_http_request_duration_seconds_count", expr="http_server_requests_seconds_count",
hide="false", hide="false",
intervalMs=2000, intervalMs=2000,
legendFormat="__auto", legendFormat="__auto",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment