This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Code generated by Sloth (v0.11.0): https://github.com/slok/sloth. | |
# DO NOT EDIT. | |
groups: | |
- name: sloth-slo-sli-recordings-sandbox-vmcluster-requests-availability | |
rules: | |
- record: slo:sli_error:ratio_rate5m | |
expr: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remote_write: | |
- url: http://<victoriametrics-prod>:8428/api/v1/write | |
write_relabel_configs: | |
- source_labels: [env] | |
regex: "dev" | |
action: drop | |
- url: http://<victoriametrics-dev>:8428/api/v1/write | |
write_relabel_configs: | |
- source_labels: [env] | |
regex: "prod" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/app/vmctl/vm_native.go | |
+++ b/app/vmctl/vm_native.go | |
@@ -5,8 +5,11 @@ import ( | |
"fmt" | |
"io" | |
"log" | |
+ "net/http/httptrace" | |
+ "sort" | |
"strings" | |
"sync" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/vmctl/main.go b/app/vmctl/main.go | |
index 95743081f..151e9115b 100644 | |
--- a/app/vmctl/main.go | |
+++ b/app/vmctl/main.go | |
@@ -230,7 +230,7 @@ func main() { | |
if err != nil { | |
return fmt.Errorf("error initilize auth config for destination: %s", dstAddr) | |
} | |
- dstHTTPClient := &http.Client{Transport: &http.Transport{DisableKeepAlives: disableKeepAlive}} | |
+ dstHTTPClient := &http.Client{Transport: &http.Transport{DisableKeepAlives: disableKeepAlive, ResponseHeaderTimeout: time.Second * 60}} |
OlderNewer