Skip to content

Commit cdb0e28

Browse files
authored
Merge pull request #1132 from YangLu1031/master
Expand the scraping timeout
2 parents 61a14e1 + 07a41cc commit cdb0e28

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clusterloader2/pkg/measurement/common/slos/windows_node_resource_usage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
const (
3131
windowsResourceUsagePrometheusMeasurementName = "WindowsResourceUsagePrometheus"
3232
// get top 10 non-system processes with highest cpu usage within 1min query window size
33-
cpuUsageQueryTop10 = `topk(10, sum by (process) (rate(wmi_process_cpu_time_total{process!~"Idle|Total|System"}[1m]) / on(job) group_left wmi_cs_logical_processors) * 100)`
33+
cpuUsageQueryTop10 = `topk(10, sum by (process) (irate(wmi_process_cpu_time_total{process!~"Idle|Total|System"}[5m]) / on(job) group_left wmi_cs_logical_processors) * 100)`
3434
currentWindowsResourceUsageMetricsVersion = "v1"
3535
)
3636

clusterloader2/pkg/prometheus/manifests/prometheus-windows-scrape-configs.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ metadata:
88
stringData:
99
windows-scrape-configs.yaml: |-
1010
- job_name: "monitoring/windows_static"
11+
scrape_interval: {{DefaultParam .CL2_WINDOWS_SCRAPE_INTERVAL "130s"}}
12+
scrape_timeout: {{DefaultParam .CL2_WINDOWS_SCRAPE_TIMEOUT "120s"}}
1113
static_configs:
1214
- targets: ["{{$WINDOWS_NODE_NAME}}:5000"]

0 commit comments

Comments
 (0)