You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2023. It is now read-only.
globalFlags.StringVar(&from, "from", "30min", "for vegeta outputs, will generate requests for data starting from now minus... eg '30min', '5h', '14d', etc. or a unix timestamp")
43
45
globalFlags.StringVar(&maxAge, "max-age", "6h30min", "max age (last update diff with now) of metricdefs. use 0 to disable")
@@ -93,6 +95,26 @@ func main() {
93
95
os.Exit(-1)
94
96
}
95
97
98
+
varpartitions []int32
99
+
ifpartitionStr!="*" {
100
+
for_, p:=rangestrings.Split(partitionStr, ",") {
101
+
p=strings.TrimSpace(p)
102
+
103
+
// handle trailing "," on the list of partitions.
104
+
ifp=="" {
105
+
continue
106
+
}
107
+
108
+
id, err:=strconv.ParseInt(p, 10, 32)
109
+
iferr!=nil {
110
+
log.Printf("invalid partition id %q. must be a int32", p)
0 commit comments