Commit 124f2c12 authored by Rizwan Shakoor's avatar Rizwan Shakoor

new alert rule for jvm added

parent 22b59ee2
Pipeline #4295 passed with stages
in 3 seconds
...@@ -12,7 +12,7 @@ local my_alert_condition_A = alert_model_data.new( ...@@ -12,7 +12,7 @@ local my_alert_condition_A = alert_model_data.new(
reducerType='last', reducerType='last',
); );
local uid = 12001211001; local uid = 12112001;
local my_alert_condition_B = alert_model_data.new( local my_alert_condition_B = alert_model_data.new(
...@@ -33,7 +33,7 @@ alert_test.new( ...@@ -33,7 +33,7 @@ alert_test.new(
orgID=1, orgID=1,
folderUID='ab_xyz1234', folderUID='ab_xyz1234',
ruleGroup='my_alert-group', ruleGroup='my_alert-group',
title='alert_my_demo', title='alert_jvm_demo',
condition='C', condition='C',
updated='2023-04-09T15:52:13+05:00', updated='2023-04-09T15:52:13+05:00',
noDataState='NoData', noDataState='NoData',
...@@ -51,7 +51,7 @@ alert_test.new( ...@@ -51,7 +51,7 @@ alert_test.new(
to=0, to=0,
datasourceUid='Dxn-4VYVk', datasourceUid='Dxn-4VYVk',
editorMode='code', editorMode='code',
expr='jvm_threads_states_threads{state="runnable"}', expr='jvm_memory_max_bytes{job="prometheus", id="G1 Old Gen"}',
hide='false', hide='false',
intervalMs=2000, intervalMs=2000,
legendFormat='__auto', legendFormat='__auto',
...@@ -86,5 +86,5 @@ alert_test.new( ...@@ -86,5 +86,5 @@ alert_test.new(
modelCondition=my_alert_condition_B modelCondition=my_alert_condition_B
) )
) + { ) + {
'for': '1m', 'for': '2m',
} }
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