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