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
Copy file name to clipboardExpand all lines: cmd/pyroscope/help-all.txt.tmpl
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -899,5 +899,9 @@ Usage of ./pyroscope:
899
899
Maximum number of samples in a profile. 0 to disable. (default 16000)
900
900
-validation.max-profile-symbol-value-length int
901
901
Maximum length of a profile symbol value (labels, function names and filenames, etc...). Profiles are not rejected instead symbol values are truncated. 0 to disable. (default 65535)
902
+
-validation.reject-newer-than duration
903
+
This limits how far into the future profiling data can be ingested. This limit is enforced in the distributor. 0 to disable, defaults to 10m. (default 10m)
904
+
-validation.reject-older-than duration
905
+
This limits how far into the past profiling data can be ingested. This limit is enforced in the distributor. 0 to disable, defaults to 1h. (default 1h)
Copy file name to clipboardExpand all lines: cmd/pyroscope/help.txt.tmpl
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -335,6 +335,10 @@ Usage of ./pyroscope:
335
335
Maximum number of samples in a profile. 0 to disable. (default 16000)
336
336
-validation.max-profile-symbol-value-length int
337
337
Maximum length of a profile symbol value (labels, function names and filenames, etc...). Profiles are not rejected instead symbol values are truncated. 0 to disable. (default 65535)
338
+
-validation.reject-newer-than duration
339
+
This limits how far into the future profiling data can be ingested. This limit is enforced in the distributor. 0 to disable, defaults to 10m. (default 10m)
340
+
-validation.reject-older-than duration
341
+
This limits how far into the past profiling data can be ingested. This limit is enforced in the distributor. 0 to disable, defaults to 1h. (default 1h)
f.IntVar(&l.MaxProfileStacktraceSampleLabels, "validation.max-profile-stacktrace-sample-labels", 100, "Maximum number of labels in a profile sample. 0 to disable.")
94
98
f.IntVar(&l.MaxProfileStacktraceDepth, "validation.max-profile-stacktrace-depth", 1000, "Maximum depth of a profile stacktrace. Profiles are not rejected instead stacktraces are truncated. 0 to disable.")
95
99
f.IntVar(&l.MaxProfileSymbolValueLength, "validation.max-profile-symbol-value-length", 65535, "Maximum length of a profile symbol value (labels, function names and filenames, etc...). Profiles are not rejected instead symbol values are truncated. 0 to disable.")
100
+
101
+
_=l.RejectNewerThan.Set("10m")
102
+
f.Var(&l.RejectNewerThan, "validation.reject-newer-than", "This limits how far into the future profiling data can be ingested. This limit is enforced in the distributor. 0 to disable, defaults to 10m.")
103
+
104
+
_=l.RejectOlderThan.Set("1h")
105
+
f.Var(&l.RejectOlderThan, "validation.reject-older-than", "This limits how far into the past profiling data can be ingested. This limit is enforced in the distributor. 0 to disable, defaults to 1h.")
106
+
96
107
}
97
108
98
109
// UnmarshalYAML implements the yaml.Unmarshaler interface.
funcValidateProfile(limitsProfileValidationLimits, userIDstring, prof*googlev1.Profile, uncompressedSizeint, ls phlaremodel.Labels) error {
180
+
funcValidateProfile(limitsProfileValidationLimits, tenantIDstring, prof*googlev1.Profile, uncompressedSizeint, ls phlaremodel.Labels, now model.Time) error {
msg: "profile with labels '{foo=\"bar\"}' is outside of ingestion window (profile timestamp: 2023-02-17 13:13:14 +0000 UTC, the ingestion window ends at 2023-02-17 12:23:14 +0000 UTC)",
293
+
},
294
+
},
295
+
{
296
+
name: "older than ingestion window",
297
+
profile: &googlev1.Profile{
298
+
TimeNanos: now.Add(-61*time.Minute).UnixNano(),
299
+
},
300
+
limits: MockLimits{
301
+
RejectOlderThanValue: time.Hour,
302
+
},
303
+
expectedErr: &Error{
304
+
Reason: NotInIngestionWindow,
305
+
msg: "profile with labels '{foo=\"bar\"}' is outside of ingestion window (profile timestamp: 2023-02-17 11:12:14 +0000 UTC, the ingestion window starts at 2023-02-17 11:13:14 +0000 UTC)",
0 commit comments