|
101 | 101 | "tableColumn": "", |
102 | 102 | "targets": [ |
103 | 103 | { |
104 | | - "expr": "ceph_health_status", |
| 104 | + "expr": "ceph_health_status{cluster=~'$cluster'}", |
105 | 105 | "format": "time_series", |
106 | 106 | "instant": true, |
107 | 107 | "interval": "$interval", |
|
182 | 182 | "displayAliasType": "Always", |
183 | 183 | "displayType": "Regular", |
184 | 184 | "displayValueWithAlias": "When Alias Displayed", |
185 | | - "expr": "count(ceph_osd_metadata)", |
| 185 | + "expr": "count(ceph_osd_metadata{cluster=~'$cluster'})", |
186 | 186 | "format": "time_series", |
187 | 187 | "intervalFactor": 1, |
188 | 188 | "legendFormat": "All", |
|
197 | 197 | "displayAliasType": "Always", |
198 | 198 | "displayType": "Regular", |
199 | 199 | "displayValueWithAlias": "When Alias Displayed", |
200 | | - "expr": "sum(ceph_osd_in)", |
| 200 | + "expr": "sum(ceph_osd_in{cluster=~'$cluster'})", |
201 | 201 | "format": "time_series", |
202 | 202 | "intervalFactor": 1, |
203 | 203 | "legendFormat": "In", |
|
212 | 212 | "displayAliasType": "Warning / Critical", |
213 | 213 | "displayType": "Regular", |
214 | 214 | "displayValueWithAlias": "When Alias Displayed", |
215 | | - "expr": "sum(ceph_osd_in == bool 0)", |
| 215 | + "expr": "sum(ceph_osd_in{cluster=~'$cluster'} == bool 0)", |
216 | 216 | "format": "time_series", |
217 | 217 | "interval": "", |
218 | 218 | "intervalFactor": 1, |
|
229 | 229 | "displayAliasType": "Always", |
230 | 230 | "displayType": "Regular", |
231 | 231 | "displayValueWithAlias": "When Alias Displayed", |
232 | | - "expr": "sum(ceph_osd_up)", |
| 232 | + "expr": "sum(ceph_osd_up{cluster=~'$cluster'})", |
233 | 233 | "format": "time_series", |
234 | 234 | "intervalFactor": 1, |
235 | 235 | "legendFormat": "Up", |
|
245 | 245 | "displayAliasType": "Warning / Critical", |
246 | 246 | "displayType": "Regular", |
247 | 247 | "displayValueWithAlias": "When Alias Displayed", |
248 | | - "expr": "sum(ceph_osd_up == bool 0)", |
| 248 | + "expr": "sum(ceph_osd_up{cluster=~'$cluster'} == bool 0)", |
249 | 249 | "format": "time_series", |
250 | 250 | "intervalFactor": 1, |
251 | 251 | "legendFormat": "Down", |
|
392 | 392 | "displayAliasType": "Always", |
393 | 393 | "displayType": "Regular", |
394 | 394 | "displayValueWithAlias": "When Alias Displayed", |
395 | | - "expr": "sum(ceph_mon_quorum_status)", |
| 395 | + "expr": "sum(ceph_mon_quorum_status{cluster=~'$cluster'})", |
396 | 396 | "format": "time_series", |
397 | 397 | "interval": "", |
398 | 398 | "intervalFactor": 1, |
|
409 | 409 | "displayAliasType": "Always", |
410 | 410 | "displayType": "Regular", |
411 | 411 | "displayValueWithAlias": "When Alias Displayed", |
412 | | - "expr": "count(ceph_mon_quorum_status)", |
| 412 | + "expr": "count(ceph_mon_quorum_status{cluster=~'$cluster'})", |
413 | 413 | "format": "time_series", |
414 | 414 | "intervalFactor": 1, |
415 | 415 | "legendFormat": "Total", |
|
426 | 426 | "displayAliasType": "Warning / Critical", |
427 | 427 | "displayType": "Annotation", |
428 | 428 | "displayValueWithAlias": "Never", |
429 | | - "expr": "count(ceph_mon_quorum_status) - sum(ceph_mon_quorum_status)", |
| 429 | + "expr": "count(ceph_mon_quorum_status{cluster=~'$cluster'}) - sum(ceph_mon_quorum_status{cluster=~'$cluster'})", |
430 | 430 | "format": "time_series", |
431 | 431 | "intervalFactor": 1, |
432 | 432 | "legendFormat": "MONs out of Quorum", |
|
486 | 486 | "displayAliasType": "Always", |
487 | 487 | "displayType": "Regular", |
488 | 488 | "displayValueWithAlias": "When Alias Displayed", |
489 | | - "expr": "count(ceph_mgr_status == 1) or vector(0)", |
| 489 | + "expr": "count(ceph_mgr_status{cluster=~'$cluster'} == 1) or vector(0)", |
490 | 490 | "format": "time_series", |
491 | 491 | "intervalFactor": 1, |
492 | 492 | "instant": true, |
|
502 | 502 | "displayAliasType": "Always", |
503 | 503 | "displayType": "Regular", |
504 | 504 | "displayValueWithAlias": "When Alias Displayed", |
505 | | - "expr": "count(ceph_mgr_status == 0) or vector(0)", |
| 505 | + "expr": "count(ceph_mgr_status{cluster=~'$cluster'} == 0) or vector(0)", |
506 | 506 | "format": "time_series", |
507 | 507 | "instant": true, |
508 | 508 | "intervalFactor": 1, |
|
577 | 577 | "tableColumn": "", |
578 | 578 | "targets": [ |
579 | 579 | { |
580 | | - "expr": "sum(ceph_osd_stat_bytes_used)/sum(ceph_osd_stat_bytes)", |
| 580 | + "expr": "sum(ceph_osd_stat_bytes_used{cluster=~'$cluster'})/sum(ceph_osd_stat_bytes{cluster=~'$cluster'})", |
581 | 581 | "format": "time_series", |
582 | 582 | "intervalFactor": 1, |
583 | 583 | "legendFormat": "Used", |
|
677 | 677 | "steppedLine": false, |
678 | 678 | "targets": [ |
679 | 679 | { |
680 | | - "expr": "sum(ceph_pg_total)", |
| 680 | + "expr": "sum(ceph_pg_total{cluster=~'$cluster'})", |
681 | 681 | "format": "time_series", |
682 | 682 | "intervalFactor": 1, |
683 | 683 | "legendFormat": "Total", |
684 | 684 | "refId": "A" |
685 | 685 | }, |
686 | 686 | { |
687 | | - "expr": "sum(ceph_pg_active)", |
| 687 | + "expr": "sum(ceph_pg_active{cluster=~'$cluster'})", |
688 | 688 | "format": "time_series", |
689 | 689 | "intervalFactor": 1, |
690 | 690 | "legendFormat": "Active", |
691 | 691 | "refId": "B" |
692 | 692 | }, |
693 | 693 | { |
694 | | - "expr": "sum(ceph_pg_total - ceph_pg_active)", |
| 694 | + "expr": "sum(ceph_pg_total{cluster=~'$cluster'} - ceph_pg_active{cluster=~'$cluster'})", |
695 | 695 | "format": "time_series", |
696 | 696 | "intervalFactor": 1, |
697 | 697 | "legendFormat": "Inactive", |
698 | 698 | "refId": "G" |
699 | 699 | }, |
700 | 700 | { |
701 | | - "expr": "sum(ceph_pg_undersized)", |
| 701 | + "expr": "sum(ceph_pg_undersized{cluster=~'$cluster'})", |
702 | 702 | "format": "time_series", |
703 | 703 | "intervalFactor": 1, |
704 | 704 | "legendFormat": "Undersized", |
705 | 705 | "refId": "F" |
706 | 706 | }, |
707 | 707 | { |
708 | | - "expr": "sum(ceph_pg_degraded)", |
| 708 | + "expr": "sum(ceph_pg_degraded{cluster=~'$cluster'})", |
709 | 709 | "format": "time_series", |
710 | 710 | "intervalFactor": 1, |
711 | 711 | "legendFormat": "Degraded", |
712 | 712 | "refId": "C" |
713 | 713 | }, |
714 | 714 | { |
715 | | - "expr": "sum(ceph_pg_inconsistent)", |
| 715 | + "expr": "sum(ceph_pg_inconsistent{cluster=~'$cluster'})", |
716 | 716 | "format": "time_series", |
717 | 717 | "intervalFactor": 1, |
718 | 718 | "legendFormat": "Inconsistent", |
719 | 719 | "refId": "D" |
720 | 720 | }, |
721 | 721 | { |
722 | | - "expr": "sum(ceph_pg_down)", |
| 722 | + "expr": "sum(ceph_pg_down{cluster=~'$cluster'})", |
723 | 723 | "format": "time_series", |
724 | 724 | "intervalFactor": 1, |
725 | 725 | "legendFormat": "Down", |
|
813 | 813 | "steppedLine": false, |
814 | 814 | "targets": [ |
815 | 815 | { |
816 | | - "expr": "quantile(0.95, ceph_osd_apply_latency_ms)", |
| 816 | + "expr": "quantile(0.95, ceph_osd_apply_latency_ms{cluster=~'$cluster'})", |
817 | 817 | "format": "time_series", |
818 | 818 | "intervalFactor": 1, |
819 | 819 | "legendFormat": "Apply Latency P_95", |
820 | 820 | "refId": "A" |
821 | 821 | }, |
822 | 822 | { |
823 | | - "expr": "quantile(0.95, ceph_osd_commit_latency_ms)", |
| 823 | + "expr": "quantile(0.95, ceph_osd_commit_latency_ms{cluster=~'$cluster'})", |
824 | 824 | "format": "time_series", |
825 | 825 | "intervalFactor": 1, |
826 | 826 | "legendFormat": "Commit Latency P_95", |
827 | 827 | "refId": "B" |
828 | 828 | }, |
829 | 829 | { |
830 | | - "expr": "avg(ceph_osd_apply_latency_ms)", |
| 830 | + "expr": "avg(ceph_osd_apply_latency_ms{cluster=~'$cluster'})", |
831 | 831 | "format": "time_series", |
832 | 832 | "intervalFactor": 1, |
833 | 833 | "legendFormat": "Avg Apply Latency", |
834 | 834 | "refId": "C" |
835 | 835 | }, |
836 | 836 | { |
837 | | - "expr": "avg(ceph_osd_commit_latency_ms)", |
| 837 | + "expr": "avg(ceph_osd_commit_latency_ms{cluster=~'$cluster'})", |
838 | 838 | "format": "time_series", |
839 | 839 | "intervalFactor": 1, |
840 | 840 | "legendFormat": "Avg Commit Latency", |
|
928 | 928 | "steppedLine": false, |
929 | 929 | "targets": [ |
930 | 930 | { |
931 | | - "expr": "sum(irate(ceph_osd_op_w_in_bytes[1m]))", |
| 931 | + "expr": "sum(irate(ceph_osd_op_w_in_bytes{cluster=~'$cluster'}[1m]))", |
932 | 932 | "format": "time_series", |
933 | 933 | "intervalFactor": 1, |
934 | 934 | "legendFormat": "Writes", |
935 | 935 | "refId": "A" |
936 | 936 | }, |
937 | 937 | { |
938 | | - "expr": "sum(irate(ceph_osd_op_r_out_bytes[1m]))", |
| 938 | + "expr": "sum(irate(ceph_osd_op_r_out_bytes{cluster=~'$cluster'}[1m]))", |
939 | 939 | "format": "time_series", |
940 | 940 | "intervalFactor": 1, |
941 | 941 | "legendFormat": "Reads", |
|
1024 | 1024 | "steppedLine": false, |
1025 | 1025 | "targets": [ |
1026 | 1026 | { |
1027 | | - "expr": "sum(deriv(ceph_pool_stored[1m]))", |
| 1027 | + "expr": "sum(deriv(ceph_pool_stored{cluster=~'$cluster'}[1m]))", |
1028 | 1028 | "format": "time_series", |
1029 | 1029 | "intervalFactor": 1, |
1030 | 1030 | "refId": "A" |
|
1097 | 1097 | "span": 12, |
1098 | 1098 | "targets": [ |
1099 | 1099 | { |
1100 | | - "expr": "ceph_osd_stat_bytes_used / ceph_osd_stat_bytes", |
| 1100 | + "expr": "ceph_osd_stat_bytes_used{cluster=~'$cluster'} / ceph_osd_stat_bytes{cluster=~'$cluster'}", |
1101 | 1101 | "format": "time_series", |
1102 | 1102 | "interval": "1m", |
1103 | 1103 | "intervalFactor": 1, |
|
1159 | 1159 | "links": [], |
1160 | 1160 | "targets": [ |
1161 | 1161 | { |
1162 | | - "expr": "ceph_osd_numpg", |
| 1162 | + "expr": "ceph_osd_numpg{cluster=~'$cluster'}", |
1163 | 1163 | "format": "time_series", |
1164 | 1164 | "intervalFactor": 1, |
1165 | 1165 | "legendFormat": "#PGs", |
|
1235 | 1235 | "steppedLine": false, |
1236 | 1236 | "targets": [ |
1237 | 1237 | { |
1238 | | - "expr": "sum(irate(ceph_osd_recovery_ops[1m]))", |
| 1238 | + "expr": "sum(irate(ceph_osd_recovery_ops{cluster=~'$cluster'}[1m]))", |
1239 | 1239 | "format": "time_series", |
1240 | 1240 | "intervalFactor": 1, |
1241 | 1241 | "legendFormat": "Op/s", |
|
1298 | 1298 | "regex": "", |
1299 | 1299 | "type": "datasource" |
1300 | 1300 | }, |
| 1301 | + { |
| 1302 | + "datasource": { |
| 1303 | + "type": "prometheus", |
| 1304 | + "uid": "${datasource}" |
| 1305 | + }, |
| 1306 | + "definition": "label_values(ceph_health_status, cluster)", |
| 1307 | + "hide": 0, |
| 1308 | + "includeAll": false, |
| 1309 | + "label": "Cluster", |
| 1310 | + "multi": false, |
| 1311 | + "name": "cluster", |
| 1312 | + "options": [], |
| 1313 | + "query": { |
| 1314 | + "query": "label_values(ceph_health_status, cluster)", |
| 1315 | + "refId": "StandardVariableQuery" |
| 1316 | + }, |
| 1317 | + "refresh": 1, |
| 1318 | + "regex": "", |
| 1319 | + "skipUrlSync": false, |
| 1320 | + "sort": 0, |
| 1321 | + "type": "query" |
| 1322 | + }, |
1301 | 1323 | { |
1302 | 1324 | "auto": true, |
1303 | 1325 | "auto_count": 10, |
|
0 commit comments