From c869a235b3ed35079e44c9f7d1b83e2c1c246876 Mon Sep 17 00:00:00 2001 From: dragon0486 <869071540@qq.com> Date: Fri, 25 Sep 2020 16:21:11 +0800 Subject: [PATCH] fixbug --- .../grafana-config/device-fragmentation-dashboard.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ClusterBootstrap/services/monitor/grafana-config/device-fragmentation-dashboard.json b/src/ClusterBootstrap/services/monitor/grafana-config/device-fragmentation-dashboard.json index 2f8d337f6..8dd8d5d89 100755 --- a/src/ClusterBootstrap/services/monitor/grafana-config/device-fragmentation-dashboard.json +++ b/src/ClusterBootstrap/services/monitor/grafana-config/device-fragmentation-dashboard.json @@ -56,7 +56,7 @@ "steppedLine": false, "targets": [ { - "expr": "count_values(\"gpu_available\", avg by (host_ip)(k8s_node_device_available{device_str='nvidia.com/gpu'}))", + "expr": "count_values(\"gpu_available\", holt_winters(k8s_node_device_available{device_str='nvidia.com/gpu'}[1m],0.001,0.999))", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{'{{'}}gpu_available{{'}}'}} available gpus", @@ -131,7 +131,7 @@ "steppedLine": false, "targets": [ { - "expr": "count_values(\"npu_available\", avg by (host_ip) (k8s_node_device_available{device_str='npu.huawei.com/NPU'}))", + "expr": "count_values(\"npu_available\", holt_winters(k8s_node_device_available{device_str='npu.huawei.com/NPU'}[1m],0.001,0.999))", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{'{{'}}npu_available{{'}}'}} available npus",