From e36ab7e192b9a18e92f56ec51346997e67526811 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Tue, 24 Sep 2019 17:44:27 +0200 Subject: [PATCH] prometheus-mixin: improve description of sample alerts (#6050) Signed-off-by: Simon Pasquier --- documentation/prometheus-mixin/alerts.libsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/prometheus-mixin/alerts.libsonnet b/documentation/prometheus-mixin/alerts.libsonnet index 8fe9dc1e82..71fad98c2e 100644 --- a/documentation/prometheus-mixin/alerts.libsonnet +++ b/documentation/prometheus-mixin/alerts.libsonnet @@ -149,7 +149,7 @@ }, annotations: { summary: 'Prometheus is dropping samples with duplicate timestamps.', - description: 'Prometheus %(prometheusName)s is dropping {{$value | humanize}} samples/s with different values but duplicated timestamp.' % $._config, + description: 'Prometheus %(prometheusName)s is dropping {{ printf "%%.4g" $value }} samples/s with different values but duplicated timestamp.' % $._config, }, }, { @@ -163,7 +163,7 @@ }, annotations: { summary: 'Prometheus drops samples with out-of-order timestamps.', - description: 'Prometheus %(prometheusName)s is dropping {{$value | humanize}} samples/s with timestamps arriving out of order.' % $._config, + description: 'Prometheus %(prometheusName)s is dropping {{ printf "%%.4g" $value }} samples/s with timestamps arriving out of order.' % $._config, }, }, {