]> git.proxmox.com Git - ceph.git/blame - ceph/monitoring/ceph-mixin/tests_dashboards/features/ceph-cluster.feature
import ceph quincy 17.2.6
[ceph.git] / ceph / monitoring / ceph-mixin / tests_dashboards / features / ceph-cluster.feature
CommitLineData
20effc67
TL
1Feature: Ceph Cluster Dashboard
2
3Scenario: "Test total PG States"
4 Given the following series:
5 | metrics | values |
6 | ceph_pg_total{foo="var"} | 10 100 |
7 | ceph_pg_total{foo="bar"} | 20 200 |
8 Then Grafana panel `PG States` with legend `Total` shows:
9 | metrics | values |
10 | {} | 300 |
11
12Scenario: "Test OSDs in"
13 Given the following series:
14 | metrics | values |
15 | ceph_osd_in{ceph_daemon="osd.0"} | 1.0 |
16 | ceph_osd_in{ceph_daemon="osd.1"} | 0.0 |
17 | ceph_osd_in{ceph_daemon="osd.2"} | 1.0 |
18 When variable `instance` is `.*`
19 Then Grafana panel `OSDs` with legend `In` shows:
20 | metrics | values |
21 | {} | 2 |
22
23Scenario: "Test OSDs down"
24 Given the following series:
25 | metrics | values |
26 | ceph_osd_up{ceph_daemon="osd.0", instance="127.0.0.1"} | 0.0 |
27 | ceph_osd_up{ceph_daemon="osd.1", instance="127.0.0.1"} | 0.0 |
28 | ceph_osd_up{ceph_daemon="osd.2", instance="127.0.0.1"} | 0.0 |
29 When variable `instance` is `127.0.0.1`
30 Then Grafana panel `OSDs` with legend `Down` shows:
31 | metrics | values |
32 | {} | 3 |
33
34Scenario: "Test OSDs out"
35 Given the following series:
36 | metrics | values |
37 | ceph_osd_in{ceph_daemon="osd.0", instance="127.0.0.1"} | 0.0 |
38 | ceph_osd_in{ceph_daemon="osd.1", instance="127.0.0.1"} | 1.0 |
39 | ceph_osd_in{ceph_daemon="osd.2", instance="127.0.0.1"} | 0.0 |
40 When variable `instance` is `127.0.0.1`
41 Then Grafana panel `OSDs` with legend `Out` shows:
42 | metrics | values |
43 | {} | 2 |
44
45Scenario: "Test OSDs all"
46 Given the following series:
47 | metrics | values |
48 | ceph_osd_metadata{ceph_daemon="osd.0", instance="127.0.0.1"} | 1.0 |
49 | ceph_osd_metadata{ceph_daemon="osd.1", instance="127.0.0.1"} | 1.0 |
50 | ceph_osd_metadata{ceph_daemon="osd.2", instance="127.0.0.1"} | 1.0 |
51 When variable `instance` is `127.0.0.1`
52 Then Grafana panel `OSDs` with legend `All` shows:
53 | metrics | values |
54 | {} | 3 |