From 8a50d751270b478a79800e336e25b9285d942035 Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Mon, 29 Jan 2024 11:25:03 -0700 Subject: [PATCH] docs: Resolve table column count lint issues (#14637) --- plugins/aggregators/derivative/README.md | 56 ++++++++++++------------ plugins/inputs/http_response/README.md | 2 +- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/plugins/aggregators/derivative/README.md b/plugins/aggregators/derivative/README.md index dbd2b73cf..abd25b7af 100644 --- a/plugins/aggregators/derivative/README.md +++ b/plugins/aggregators/derivative/README.md @@ -140,21 +140,21 @@ To avoid thinking about border values, we consider periods to be inclusive at the start but exclusive in the end. Using `period = "10s"` and `max_roll_over = 0` we would get the following aggregates: -| timestamp | value | aggregate | explanation | +| timestamp | value | aggregate | explanation | |-----------|-------|-----------|--------------| -| 0 | 0.0 | -| 2 | 2.0 | -| 4 | 4.0 | -| 6 | 6.0 | -| 8 | 8.0 | +| 0 | 0.0 | | | +| 2 | 2.0 | | | +| 4 | 4.0 | | | +| 6 | 6.0 | | | +| 8 | 8.0 | | | ||| 1.0 | (8.0 - 0.0) / (8 - 0) | -| 10 | 10.0 | -| 12 | 8.0 | -| 14 | 6.0 | -| 16 | 4.0 | -| 18 | 2.0 | -||| -1.0 | (2.0 - 10.0) / (18 - 10) -| 20 | 0.0 | +| 10 | 10.0 | | | +| 12 | 8.0 | | | +| 14 | 6.0 | | | +| 16 | 4.0 | | | +| 18 | 2.0 | | | +||| -1.0 | (2.0 - 10.0) / (18 - 10) | +| 20 | 0.0 | | | If we now decrease the period with `period = 2s`, no derivative could be calculated since there would only one measurement for each period. The @@ -163,8 +163,8 @@ skipping.`. This changes, if we use `max_roll_over = 1`, since now end measurements of a period are taking as start for the next period. | timestamp | value | aggregate | explanation | -|-----------|-------|-----------|--------------| -| 0 | 0.0 | +|-----------|-------|-----------|-------------| +| 0 | 0.0 | | | | 2 | 2.0 | 1.0 | (2.0 - 0.0) / (2 - 0) | | 4 | 4.0 | 1.0 | (4.0 - 2.0) / (4 - 2) | | 6 | 6.0 | 1.0 | (6.0 - 4.0) / (6 - 4) | @@ -185,19 +185,19 @@ for `period = "7s"`. | timestamp | value | `max_roll_over = 0` | explanation | `max_roll_over = 1` | explanation | |-----------|-------|---------------------|-------------|---------------------|-------------| -| 0 | 0.0 | -| 2 | 2.0 | -| 4 | 4.0 | -| 6 | 6.0 | -| 7 | | 0.8571... | (6-0) / (7-0) | 0.8571... | (6-0) / (7-0) -| 8 | 8.0 | -| 10 | 10.0 | -| 12 | 8.0 | -| 14 | 8.0 | 0.0 | (8-8) / (14-7) | 0.2857... | (8-6) / (14-7) -| 16 | 4.0 | -| 18 | 2.0 | -| 20 | 0.0 | -||| -1.0 | -1.0 | +| 0 | 0.0 | | | | | +| 2 | 2.0 | | | | | +| 4 | 4.0 | | | | | +| 6 | 6.0 | | | | | +| 7 | | 0.8571... | (6-0) / (7-0) | 0.8571... | (6-0) / (7-0) | +| 8 | 8.0 | | | | | +| 10 | 10.0 | | | | | +| 12 | 8.0 | | | | | +| 14 | 8.0 | 0.0 | (8-8) / (14-7) | 0.2857... | (8-6) / (14-7) | +| 16 | 4.0 | | | | | +| 18 | 2.0 | | | | | +| 20 | 0.0 | | | | | +||| -1.0 | -1.0 | | | The difference stems from the change of the value between periods, e.g. from 6.0 to 8.0 between first and second period. Those changes are omitted with diff --git a/plugins/inputs/http_response/README.md b/plugins/inputs/http_response/README.md index d8d0e9920..e917a1cdf 100644 --- a/plugins/inputs/http_response/README.md +++ b/plugins/inputs/http_response/README.md @@ -136,7 +136,7 @@ This tag is used to expose network and plugin errors. HTTP errors are considered a successful connection. |Tag value |Corresponding field value|Description| --------------------------------|-------------------------|-----------| +|------------------------------|-------------------------|-----------| |success | 0 |The HTTP request completed, even if the HTTP code represents an error| |response_string_mismatch | 1 |The option `response_string_match` was used, and the body of the response didn't match the regex. HTTP errors with content in their body (like 4xx, 5xx) will trigger this error| |body_read_error | 2 |The option `response_string_match` was used, but the plugin wasn't able to read the body of the response. Responses with empty bodies (like 3xx, HEAD, etc) will trigger this error. Or the option `response_body_field` was used and the content of the response body was not a valid utf-8. Or the size of the body of the response exceeded the `response_body_max_size` |