summaryrefslogtreecommitdiffstats
path: root/monitoring/ceph-mixin/tests_dashboards/features/osd-device-details.feature
blob: 0d6ca8b17154270944eb2ad077a7db47dd6b1460 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Feature: OSD device details

Scenario: "Test Physical Device Latency for $osd - Reads"
  Given the following series:
    | metrics | values |
    | node_disk_reads_completed_total{device="sda",instance="localhost"} | 10 60 |
    | node_disk_reads_completed_total{device="sdb",instance="localhost"} | 10 60 |
    | node_disk_read_time_seconds_total{device="sda",instance="localhost"} | 100 600 |
    | node_disk_read_time_seconds_total{device="sdb",instance="localhost"} | 100 600 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.0",device="/dev/sda",instance="localhost:9283"} | 1.0 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.1",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
  When variable `osd` is `osd.0`
  Then Grafana panel `Physical Device Latency for $osd` with legend `{{instance}}/{{device}} Reads` shows:
    | metrics | values |
    | {device="sda",instance="localhost"} | 10 |

Scenario: "Test Physical Device Latency for $osd - Writes"
  Given the following series:
    | metrics | values |
    | node_disk_writes_completed_total{device="sda",instance="localhost"} | 10 60 |
    | node_disk_writes_completed_total{device="sdb",instance="localhost"} | 10 60 |
    | node_disk_write_time_seconds_total{device="sda",instance="localhost"} | 100 600 |
    | node_disk_write_time_seconds_total{device="sdb",instance="localhost"} | 100 600 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.0",device="/dev/sda",instance="localhost:9283"} | 1.0 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.1",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
  When variable `osd` is `osd.0`
  Then Grafana panel `Physical Device Latency for $osd` with legend `{{instance}}/{{device}} Writes` shows:
    | metrics | values |
    | {device="sda",instance="localhost"} | 10 |

Scenario: "Test Physical Device R/W IOPS for $osd - Writes"
  Given the following series:
    | metrics | values |
    | node_disk_writes_completed_total{device="sda",instance="localhost"} | 10 100 |
    | node_disk_writes_completed_total{device="sdb",instance="localhost"} | 10 100 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.0",device="/dev/sda",instance="localhost:9283"} | 1.0 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.1",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
  When variable `osd` is `osd.0`
  Then Grafana panel `Physical Device R/W IOPS for $osd` with legend `{{device}} on {{instance}} Writes` shows:
    | metrics | values |
    | {device="sda",instance="localhost"} | 1.5 |

Scenario: "Test Physical Device R/W IOPS for $osd - Reads"
  Given the following series:
    | metrics | values |
    | node_disk_reads_completed_total{device="sda",instance="localhost"} | 10 100 |
    | node_disk_reads_completed_total{device="sdb",instance="localhost"} | 10 100 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.0",device="/dev/sda",instance="localhost:9283"} | 1.0 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.1",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
  When variable `osd` is `osd.0`
  Then Grafana panel `Physical Device R/W IOPS for $osd` with legend `{{device}} on {{instance}} Reads` shows:
    | metrics | values |
    | {device="sda",instance="localhost"} | 1.5 |

Scenario: "Test Physical Device R/W Bytes for $osd - Reads"
  Given the following series:
    | metrics | values |
    | node_disk_reads_completed_total{device="sda",instance="localhost"} | 10 100 |
    | node_disk_reads_completed_total{device="sdb",instance="localhost"} | 10 100 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.0",device="/dev/sda",instance="localhost:9283"} | 1.0 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.1",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
  When variable `osd` is `osd.0`
  Then Grafana panel `Physical Device R/W IOPS for $osd` with legend `{{device}} on {{instance}} Reads` shows:
    | metrics | values |
    | {device="sda",instance="localhost"} | 1.5 |

Scenario: "Test Physical Device R/W Bytes for $osd - Writes"
  Given the following series:
    | metrics | values |
    | node_disk_writes_completed_total{device="sda",instance="localhost"} | 10 100 |
    | node_disk_writes_completed_total{device="sdb",instance="localhost"} | 10 100 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.0",device="/dev/sda",instance="localhost:9283"} | 1.0 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.1",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
  When variable `osd` is `osd.0`
  Then Grafana panel `Physical Device R/W IOPS for $osd` with legend `{{device}} on {{instance}} Writes` shows:
    | metrics | values |
    | {device="sda",instance="localhost"} | 1.5 |

Scenario: "Test Physical Device Util% for $osd"
  Given the following series:
    | metrics | values |
    | node_disk_io_time_seconds_total{device="sda",instance="localhost:9100"} | 10 100 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.0",device="/dev/sda",instance="localhost:9283"} | 1.0 |
    | ceph_disk_occupation_human{job="ceph",ceph_daemon="osd.1",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
  When variable `osd` is `osd.0`
  Then Grafana panel `Physical Device Util% for $osd` with legend `{{device}} on {{instance}}` shows:
    | metrics | values |
    | {device="sda",instance="localhost"} | 1.5 |