pass maxAgeSeconds & ageBuckets to summary metrics

This commit is contained in:
Christian Hennig
2019-03-14 10:18:55 +01:00
parent 66ef4e3176
commit 17fe5f4c70

View File

@@ -90,7 +90,9 @@ function main(opts) {
name: httpMetricName,
help: 'duration summary of http responses labeled with: ' + labels.join(', '),
labelNames: labels,
percentiles: opts.percentiles || [0.5, 0.75, 0.95, 0.98, 0.99, 0.999]
percentiles: opts.percentiles || [0.5, 0.75, 0.95, 0.98, 0.99, 0.999],
maxAgeSeconds: opts.percentiles,
ageBuckets: opts.ageBuckets
});
} else if (opts.metricType === 'histogram' || !opts.metricType) {
return new promClient.Histogram({