|
158 | 158 | }, |
159 | 159 | "editorMode": "code", |
160 | 160 | "exemplar": false, |
161 | | - "expr": "avg by (name) (\n sum by (name,pod) (\n (d8_virtualization_virtualmachine_status_phase{namespace=\"$namespace\", name=\"$name\"} == 1) * on(phase) group_left()\n (\n label_replace(vector(1), \"phase\", \"Degraded\", \"\", \"\") or\n label_replace(vector(2), \"phase\", \"Migrating\", \"\", \"\") or\n label_replace(vector(3), \"phase\", \"Pause\", \"\", \"\") or\n label_replace(vector(4), \"phase\", \"Pending\", \"\", \"\") or\n label_replace(vector(5), \"phase\", \"Running\", \"\", \"\") or\n label_replace(vector(6), \"phase\", \"Starting\", \"\", \"\") or\n label_replace(vector(7), \"phase\", \"Stopped\", \"\", \"\") or\n label_replace(vector(8), \"phase\", \"Stopping\", \"\", \"\") or\n label_replace(vector(9), \"phase\", \"Terminating\", \"\", \"\")\n ))\n)", |
| 161 | + "expr": "max by (name) (\n sum by (name,pod) (\n (d8_virtualization_virtualmachine_status_phase{namespace=\"$namespace\", name=\"$name\"} == 1) * on(phase) group_left()\n (\n label_replace(vector(1), \"phase\", \"Degraded\", \"\", \"\") or\n label_replace(vector(2), \"phase\", \"Migrating\", \"\", \"\") or\n label_replace(vector(3), \"phase\", \"Pause\", \"\", \"\") or\n label_replace(vector(4), \"phase\", \"Pending\", \"\", \"\") or\n label_replace(vector(5), \"phase\", \"Running\", \"\", \"\") or\n label_replace(vector(6), \"phase\", \"Starting\", \"\", \"\") or\n label_replace(vector(7), \"phase\", \"Stopped\", \"\", \"\") or\n label_replace(vector(8), \"phase\", \"Stopping\", \"\", \"\") or\n label_replace(vector(9), \"phase\", \"Terminating\", \"\", \"\")\n ))\n)", |
162 | 162 | "instant": true, |
163 | 163 | "legendFormat": "{{name}}", |
164 | 164 | "range": false, |
|
734 | 734 | }, |
735 | 735 | "editorMode": "code", |
736 | 736 | "exemplar": false, |
737 | | - "expr": "avg by (name) (\n count by (name,pod) (\n d8_virtualization_virtualmachine_agent_ready{namespace=\"$namespace\", name=\"$name\"}\n )\n)\n", |
| 737 | + "expr": "max by (name) (\n count by (name,pod) (\n d8_virtualization_virtualmachine_agent_ready{namespace=\"$namespace\", name=\"$name\"}\n )\n)\n", |
738 | 738 | "instant": true, |
739 | 739 | "legendFormat": "__auto", |
740 | 740 | "range": false, |
|
817 | 817 | }, |
818 | 818 | "editorMode": "code", |
819 | 819 | "exemplar": false, |
820 | | - "expr": "avg by (name) (\n count by (name,pod) (\n d8_virtualization_virtualmachine_configuration_applied{namespace=\"$namespace\", name=\"$name\"}\n )\n)\n", |
| 820 | + "expr": "max by (name) (\n count by (name,pod) (\n d8_virtualization_virtualmachine_configuration_applied{namespace=\"$namespace\", name=\"$name\"}\n )\n)\n", |
821 | 821 | "instant": true, |
822 | 822 | "legendFormat": "__auto", |
823 | 823 | "range": false, |
|
952 | 952 | }, |
953 | 953 | "editorMode": "code", |
954 | 954 | "exemplar": false, |
955 | | - "expr": "sum (\nd8_virtualization_virtualmachinesnapshot_info{namespace=~\"$namespace\",virtualmachine=~\"$name\"}\n) or vector(0)\n", |
| 955 | + "expr": "max by (namespace) (\n count by (namespace,pod) (\n d8_virtualization_virtualmachinesnapshot_info{namespace=~\"$namespace\", virtualmachine=\"$name\"}==1\n )\n) or absent(d8_virtualization_virtualmachinesnapshot_info{namespace=~\"$namespace\", virtualmachine=\"$name\"}==1) * vector(0)", |
956 | 956 | "hide": false, |
957 | 957 | "instant": true, |
958 | 958 | "legendFormat": "VM snapshots", |
|
1657 | 1657 | "uid": "${ds_prometheus}" |
1658 | 1658 | }, |
1659 | 1659 | "editorMode": "code", |
1660 | | - "expr": "avg by (name) (\n count by (name,pod) (\n d8_virtualization_virtualmachine_configuration_applied{namespace=\"$namespace\", name=\"$name\"}\n )\n)\n", |
| 1660 | + "expr": "max by (name) (\n count by (name,pod) (\n d8_virtualization_virtualmachine_configuration_applied{namespace=\"$namespace\", name=\"$name\"}\n )\n)\n", |
1661 | 1661 | "instant": false, |
1662 | 1662 | "legendFormat": "__auto", |
1663 | 1663 | "range": true, |
|
1794 | 1794 | "uid": "${ds_prometheus}" |
1795 | 1795 | }, |
1796 | 1796 | "editorMode": "code", |
1797 | | - "expr": "avg by (name) (\n sum by (name,pod) (\n (d8_virtualization_virtualmachine_status_phase{namespace=\"$namespace\", name=\"$name\"} == 1) * on(phase) group_left()\n (\n label_replace(vector(1), \"phase\", \"Degraded\", \"\", \"\") or\n label_replace(vector(2), \"phase\", \"Migrating\", \"\", \"\") or\n label_replace(vector(3), \"phase\", \"Pause\", \"\", \"\") or\n label_replace(vector(4), \"phase\", \"Pending\", \"\", \"\") or\n label_replace(vector(5), \"phase\", \"Running\", \"\", \"\") or\n label_replace(vector(6), \"phase\", \"Starting\", \"\", \"\") or\n label_replace(vector(7), \"phase\", \"Stopped\", \"\", \"\") or\n label_replace(vector(8), \"phase\", \"Stopping\", \"\", \"\") or\n label_replace(vector(9), \"phase\", \"Terminating\", \"\", \"\")\n ))\n)", |
| 1797 | + "expr": "max by (name) (\n sum by (name,pod) (\n (d8_virtualization_virtualmachine_status_phase{namespace=\"$namespace\", name=\"$name\"} == 1) * on(phase) group_left()\n (\n label_replace(vector(1), \"phase\", \"Degraded\", \"\", \"\") or\n label_replace(vector(2), \"phase\", \"Migrating\", \"\", \"\") or\n label_replace(vector(3), \"phase\", \"Pause\", \"\", \"\") or\n label_replace(vector(4), \"phase\", \"Pending\", \"\", \"\") or\n label_replace(vector(5), \"phase\", \"Running\", \"\", \"\") or\n label_replace(vector(6), \"phase\", \"Starting\", \"\", \"\") or\n label_replace(vector(7), \"phase\", \"Stopped\", \"\", \"\") or\n label_replace(vector(8), \"phase\", \"Stopping\", \"\", \"\") or\n label_replace(vector(9), \"phase\", \"Terminating\", \"\", \"\")\n ))\n)", |
1798 | 1798 | "instant": false, |
1799 | 1799 | "legendFormat": "{{name}}", |
1800 | 1800 | "range": true, |
|
1863 | 1863 | } |
1864 | 1864 | ] |
1865 | 1865 | }, |
1866 | | - "unit": "Bps" |
| 1866 | + "unit": "binbps" |
1867 | 1867 | }, |
1868 | 1868 | "overrides": [] |
1869 | 1869 | }, |
|
1893 | 1893 | "uid": "${ds_prometheus}" |
1894 | 1894 | }, |
1895 | 1895 | "editorMode": "code", |
1896 | | - "expr": "sum(rate(d8_virtualization_virtualmachine_migration_data_processed_bytes{namespace=\"$namespace\", name=\"$name\"}[$__rate_interval])) without (instance,job,node)", |
| 1896 | + "expr": "sum(rate(d8_virtualization_virtualmachine_migration_data_processed_bytes{namespace=\"$namespace\", name=\"$name\"}[$__rate_interval])) without (instance,job,node) * 8", |
1897 | 1897 | "instant": false, |
1898 | 1898 | "legendFormat": "Processed memory rate", |
1899 | 1899 | "range": true, |
|
1905 | 1905 | "uid": "${ds_prometheus}" |
1906 | 1906 | }, |
1907 | 1907 | "editorMode": "code", |
1908 | | - "expr": "sum(rate(d8_virtualization_virtualmachine_migration_data_remaining_bytes{namespace=\"$namespace\", name=\"$name\"}[$__rate_interval])) without (instance,job,node)", |
| 1908 | + "expr": "sum(rate(d8_virtualization_virtualmachine_migration_data_remaining_bytes{namespace=\"$namespace\", name=\"$name\"}[$__rate_interval])) without (instance,job,node) * 8", |
1909 | 1909 | "hide": false, |
1910 | 1910 | "instant": false, |
1911 | 1911 | "legendFormat": "Remaining memory rate", |
|
1918 | 1918 | "uid": "${ds_prometheus}" |
1919 | 1919 | }, |
1920 | 1920 | "editorMode": "code", |
1921 | | - "expr": "sum(d8_virtualization_virtualmachine_migration_dirty_memory_rate_bytes{namespace=\"$namespace\", name=\"$name\"}) without (instance,job,node)", |
| 1921 | + "expr": "sum(d8_virtualization_virtualmachine_migration_dirty_memory_rate_bytes{namespace=\"$namespace\", name=\"$name\"}) without (instance,job,node) * 8", |
1922 | 1922 | "hide": false, |
1923 | 1923 | "instant": false, |
1924 | 1924 | "legendFormat": "Dirty memory rate", |
|
1997 | 1997 | "mode": "absolute", |
1998 | 1998 | "steps": [ |
1999 | 1999 | { |
2000 | | - "color": "green", |
2001 | | - "value": null |
| 2000 | + "color": "green" |
2002 | 2001 | } |
2003 | 2002 | ] |
2004 | 2003 | }, |
|
2201 | 2200 | "mode": "absolute", |
2202 | 2201 | "steps": [ |
2203 | 2202 | { |
2204 | | - "color": "green", |
2205 | | - "value": null |
| 2203 | + "color": "green" |
2206 | 2204 | } |
2207 | 2205 | ] |
2208 | 2206 | }, |
|
2379 | 2377 | "mode": "absolute", |
2380 | 2378 | "steps": [ |
2381 | 2379 | { |
2382 | | - "color": "green", |
2383 | | - "value": null |
| 2380 | + "color": "green" |
2384 | 2381 | } |
2385 | 2382 | ] |
2386 | 2383 | }, |
|
2665 | 2662 | "h": 8, |
2666 | 2663 | "w": 12, |
2667 | 2664 | "x": 0, |
2668 | | - "y": 38 |
| 2665 | + "y": 24 |
2669 | 2666 | }, |
2670 | 2667 | "id": 75, |
2671 | 2668 | "options": { |
|
2843 | 2840 | "h": 8, |
2844 | 2841 | "w": 12, |
2845 | 2842 | "x": 12, |
2846 | | - "y": 38 |
| 2843 | + "y": 24 |
2847 | 2844 | }, |
2848 | 2845 | "id": 42, |
2849 | 2846 | "options": { |
|
2956 | 2953 | "h": 8, |
2957 | 2954 | "w": 12, |
2958 | 2955 | "x": 0, |
2959 | | - "y": 46 |
| 2956 | + "y": 32 |
2960 | 2957 | }, |
2961 | 2958 | "id": 31, |
2962 | 2959 | "options": { |
|
3072 | 3069 | "h": 8, |
3073 | 3070 | "w": 12, |
3074 | 3071 | "x": 12, |
3075 | | - "y": 46 |
| 3072 | + "y": 32 |
3076 | 3073 | }, |
3077 | 3074 | "id": 32, |
3078 | 3075 | "options": { |
|
3232 | 3229 | "h": 12, |
3233 | 3230 | "w": 24, |
3234 | 3231 | "x": 0, |
3235 | | - "y": 55 |
| 3232 | + "y": 25 |
3236 | 3233 | }, |
3237 | 3234 | "id": 83, |
3238 | 3235 | "options": { |
|
3373 | 3370 | "h": 14, |
3374 | 3371 | "w": 12, |
3375 | 3372 | "x": 0, |
3376 | | - "y": 67 |
| 3373 | + "y": 37 |
3377 | 3374 | }, |
3378 | 3375 | "id": 44, |
3379 | 3376 | "maxPerRow": 2, |
|
3511 | 3508 | "h": 8, |
3512 | 3509 | "w": 12, |
3513 | 3510 | "x": 0, |
3514 | | - "y": 82 |
| 3511 | + "y": 26 |
3515 | 3512 | }, |
3516 | 3513 | "id": 7, |
3517 | 3514 | "options": { |
|
3613 | 3610 | "h": 8, |
3614 | 3611 | "w": 12, |
3615 | 3612 | "x": 12, |
3616 | | - "y": 82 |
| 3613 | + "y": 26 |
3617 | 3614 | }, |
3618 | 3615 | "id": 8, |
3619 | 3616 | "options": { |
|
3715 | 3712 | "h": 8, |
3716 | 3713 | "w": 12, |
3717 | 3714 | "x": 0, |
3718 | | - "y": 90 |
| 3715 | + "y": 34 |
3719 | 3716 | }, |
3720 | 3717 | "id": 12, |
3721 | 3718 | "options": { |
|
3817 | 3814 | "h": 8, |
3818 | 3815 | "w": 12, |
3819 | 3816 | "x": 12, |
3820 | | - "y": 90 |
| 3817 | + "y": 34 |
3821 | 3818 | }, |
3822 | 3819 | "id": 11, |
3823 | 3820 | "options": { |
|
3919 | 3916 | "h": 8, |
3920 | 3917 | "w": 12, |
3921 | 3918 | "x": 0, |
3922 | | - "y": 98 |
| 3919 | + "y": 42 |
3923 | 3920 | }, |
3924 | 3921 | "id": 10, |
3925 | 3922 | "options": { |
|
4021 | 4018 | "h": 8, |
4022 | 4019 | "w": 12, |
4023 | 4020 | "x": 12, |
4024 | | - "y": 98 |
| 4021 | + "y": 42 |
4025 | 4022 | }, |
4026 | 4023 | "id": 9, |
4027 | 4024 | "options": { |
|
4169 | 4166 | "h": 8, |
4170 | 4167 | "w": 12, |
4171 | 4168 | "x": 0, |
4172 | | - "y": 51 |
| 4169 | + "y": 27 |
4173 | 4170 | }, |
4174 | 4171 | "id": 13, |
4175 | 4172 | "options": { |
|
4316 | 4313 | "h": 8, |
4317 | 4314 | "w": 12, |
4318 | 4315 | "x": 12, |
4319 | | - "y": 51 |
| 4316 | + "y": 27 |
4320 | 4317 | }, |
4321 | 4318 | "id": 14, |
4322 | 4319 | "options": { |
|
4463 | 4460 | "h": 8, |
4464 | 4461 | "w": 12, |
4465 | 4462 | "x": 0, |
4466 | | - "y": 59 |
| 4463 | + "y": 35 |
4467 | 4464 | }, |
4468 | 4465 | "id": 18, |
4469 | 4466 | "options": { |
|
4610 | 4607 | "h": 8, |
4611 | 4608 | "w": 12, |
4612 | 4609 | "x": 12, |
4613 | | - "y": 59 |
| 4610 | + "y": 35 |
4614 | 4611 | }, |
4615 | 4612 | "id": 17, |
4616 | 4613 | "options": { |
|
4725 | 4722 | { |
4726 | 4723 | "current": { |
4727 | 4724 | "selected": false, |
4728 | | - "text": "node", |
4729 | | - "value": "node" |
| 4725 | + "text": "vm", |
| 4726 | + "value": "vm" |
4730 | 4727 | }, |
4731 | 4728 | "datasource": { |
4732 | 4729 | "type": "prometheus", |
|
4815 | 4812 | "timezone": "browser", |
4816 | 4813 | "title": "Namespace / Virtual Machine", |
4817 | 4814 | "uid": "bdw6dw2izvpxcb", |
4818 | | - "version": 2, |
| 4815 | + "version": 1, |
4819 | 4816 | "weekStart": "" |
4820 | 4817 | } |
0 commit comments