Skip to content

Commit af1f748

Browse files
authored
Create sysmetric-pct-busy
1 parent 5c68b43 commit af1f748

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
index=orcl-performance (METRIC_NAME="Average Active Sessions" OR METRIC_NAME = "CPU_COUNT")
2+
| eval aas=if(METRIC_NAME="Average Active Sessions",VALUE,null)
3+
| eval cpu_count=if(METRIC_NAME="CPU_COUNT",VALUE,null)
4+
| stats max(aas) as aas,max(cpu_count) as cpu_count by _time
5+
| eval pct_busy=round(((aas/cpu_count)*100),1)
6+
| eval pct_busy=if(pct_busy > 100,100,pct_busy)
7+
| fields - aas,cpu_count
8+
| sort - _time

0 commit comments

Comments
 (0)