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}} |
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
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
serviceMonitor: | |
enabled: true | |
# disabled, external ruler is used | |
ruler: | |
enabled: false | |
# disabled, external alertmanager is used | |
alertmanager: | |
enabled: false |
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
# vmtag is a docker image tag for VictoriaMetrics components, | |
# which run inside the prometheus-benchmark - e.g. vmagent, vmalert, vmsingle. | |
vmtag: "v1.80.0" | |
# nodeSelector is the list of key-value pairs for selecting instances | |
# where benchmark pods should be deployed. | |
nodeSelector: {} | |
# targetsCount defines the number of nodeexporter instances to scrape. | |
# This option allows to configure the number of active time series to push |
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
vmselect: | |
serviceMonitor: | |
enabled: true | |
persistentVolume: | |
enabled: true | |
size: 15Gi | |
storageClass: standard-rwo | |
extraLabels: | |
cluster: victoria-metrics | |
extraArgs: |
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
# vmtag is a docker image tag for VictoriaMetrics components, | |
# which run inside the prometheus-benchmark - e.g. vmagent, vmalert, vmsingle. | |
vmtag: "v1.80.0" | |
nodeSelector: | |
app: rw-benchmark | |
# targetsCount defines the number of nodeexporter instances to scrape. | |
# This option allows to configure the number of active time series to push | |
# to remoteStorages. |
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
groups: | |
- name: CPU rules | |
interval: 10s | |
rules: | |
# The count of CPUs per node, useful for getting CPU time as a percent of total. | |
- record: instance:node_cpus:count | |
expr: > | |
count without (cpu, mode) ( | |
node_cpu_seconds_total{mode="idle"} | |
) |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"github.com/VictoriaMetrics/metrics" | |
) |
NewerOlder