From 42d2de15b8506f126a570ad9356158b0e1ba219c Mon Sep 17 00:00:00 2001 From: "loki-gh-app[bot]" <160051081+loki-gh-app[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 17:10:04 -0500 Subject: [PATCH] docs: fixed typos/grammatical mistakes in metrics.md (backport release-3.3.x) (#15241) Co-authored-by: Alex Richard Westhaver-Ford --- docs/sources/send-data/promtail/stages/metrics.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/sources/send-data/promtail/stages/metrics.md b/docs/sources/send-data/promtail/stages/metrics.md index b034bd6d6d6a1..ea1c7b78150c5 100644 --- a/docs/sources/send-data/promtail/stages/metrics.md +++ b/docs/sources/send-data/promtail/stages/metrics.md @@ -51,8 +51,8 @@ type: Counter [max_idle_duration: ] config: - # If present and true all log lines will be counted without - # attempting to match the source to the extract map. + # If present and true all log lines will be counted without attempting + # to match the `value` to the field specified by `source` in the extracted map. # It is an error to specify `match_all: true` and also specify a `value` [match_all: ] @@ -231,7 +231,7 @@ This pipeline first tries to find text in the format `order_status=` in the log line, pulling out the `` into the extracted map with the key `order_status`. -The metric stages creates `successful_orders_total` and `failed_orders_total` +The metrics stage creates `successful_orders_total` and `failed_orders_total` metrics that only increment when the value of `order_status` in the extracted map is `success` or `fail` respectively. @@ -265,7 +265,7 @@ number in the `retries` field from the extracted map. - metrics: http_response_time_seconds: type: Histogram - description: "length of each log line" + description: "distribution of log response time" source: response_time config: buckets: [0.001,0.0025,0.005,0.010,0.025,0.050]