]> git.proxmox.com Git - ceph.git/blob - ceph/monitoring/ceph-mixin/tests_dashboards/features/host-details.feature
import quincy beta 17.1.0
[ceph.git] / ceph / monitoring / ceph-mixin / tests_dashboards / features / host-details.feature
1 Feature: Host Details Dashboard
2
3 Scenario: "Test OSD"
4 Given the following series:
5 | metrics | values |
6 | ceph_osd_metadata{back_iface="",ceph_daemon="osd.0",cluster_addr="192.168.1.12",device_class="hdd",front_iface="",hostname="127.0.0.1",objectstore="bluestore",public_addr="192.168.1.12",ceph_version="ceph version 17.0.0-8967-g6932a4f702a (6932a4f702a0d557fc36df3ca7a3bca70de42667) quincy (dev)"} | 1.0 |
7 | ceph_osd_metadata{back_iface="",ceph_daemon="osd.1",cluster_addr="192.168.1.12",device_class="hdd",front_iface="",hostname="127.0.0.1",objectstore="bluestore",public_addr="192.168.1.12",ceph_version="ceph version 17.0.0-8967-g6932a4f702a (6932a4f702a0d557fc36df3ca7a3bca70de42667) quincy (dev)"} | 1.0 |
8 | ceph_osd_metadata{back_iface="",ceph_daemon="osd.2",cluster_addr="192.168.1.12",device_class="hdd",front_iface="",hostname="127.0.0.1",objectstore="bluestore",public_addr="192.168.1.12",ceph_version="ceph version 17.0.0-8967-g6932a4f702a (6932a4f702a0d557fc36df3ca7a3bca70de42667) quincy (dev)"} | 1.0 |
9 When variable `ceph_hosts` is `127.0.0.1`
10 Then Grafana panel `OSDs` with legend `EMPTY` shows:
11 | metrics | values |
12 | {} | 3 |
13
14 # IOPS Panel - begin
15
16 Scenario: "Test Disk IOPS - Writes - Several OSDs per device"
17 Given the following series:
18 | metrics | values |
19 | node_disk_writes_completed_total{device="sda",instance="localhost:9100"} | 10+60x1 |
20 | node_disk_writes_completed_total{device="sdb",instance="localhost:9100"} | 10+60x1 |
21 | ceph_disk_occupation_human{ceph_daemon="osd.0 osd.1 osd.2",device="/dev/sda",instance="localhost:9283"} | 1.0 |
22 | ceph_disk_occupation_human{ceph_daemon="osd.3 osd.4 osd.5",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
23 When variable `ceph_hosts` is `localhost`
24 Then Grafana panel `$ceph_hosts Disk IOPS` with legend `{{device}}({{ceph_daemon}}) writes` shows:
25 | metrics | values |
26 | {ceph_daemon="osd.0 osd.1 osd.2", device="sda", instance="localhost"} | 1 |
27 | {ceph_daemon="osd.3 osd.4 osd.5", device="sdb", instance="localhost"} | 1 |
28
29 Scenario: "Test Disk IOPS - Writes - Single OSD per device"
30 Given the following series:
31 | metrics | values |
32 | node_disk_writes_completed_total{device="sda",instance="localhost:9100"} | 10+60x1 |
33 | node_disk_writes_completed_total{device="sdb",instance="localhost:9100"} | 10+60x1 |
34 | ceph_disk_occupation_human{ceph_daemon="osd.0",device="/dev/sda",instance="localhost:9283"} | 1.0 |
35 | ceph_disk_occupation_human{ceph_daemon="osd.1",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
36 When variable `ceph_hosts` is `localhost`
37 Then Grafana panel `$ceph_hosts Disk IOPS` with legend `{{device}}({{ceph_daemon}}) writes` shows:
38 | metrics | values |
39 | {ceph_daemon="osd.0", device="sda", instance="localhost"} | 1 |
40 | {ceph_daemon="osd.1", device="sdb", instance="localhost"} | 1 |
41
42 Scenario: "Test Disk IOPS - Reads - Several OSDs per device"
43 Given the following series:
44 | metrics | values |
45 | node_disk_reads_completed_total{device="sda",instance="localhost:9100"} | 10+60x1 |
46 | node_disk_reads_completed_total{device="sdb",instance="localhost:9100"} | 10+60x1 |
47 | ceph_disk_occupation_human{ceph_daemon="osd.0 osd.1 osd.2",device="/dev/sda",instance="localhost:9283"} | 1.0 |
48 | ceph_disk_occupation_human{ceph_daemon="osd.3 osd.4 osd.5",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
49 When variable `ceph_hosts` is `localhost`
50 Then Grafana panel `$ceph_hosts Disk IOPS` with legend `{{device}}({{ceph_daemon}}) reads` shows:
51 | metrics | values |
52 | {ceph_daemon="osd.0 osd.1 osd.2", device="sda", instance="localhost"} | 1 |
53 | {ceph_daemon="osd.3 osd.4 osd.5", device="sdb", instance="localhost"} | 1 |
54
55 Scenario: "Test Disk IOPS - Reads - Single OSD per device"
56 Given the following series:
57 | metrics | values |
58 | node_disk_reads_completed_total{device="sda",instance="localhost:9100"} | 10+60x1 |
59 | node_disk_reads_completed_total{device="sdb",instance="localhost:9100"} | 10+60x1 |
60 | ceph_disk_occupation_human{ceph_daemon="osd.0",device="/dev/sda",instance="localhost:9283"} | 1.0 |
61 | ceph_disk_occupation_human{ceph_daemon="osd.1",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
62 When variable `ceph_hosts` is `localhost`
63 Then Grafana panel `$ceph_hosts Disk IOPS` with legend `{{device}}({{ceph_daemon}}) reads` shows:
64 | metrics | values |
65 | {ceph_daemon="osd.0", device="sda", instance="localhost"} | 1 |
66 | {ceph_daemon="osd.1", device="sdb", instance="localhost"} | 1 |
67
68 # IOPS Panel - end
69
70 # Node disk bytes written/read panel - begin
71
72 Scenario: "Test disk throughput - read"
73 Given the following series:
74 | metrics | values |
75 | node_disk_read_bytes_total{device="sda",instance="localhost:9100"} | 10+60x1 |
76 | node_disk_read_bytes_total{device="sdb",instance="localhost:9100"} | 100+600x1 |
77 | ceph_disk_occupation_human{ceph_daemon="osd.0",device="/dev/sda",instance="localhost:9283"} | 1.0 |
78 | ceph_disk_occupation_human{ceph_daemon="osd.1",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
79 When variable `ceph_hosts` is `localhost`
80 Then Grafana panel `$ceph_hosts Throughput by Disk` with legend `{{device}}({{ceph_daemon}}) read` shows:
81 | metrics | values |
82 | {ceph_daemon="osd.0", device="sda", instance="localhost"} | 1 |
83 | {ceph_daemon="osd.1", device="sdb", instance="localhost"} | 10 |
84
85 Scenario: "Test disk throughput - write"
86 Given the following series:
87 | metrics | values |
88 | node_disk_written_bytes_total{device="sda",instance="localhost:9100"} | 10+60x1 |
89 | node_disk_written_bytes_total{device="sdb",instance="localhost:9100"} | 100+600x1 |
90 | ceph_disk_occupation_human{ceph_daemon="osd.0",device="/dev/sda",instance="localhost:9283"} | 1.0 |
91 | ceph_disk_occupation_human{ceph_daemon="osd.1",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
92 When variable `ceph_hosts` is `localhost`
93 Then Grafana panel `$ceph_hosts Throughput by Disk` with legend `{{device}}({{ceph_daemon}}) write` shows:
94 | metrics | values |
95 | {ceph_daemon="osd.0", device="sda", instance="localhost"} | 1 |
96 | {ceph_daemon="osd.1", device="sdb", instance="localhost"} | 10 |
97
98 # Node disk bytes written/read panel - end
99
100 Scenario: "Test $ceph_hosts Disk Latency panel"
101 Given the following series:
102 | metrics | values |
103 | node_disk_write_time_seconds_total{device="sda",instance="localhost:9100"} | 10+60x1 |
104 | node_disk_write_time_seconds_total{device="sdb",instance="localhost:9100"} | 10+60x1 |
105 | node_disk_writes_completed_total{device="sda",instance="localhost:9100"} | 10+60x1 |
106 | node_disk_writes_completed_total{device="sdb",instance="localhost:9100"} | 10+60x1 |
107 | node_disk_read_time_seconds_total{device="sda",instance="localhost:9100"} | 10+60x1 |
108 | node_disk_read_time_seconds_total{device="sdb",instance="localhost:9100"} | 10+60x1 |
109 | node_disk_reads_completed_total{device="sda",instance="localhost:9100"} | 10+60x1 |
110 | node_disk_reads_completed_total{device="sdb",instance="localhost:9100"} | 10+60x1 |
111 | ceph_disk_occupation_human{ceph_daemon="osd.0",device="/dev/sda",instance="localhost:9283"} | 1.0 |
112 | ceph_disk_occupation_human{ceph_daemon="osd.1",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
113 When variable `ceph_hosts` is `localhost`
114 Then Grafana panel `$ceph_hosts Disk Latency` with legend `{{device}}({{ceph_daemon}})` shows:
115 | metrics | values |
116 | {ceph_daemon="osd.0", device="sda", instance="localhost"} | 1 |
117 | {ceph_daemon="osd.1", device="sdb", instance="localhost"} | 1 |
118
119 Scenario: "Test $ceph_hosts Disk utilization"
120 Given the following series:
121 | metrics | values |
122 | node_disk_io_time_seconds_total{device="sda",instance="localhost:9100"} | 10+60x1 |
123 | node_disk_io_time_seconds_total{device="sdb",instance="localhost:9100"} | 10+60x1 |
124 | ceph_disk_occupation_human{ceph_daemon="osd.0",device="/dev/sda",instance="localhost:9283"} | 1.0 |
125 | ceph_disk_occupation_human{ceph_daemon="osd.1",device="/dev/sdb",instance="localhost:9283"} | 1.0 |
126 When variable `ceph_hosts` is `localhost`
127 Then Grafana panel `$ceph_hosts Disk utilization` with legend `{{device}}({{ceph_daemon}})` shows:
128 | metrics | values |
129 | {ceph_daemon="osd.0", device="sda", instance="localhost"} | 100 |
130 | {ceph_daemon="osd.1", device="sdb", instance="localhost"} | 100 |
131