summaryrefslogtreecommitdiffstats
path: root/monitoring/ceph-mixin/tests_dashboards/features/ceph-cluster.feature
blob: 1a446cd2c535c9f1cb62d7ae500169fb88b343b2 (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
Feature: Ceph Cluster Dashboard

Scenario: "Test total PG States"
  Given the following series:
    | metrics                  | values |
    | ceph_pg_total{foo="var"} | 10 100 |
    | ceph_pg_total{foo="bar"} | 20 200 |
  Then Grafana panel `PG States` with legend `Total` shows:
    | metrics | values |
    | {}      | 300    |

Scenario: "Test OSDs in"
  Given the following series:
    | metrics                          | values |
    | ceph_osd_in{ceph_daemon="osd.0"} | 1.0    |
    | ceph_osd_in{ceph_daemon="osd.1"} | 0.0    |
    | ceph_osd_in{ceph_daemon="osd.2"} | 1.0    |
  When variable `instance` is `.*`
  Then Grafana panel `OSDs` with legend `In` shows:
    | metrics | values |
    | {}      | 2      |

Scenario: "Test OSDs down"
  Given the following series:
    | metrics                                                  | values |
    | ceph_osd_up{ceph_daemon="osd.0", instance="127.0.0.1"} | 0.0    |
    | ceph_osd_up{ceph_daemon="osd.1", instance="127.0.0.1"} | 0.0    |
    | ceph_osd_up{ceph_daemon="osd.2", instance="127.0.0.1"} | 0.0    |
  When variable `instance` is `127.0.0.1`
  Then Grafana panel `OSDs` with legend `Down` shows:
    | metrics | values |
    | {}      | 3      |

Scenario: "Test OSDs out"
  Given the following series:
    | metrics                                                  | values |
    | ceph_osd_in{ceph_daemon="osd.0", instance="127.0.0.1"} | 0.0    |
    | ceph_osd_in{ceph_daemon="osd.1", instance="127.0.0.1"} | 1.0    |
    | ceph_osd_in{ceph_daemon="osd.2", instance="127.0.0.1"} | 0.0    |
  When variable `instance` is `127.0.0.1`
  Then Grafana panel `OSDs` with legend `Out` shows:
    | metrics | values |
    | {}      | 2      |

Scenario: "Test OSDs all"
  Given the following series:
    | metrics | values |
    | ceph_osd_metadata{ceph_daemon="osd.0", instance="127.0.0.1"} | 1.0 |
    | ceph_osd_metadata{ceph_daemon="osd.1", instance="127.0.0.1"} | 1.0 |
    | ceph_osd_metadata{ceph_daemon="osd.2", instance="127.0.0.1"} | 1.0 |
  When variable `instance` is `127.0.0.1`
  Then Grafana panel `OSDs` with legend `All` shows:
    | metrics | values |
    | {}      | 3      |