Skip to content

Commit 2ab31af

Browse files
committed
update the summary sliding window size
1 parent 2d544f6 commit 2ab31af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/include/prometheus/summary.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ class PROMETHEUS_CPP_CORE_EXPORT Summary {
106106
/// has passed. The default value is 5.
107107
Summary(const Quantiles& quantiles,
108108
const std::chrono::system_clock::time_point& creation_time,
109-
std::chrono::milliseconds max_age = std::chrono::seconds{10*24*60*60},
110-
int age_buckets = 10*24);
109+
std::chrono::milliseconds max_age = std::chrono::seconds{2*24*60*60},
110+
int age_buckets = 24);
111111

112112
/// \brief Observe the given amount.
113113
void Observe(double value);

0 commit comments

Comments
 (0)