The percentile and tolerated error to be observed
The percentile and tolerated error to be observed
There is a safe constructor, and a macro constructor which can statically verify these values if they are known at compile time.
Quantile.quantile(0.5, 0.05)
- 50th percentile (= median) with 5% tolerated error
Quantile.quantile(0.9, 0.01)
- 90th percentile with 1% tolerated error
Quantile.quantile(0.99, 0.001)
- 99th percentile with 0.1% tolerated error
Generic Unlabeled Summary
Generic Unlabeled Summary
Apply a label to be able to measure events.
Default Constructor for a labelled Summary.
Default Constructor for a labelled Summary.
maxAgeSeconds is set to defaultMaxAgeSeconds which is 10 minutes.
ageBuckets is the number of buckets for the sliding time window, set to defaultAgeBuckets which is 5.
This generates a specific number of labels via Sized
, in combination with a function
to generate an equally Sized
set of labels from some type. Values are applied by position.
This counter needs to have a label applied to the UnlabelledSummary in order to be measureable or recorded.
CollectorRegistry this Summary will be registred with
The name of the Summary.
The help string of the metric
The name of the labels to be applied to this metric
Function to take some value provided in the future to generate an equally sized list of strings as the list of labels. These are assigned to labels by position.
The measurements to track for specifically over the sliding time window.
Constructor for a labelled Summary.
Constructor for a labelled Summary.
maxAgeSeconds is set to defaultMaxAgeSeconds which is 10 minutes.
ageBuckets is the number of buckets for the sliding time window, set to defaultAgeBuckets which is 5.
This generates a specific number of labels via Sized
, in combination with a function
to generate an equally Sized
set of labels from some type. Values are applied by position.
This counter needs to have a label applied to the UnlabelledSummary in order to be measureable or recorded.
CollectorRegistry this Summary will be registred with
The name of the Summary.
The help string of the metric
Set the duration of the time window is, i.e. how long observations are kept before they are discarded.
Set the number of buckets used to implement the sliding time window. If your time window is 10 minutes, and you have ageBuckets=5, buckets will be switched every 2 minutes. The value is a trade-off between resources (memory and cpu for maintaining the bucket) and how smooth the time window is moved.
The name of the labels to be applied to this metric
Function to take some value provided in the future to generate an equally sized list of strings as the list of labels. These are assigned to labels by position.
The measurements to track for specifically over the sliding time window.
Default Constructor for a Summary with no labels.
Default Constructor for a Summary with no labels.
maxAgeSeconds is set to defaultMaxAgeSeconds which is 10 minutes.
ageBuckets is the number of buckets for the sliding time window, set to defaultAgeBuckets which is 5.
If you want to exert control, use the full constructor noLabelsQuantiles
CollectorRegistry this Summary will be registered with
The name of the Summary
The help string of the metric
The measurements to track for specifically over the sliding time window.
Constructor for a Summary with no labels.
Constructor for a Summary with no labels.
maxAgeSeconds is set to defaultMaxAgeSeconds which is 10 minutes.
ageBuckets is the number of buckets for the sliding time window, set to defaultAgeBuckets which is 5.
If you want to exert control, use the full constructor noLabelsQuantiles
CollectorRegistry this Summary will be registered with
The name of the Summary
The help string of the metric
Set the duration of the time window is, i.e. how long observations are kept before they are discarded.
Set the number of buckets used to implement the sliding time window. If your time window is 10 minutes, and you have ageBuckets=5, buckets will be switched every 2 minutes. The value is a trade-off between resources (memory and cpu for maintaining the bucket) and how smooth the time window is moved.
The measurements to track for specifically over the sliding time window.