Skip to content

Commit ed91b03

Browse files
author
lpempera
committed
add iops to grafana dashbaord
1 parent 103f63a commit ed91b03

File tree

1 file changed

+137
-1
lines changed

1 file changed

+137
-1
lines changed

check-plugins/disk-io/grafana/disk-io.yml

Lines changed: 137 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
name: metric
4242
query: SHOW TAG VALUES FROM "cmd-check-disk-io" WITH KEY = "metric"
4343
refresh: 2
44-
regex: /^(.*)_.*_.*_.*_.*$/
44+
regex: /^(.*)_.*_.*$/
4545
sort: 1
4646
type: query
4747

@@ -271,6 +271,142 @@ spec:
271271
operator: =~
272272
value: /^${metric}_write_bytes_per_second15/
273273

274+
- title: Disk I/O - $metric - IOPs per Second
275+
type: timeseries
276+
gridPos:
277+
h: 8
278+
w: 12
279+
x: 0
280+
y: 1
281+
fieldConfig:
282+
defaults:
283+
color:
284+
mode: palette-classic
285+
custom:
286+
lineInterpolation: smooth
287+
spanNulls: true
288+
decimals: 0
289+
mappings: []
290+
min: 0
291+
unit: number
292+
options:
293+
legend:
294+
calcs:
295+
- first
296+
- min
297+
- mean
298+
- max
299+
- last
300+
displayMode: table
301+
placement: bottom
302+
showLegend: true
303+
304+
targets:
305+
306+
- alias: read_count_per_second1
307+
groupBy:
308+
- params:
309+
- $interval
310+
type: time
311+
measurement: /^$command$/
312+
refId: disk-io-read_count_per_second1
313+
resultFormat: time_series
314+
select:
315+
- - params:
316+
- value
317+
type: field
318+
- params: []
319+
type: mean
320+
tags:
321+
- key: hostname
322+
operator: =~
323+
value: /^$hostname$/
324+
- condition: AND
325+
key: service
326+
operator: '='
327+
value: Disk I/O
328+
- key: metric
329+
operator: =~
330+
value: /^${metric}_read_count_per_second1/
331+
332+
- alias: read_count_per_second5
333+
groupBy:
334+
- params:
335+
- $interval
336+
type: time
337+
measurement: /^$command$/
338+
refId: disk-io-read_count_per_second5
339+
resultFormat: time_series
340+
select:
341+
- - params:
342+
- value
343+
type: field
344+
- params: []
345+
type: mean
346+
tags:
347+
- key: hostname
348+
operator: =~
349+
value: /^$hostname$/
350+
- condition: AND
351+
key: service
352+
operator: '='
353+
value: Disk I/O
354+
- key: metric
355+
operator: =~
356+
value: /^${metric}_read_count_per_second5/
357+
358+
- alias: write_count_per_second1
359+
groupBy:
360+
- params:
361+
- $interval
362+
type: time
363+
measurement: /^$command$/
364+
refId: disk-io-write_count_per_second1
365+
resultFormat: time_series
366+
select:
367+
- - params:
368+
- value
369+
type: field
370+
- params: []
371+
type: mean
372+
tags:
373+
- key: hostname
374+
operator: =~
375+
value: /^$hostname$/
376+
- condition: AND
377+
key: service
378+
operator: '='
379+
value: Disk I/O
380+
- key: metric
381+
operator: =~
382+
value: /^${metric}_write_count_per_second1/
383+
384+
- alias: write_count_per_second5
385+
groupBy:
386+
- params:
387+
- $interval
388+
type: time
389+
measurement: /^$command$/
390+
refId: disk-io-write_count_per_second5
391+
resultFormat: time_series
392+
select:
393+
- - params:
394+
- value
395+
type: field
396+
- params: []
397+
type: mean
398+
tags:
399+
- key: hostname
400+
operator: =~
401+
value: /^$hostname$/
402+
- condition: AND
403+
key: service
404+
operator: '='
405+
value: Disk I/O
406+
- key: metric
407+
operator: =~
408+
value: /^${metric}_write_count_per_second5/
409+
274410

275411
- title: Disk I/O - $metric - Bytes
276412
type: timeseries

0 commit comments

Comments
 (0)