|
21 | 21 | "uid": "${prometheus_datasource}" |
22 | 22 | }, |
23 | 23 | "enable": true, |
24 | | - "expr": "windows_system_system_up_time{job=~\"$job\",instance=~\"$instance\"}*1000 > $__from < $__to", |
| 24 | + "expr": "windows_system_boot_time_timestamp_seconds{job=~\"$job\",instance=~\"$instance\"}\nor\nwindows_system_system_up_time{job=~\"$job\",instance=~\"$instance\"}*1000 > $__from < $__to", |
25 | 25 | "hide": true, |
26 | 26 | "iconColor": "light-yellow", |
27 | 27 | "name": "Reboot", |
|
429 | 429 | "type": "prometheus", |
430 | 430 | "uid": "${prometheus_datasource}" |
431 | 431 | }, |
432 | | - "expr": "time() - windows_system_system_up_time{job=~\"$job\",instance=~\"$instance\"}", |
| 432 | + "expr": "time() - windows_system_boot_time_timestamp_seconds{job=~\"$job\",instance=~\"$instance\"}\nor\ntime() - windows_system_system_up_time{job=~\"$job\",instance=~\"$instance\"}", |
433 | 433 | "format": "table", |
434 | 434 | "instant": true, |
435 | 435 | "legendFormat": "{{instance}}: Uptime", |
|
440 | 440 | "type": "prometheus", |
441 | 441 | "uid": "${prometheus_datasource}" |
442 | 442 | }, |
443 | | - "expr": "windows_cs_logical_processors{job=~\"$job\",instance=~\"$instance\"}", |
| 443 | + "expr": "windows_cpu_logical_processor{job=~\"$job\",instance=~\"$instance\"}\nor\nwindows_cs_logical_processors{job=~\"$job\",instance=~\"$instance\"}", |
444 | 444 | "format": "table", |
445 | 445 | "instant": true, |
446 | 446 | "legendFormat": "{{instance}}: Cores", |
|
462 | 462 | "type": "prometheus", |
463 | 463 | "uid": "${prometheus_datasource}" |
464 | 464 | }, |
465 | | - "expr": "windows_cs_physical_memory_bytes{job=~\"$job\",instance=~\"$instance\"}", |
| 465 | + "expr": "windows_cs_physical_memory_bytes{job=~\"$job\",instance=~\"$instance\"}\nor\nwindows_memory_physical_total_bytes{job=~\"$job\",instance=~\"$instance\"}", |
466 | 466 | "format": "table", |
467 | 467 | "instant": true, |
468 | 468 | "legendFormat": "Memory total", |
|
473 | 473 | "type": "prometheus", |
474 | 474 | "uid": "${prometheus_datasource}" |
475 | 475 | }, |
476 | | - "expr": "100 - windows_os_physical_memory_free_bytes{job=~\"$job\",instance=~\"$instance\"} / windows_cs_physical_memory_bytes{job=~\"$job\",instance=~\"$instance\"} * 100", |
| 476 | + "expr": "100 - windows_memory_physical_free_bytes{job=~\"$job\",instance=~\"$instance\"} / windows_memory_physical_total_bytes{job=~\"$job\",instance=~\"$instance\"} * 100\nor\n100 - windows_os_physical_memory_free_bytes{job=~\"$job\",instance=~\"$instance\"} / windows_cs_physical_memory_bytes{job=~\"$job\",instance=~\"$instance\"} * 100", |
477 | 477 | "format": "table", |
478 | 478 | "instant": true, |
479 | 479 | "legendFormat": "{{instance}}: Usage", |
|
767 | 767 | "type": "prometheus", |
768 | 768 | "uid": "${prometheus_datasource}" |
769 | 769 | }, |
770 | | - "expr": "topk(25,100 - windows_os_physical_memory_free_bytes{job=~\"$job\",instance=~\"$instance\"} / windows_cs_physical_memory_bytes{job=~\"$job\",instance=~\"$instance\"} * 100)", |
| 770 | + "expr": "topk(25,100 - windows_memory_physical_free_bytes{job=~\"$job\",instance=~\"$instance\"} / windows_memory_physical_total_bytes{job=~\"$job\",instance=~\"$instance\"} * 100\nor\n100 - windows_os_physical_memory_free_bytes{job=~\"$job\",instance=~\"$instance\"} / windows_cs_physical_memory_bytes{job=~\"$job\",instance=~\"$instance\"} * 100)", |
771 | 771 | "format": "time_series", |
772 | 772 | "instant": false, |
773 | 773 | "legendFormat": "{{instance}}", |
|
778 | 778 | "type": "prometheus", |
779 | 779 | "uid": "${prometheus_datasource}" |
780 | 780 | }, |
781 | | - "expr": "avg(100 - windows_os_physical_memory_free_bytes{job=~\"$job\",instance=~\"$instance\"} / windows_cs_physical_memory_bytes{job=~\"$job\",instance=~\"$instance\"} * 100)", |
| 781 | + "expr": "avg(100 - windows_memory_physical_free_bytes{job=~\"$job\",instance=~\"$instance\"} / windows_memory_physical_total_bytes{job=~\"$job\",instance=~\"$instance\"} * 100\nor\n100 - windows_os_physical_memory_free_bytes{job=~\"$job\",instance=~\"$instance\"} / windows_cs_physical_memory_bytes{job=~\"$job\",instance=~\"$instance\"} * 100)", |
782 | 782 | "format": "time_series", |
783 | 783 | "instant": false, |
784 | 784 | "legendFormat": "Mean", |
|
0 commit comments