"displayAliasType": "Always",
"displayType": "Regular",
"displayValueWithAlias": "When Alias Displayed",
- "expr": "sum(ceph_osds_in)",
+ "expr": "sum(ceph_osd_in)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "In",
Scenario: "Test total PG States"
Given the following series:
- | metrics | values |
+ | 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 |
\ No newline at end of file
+ | {} | 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 |