1+ <form >
2+ <label >Memory</label >
3+ <fieldset submitButton =" false" autoRun =" true" >
4+ <input type
5+ =" time" token =" date-range" searchWhenChanged =" true" >
6+ <label ></label >
7+ <default >
8+ <earliest >-24h@h</earliest >
9+ <latest >now</latest >
10+ </default >
11+ </input >
12+ <input type =" multiselect" token =" host" searchWhenChanged =" true" >
13+ <label >Host</label >
14+ <prefix >(</prefix >
15+ <suffix >)</suffix >
16+ <valuePrefix >host=</valuePrefix >
17+ <delimiter > OR </delimiter >
18+ <fieldForLabel >host</fieldForLabel >
19+ <fieldForValue >host</fieldForValue >
20+ <search >
21+ <query >| metasearch (sourcetype=marklogic_error OR sourcetype=marklogic_audit) host=* | stats count by host</query >
22+ </search >
23+ <choice value =" *" >All</choice >
24+ <default >*</default >
25+ </input >
26+ <input type =" dropdown" token =" aggregate" searchWhenChanged =" true" >
27+ <label >Aggregate</label >
28+ <choice value =" avg" >avg</choice >
29+ <choice value =" perc95" >perc95</choice >
30+ <choice value =" max" >max</choice >
31+ <choice value =" median" >median</choice >
32+ <choice value =" min" >min</choice >
33+ <default >avg</default >
34+ </input >
35+ </fieldset >
36+ <row >
37+ <panel >
38+ <single >
39+ <title >Low Memory Warnings</title >
40+ <search >
41+ <query >`marklogic_error` $host$ "Warning: Memory low"
42+ | timechart count as Warnings
43+ | accum Warnings</query >
44+ <earliest >$date-range.earliest$</earliest >
45+ <latest >$date-range.latest$</latest >
46+ <refresh >5m</refresh >
47+ <refreshType >delay</refreshType >
48+ </search >
49+ <option name =" colorBy" >trend</option >
50+ <option name =" colorMode" >block</option >
51+ <option name =" drilldown" >all</option >
52+ <option name =" rangeColors" >["0x53a051","0xdc4e41"]</option >
53+ <option name =" rangeValues" >[0]</option >
54+ <option name =" refresh.display" >progressbar</option >
55+ <option name =" trellis.enabled" >0</option >
56+ <option name =" trellis.size" >medium</option >
57+ <option name =" trendColorInterpretation" >inverse</option >
58+ <option name =" useColors" >1</option >
59+ </single >
60+ </panel >
61+ <panel >
62+ <title >Forest + Cache % of physical</title >
63+ <chart >
64+ <search >
65+ <query >`marklogic_error` $host$ "Warning: Memory low"
66+ | rex field=_raw "forest\+cache=(?< ForestCache>\d+)%phys"
67+ | timechart $aggregate$(ForestCache) as ForestCache by host limit=0 useother=false</query >
68+ <earliest >$date-range.earliest$</earliest >
69+ <latest >$date-range.latest$</latest >
70+ <refresh >10m</refresh >
71+ <refreshType >delay</refreshType >
72+ </search >
73+ <option name =" charting.chart" >line</option >
74+ <option name =" charting.drilldown" >all</option >
75+ <option name =" refresh.display" >progressbar</option >
76+ <drilldown >
77+ <set token =" form.host" >$click.name2$</set >
78+ </drilldown >
79+ </chart >
80+ </panel >
81+ <panel >
82+ <title >Huge + Anon + Swap + File % of physical</title >
83+ <chart >
84+ <search >
85+ <query >`marklogic_error` $host$ "Warning: Memory low"
86+ | rex field=_raw "huge\+anon\+swap\+file=(?< HugeAnonSwapFile>\d+)%phys"
87+ | timechart $aggregate$(HugeAnonSwapFile) as HugeAnonSwapFile by host limit=0 useother=false</query >
88+ <earliest >$date-range.earliest$</earliest >
89+ <latest >$date-range.latest$</latest >
90+ <refresh >10m</refresh >
91+ <refreshType >delay</refreshType >
92+ </search >
93+ <option name =" charting.chart" >line</option >
94+ <option name =" charting.drilldown" >all</option >
95+ <option name =" refresh.display" >progressbar</option >
96+ <drilldown >
97+ <set token =" form.host" >$click.name2$</set >
98+ </drilldown >
99+ </chart >
100+ </panel >
101+ </row >
102+ <row >
103+ <panel >
104+ <title >Memory % Physical Used</title >
105+ <chart >
106+ <search >
107+ <query >`marklogic_error` $host$ "Info: Memory"
108+ | rex "Info: Memory (?< memory_pct>\d+)%"
109+ | timechart $aggregate$(memory_pct) by host limit=0 useother=false</query >
110+ <earliest >$date-range.earliest$</earliest >
111+ <latest >$date-range.latest$</latest >
112+ <refresh >5m</refresh >
113+ <refreshType >delay</refreshType >
114+ </search >
115+ <option name =" charting.chart" >line</option >
116+ <option name =" charting.chart.nullValueMode" >connect</option >
117+ <option name =" charting.drilldown" >all</option >
118+ <option name =" refresh.display" >progressbar</option >
119+ <drilldown >
120+ <set token =" form.host" >$click.name2$</set >
121+ </drilldown >
122+ </chart >
123+ </panel >
124+ <panel >
125+ <title >Size %</title >
126+ <chart >
127+ <search >
128+ <query >`marklogic_error` $host$ "Info: Memory"
129+ | rex field=size "(?< size>\d+)\((?< size_pct>\d+)%\)"
130+ | timechart $aggregate$(size_pct) by host limit=0 useother=false</query >
131+ <earliest >$date-range.earliest$</earliest >
132+ <latest >$date-range.latest$</latest >
133+ <refresh >5m</refresh >
134+ <refreshType >delay</refreshType >
135+ </search >
136+ <option name =" charting.chart" >line</option >
137+ <option name =" charting.chart.nullValueMode" >connect</option >
138+ <option name =" charting.drilldown" >all</option >
139+ <option name =" refresh.display" >progressbar</option >
140+ <drilldown >
141+ <set token =" form.host" >$click.name2$</set >
142+ </drilldown >
143+ </chart >
144+ </panel >
145+ </row >
146+ <row >
147+ <panel >
148+ <title >RSS %</title >
149+ <chart >
150+ <search >
151+ <query >`marklogic_error` $host$ "Info: Memory"
152+ | rex field=rss "(?< rss>\d+)\((?< rss_pct>\d+)%\)"
153+ | fillnull value=0
154+ | timechart $aggregate$(rss_pct) by host limit=0 useother=false</query >
155+ <earliest >$date-range.earliest$</earliest >
156+ <latest >$date-range.latest$</latest >
157+ <refresh >5m</refresh >
158+ <refreshType >delay</refreshType >
159+ </search >
160+ <option name =" charting.chart" >line</option >
161+ <option name =" charting.chart.nullValueMode" >connect</option >
162+ <option name =" charting.drilldown" >all</option >
163+ <option name =" refresh.display" >progressbar</option >
164+ <drilldown >
165+ <set token =" form.host" >$click.name2$</set >
166+ </drilldown >
167+ </chart >
168+ </panel >
169+ <panel >
170+ <title >Huge Pages % Used</title >
171+ <chart >
172+ <search >
173+ <query >`marklogic_error` $host$ "Info: Memory"
174+ | rex field=huge "(?< huge>\d+)\((?< huge_pct>\d+)%\)"
175+ | fillnull value=0
176+ | timechart $aggregate$(huge_pct) by host limit=0 useother=false</query >
177+ <earliest >$date-range.earliest$</earliest >
178+ <latest >$date-range.latest$</latest >
179+ <refresh >5m</refresh >
180+ <refreshType >delay</refreshType >
181+ </search >
182+ <option name =" charting.chart" >line</option >
183+ <option name =" charting.chart.nullValueMode" >connect</option >
184+ <option name =" charting.drilldown" >all</option >
185+ <option name =" refresh.display" >progressbar</option >
186+ <drilldown >
187+ <set token =" form.host" >$click.name2$</set >
188+ </drilldown >
189+ </chart >
190+ </panel >
191+ <panel >
192+ <title >Anon % of Physical</title >
193+ <chart >
194+ <search >
195+ <query >`marklogic_error` $host$ "Info: Memory"
196+ | rex field=anon "(?< anon>\d+)\((?< anon_pct>\d+)%\)"
197+ | fillnull value=0
198+ | timechart $aggregate$(anon_pct) by host limit=0 useother=false</query >
199+ <earliest >$date-range.earliest$</earliest >
200+ <latest >$date-range.latest$</latest >
201+ <refresh >5m</refresh >
202+ <refreshType >delay</refreshType >
203+ </search >
204+ <option name =" charting.chart" >line</option >
205+ <option name =" charting.chart.nullValueMode" >connect</option >
206+ <option name =" charting.drilldown" >all</option >
207+ <option name =" refresh.display" >progressbar</option >
208+ <drilldown >
209+ <set token =" form.host" >$click.name2$</set >
210+ </drilldown >
211+ </chart >
212+ </panel >
213+ <panel >
214+ <title >File % of Physical</title >
215+ <chart >
216+ <search >
217+ <query >`marklogic_error` $host$ "Info: Memory"
218+ | rex field=file "(?< file>\d+)\((?< file_pct>\d+)%\)"
219+ | fillnull value=0
220+ | timechart $aggregate$(file_pct) by host limit=0 useother=false</query >
221+ <earliest >$date-range.earliest$</earliest >
222+ <latest >$date-range.latest$</latest >
223+ <refresh >5m</refresh >
224+ <refreshType >delay</refreshType >
225+ </search >
226+ <option name =" charting.chart" >line</option >
227+ <option name =" charting.chart.nullValueMode" >connect</option >
228+ <option name =" charting.drilldown" >all</option >
229+ <option name =" refresh.display" >progressbar</option >
230+ <drilldown >
231+ <set token =" form.host" >$click.name2$</set >
232+ </drilldown >
233+ </chart >
234+ </panel >
235+ <panel >
236+ <title >Forest % of Physical</title >
237+ <chart >
238+ <search >
239+ <query >`marklogic_error` $host$ "Info: Memory"
240+ | rex field=forest "(?< forest>\d+)\((?< forest_pct>\d+)%\)"
241+ | fillnull value=0
242+ | timechart $aggregate$(forest_pct) by host limit=0 useother=false</query >
243+ <earliest >$date-range.earliest$</earliest >
244+ <latest >$date-range.latest$</latest >
245+ <refresh >5m</refresh >
246+ <refreshType >delay</refreshType >
247+ </search >
248+ <option name =" charting.chart" >line</option >
249+ <option name =" charting.chart.nullValueMode" >connect</option >
250+ <option name =" charting.drilldown" >all</option >
251+ <option name =" refresh.display" >progressbar</option >
252+ <drilldown >
253+ <set token =" form.host" >$click.name2$</set >
254+ </drilldown >
255+ </chart >
256+ </panel >
257+ </row >
258+ <row >
259+ <panel >
260+ <title >Swap Used %</title >
261+ <chart >
262+ <search >
263+ <query >`marklogic_error` $host$ "Info: Memory"
264+ | rex field=swap "(?< swap>\d+)\((?< swap_pct>\d+)%\)"
265+ | fillnull value=0
266+ | timechart $aggregate$(swap_pct) by host limit=0 useother=false</query >
267+ <earliest >$date-range.earliest$</earliest >
268+ <latest >$date-range.latest$</latest >
269+ <refresh >5m</refresh >
270+ <refreshType >delay</refreshType >
271+ </search >
272+ <option name =" charting.chart" >line</option >
273+ <option name =" charting.chart.nullValueMode" >connect</option >
274+ <option name =" charting.drilldown" >all</option >
275+ <option name =" refresh.display" >progressbar</option >
276+ <drilldown >
277+ <set token =" form.host" >$click.name2$</set >
278+ </drilldown >
279+ </chart >
280+ </panel >
281+ <panel >
282+ <title >Unclosed %</title >
283+ <chart >
284+ <search >
285+ <query >`marklogic_error` $host$ "Info: Memory"
286+ | rex field=unclosed "(?< unclosed>\d+)\((?< unclosed_pct>\d+)%\)"
287+ | fillnull value=0
288+ | timechart $aggregate$(unclosed_pct) by host limit=0 useother=false</query >
289+ <earliest >$date-range.earliest$</earliest >
290+ <latest >$date-range.latest$</latest >
291+ <refresh >5m</refresh >
292+ <refreshType >delay</refreshType >
293+ </search >
294+ <option name =" charting.chart" >line</option >
295+ <option name =" charting.chart.nullValueMode" >connect</option >
296+ <option name =" charting.drilldown" >all</option >
297+ <drilldown >
298+ <set token =" form.host" >$click.name2$</set >
299+ </drilldown >
300+ </chart >
301+ </panel >
302+ <panel >
303+ <title >Cache %</title >
304+ <chart >
305+ <search >
306+ <query >`marklogic_error` $host$ "Info: Memory"
307+ | rex field=cache "(?< cache>\d+)\((?< cache_pct>\d+)%\)"
308+ | fillnull value=0
309+ | timechart $aggregate$(cache_pct) by host limit=0 useother=false</query >
310+ <earliest >$date-range.earliest$</earliest >
311+ <latest >$date-range.latest$</latest >
312+ <refresh >5m</refresh >
313+ <refreshType >delay</refreshType >
314+ </search >
315+ <option name =" charting.chart" >line</option >
316+ <option name =" charting.chart.nullValueMode" >connect</option >
317+ <option name =" charting.drilldown" >all</option >
318+ <option name =" refresh.display" >progressbar</option >
319+ <drilldown >
320+ <set token =" form.host" >$click.name2$</set >
321+ </drilldown >
322+ </chart >
323+ </panel >
324+ <panel >
325+ <title >Registry %</title >
326+ <chart >
327+ <search >
328+ <query >`marklogic_error` $host$ "Info: Memory"
329+ | rex field=registry "(?< registry>\d+)\((?< registry_pct>\d+)%\)"
330+ | fillnull value=0
331+ | timechart $aggregate$(registry_pct) by host limit=0 useother=false</query >
332+ <earliest >$date-range.earliest$</earliest >
333+ <latest >$date-range.latest$</latest >
334+ <refresh >5m</refresh >
335+ <refreshType >delay</refreshType >
336+ </search >
337+ <option name =" charting.chart" >line</option >
338+ <option name =" charting.chart.nullValueMode" >connect</option >
339+ <option name =" charting.drilldown" >all</option >
340+ <option name =" refresh.display" >progressbar</option >
341+ <drilldown >
342+ <set token =" form.host" >$click.name2$</set >
343+ </drilldown >
344+ </chart >
345+ </panel >
346+ <panel >
347+ <title >Join %</title >
348+ <chart >
349+ <search >
350+ <query >`marklogic_error` $host$ "Info: Memory"
351+ | rex field=join "(?< join>\d+)\((?< join_pct>\d+)%\)"
352+ | fillnull value=0
353+ | timechart $aggregate$(join_pct) by host limit=0 useother=false</query >
354+ <earliest >$date-range.earliest$</earliest >
355+ <latest >$date-range.latest$</latest >
356+ <refresh >5m</refresh >
357+ <refreshType >delay</refreshType >
358+ </search >
359+ <option name =" charting.chart" >line</option >
360+ <option name =" charting.chart.nullValueMode" >connect</option >
361+ <option name =" charting.drilldown" >all</option >
362+ <option name =" refresh.display" >progressbar</option >
363+ <drilldown >
364+ <set token =" form.host" >$click.name2$</set >
365+ </drilldown >
366+ </chart >
367+ </panel >
368+ </row >
369+ </form >
0 commit comments