From 7f3a9eed00983debf60ba8d48c86d76ba22b2713 Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Thu, 5 Dec 2024 16:43:17 -0600 Subject: [PATCH] fix(telegraf): update and fix install instructions, reference - Update latest patch - Remove curly braces from reference. Removed from the test Dockerfiles, but forgot this one. - Update checksums in examples and fix AMD and ARM transposed examples --- content/telegraf/v1/install.md | 62 +++++++++++++++++++++------------- data/products.yml | 2 +- 2 files changed, 39 insertions(+), 25 deletions(-) diff --git a/content/telegraf/v1/install.md b/content/telegraf/v1/install.md index 5ab74025d..b812ec401 100644 --- a/content/telegraf/v1/install.md +++ b/content/telegraf/v1/install.md @@ -68,22 +68,15 @@ To use the SHA checksum to verify the downloaded file, do the following: checksum you copied in the preceding step--for example, enter the following command in your terminal. - +### Syntax -{{% code-placeholders "030182d2dca7bf4793fb741d1bbf9c35cf2afb84e13802ac866914f72271b8ea" %}} +{{% code-placeholders "" %}} ```bash # Use 2 spaces to separate the checksum from the filename -echo "030182d2dca7bf4793fb741d1bbf9c35cf2afb84e13802ac866914f72271b8ea telegraf-{{% latest-patch %}}_linux_amd64.tar.gz" \ +echo " telegraf-{{% latest-patch %}}_linux_amd64.tar.gz" \ | sha256sum -c - ``` @@ -91,7 +84,28 @@ echo "030182d2dca7bf4793fb741d1bbf9c35cf2afb84e13802ac866914f72271b8ea telegraf Replace the following: -- {{% code-placeholder-key %}}`030182d2dca7bf4793fb741d1bbf9c35cf2afb84e13802ac866914f72271b8ea`{{% /code-placeholder-key %}}: +- {{% code-placeholder-key %}}``{{% /code-placeholder-key %}}: + the **SHA256:** checksum value that you copied from the downloads page + +### Example + +The following sample code uses `curl` to download Telegraf, and then +uses `sha256` to compare it to the checksum: + +{{% code-placeholders "260bc3170dbd6cce67575c1215a0b89b8447945106e2943d74e617d06b750c03" %}} + +```bash +curl -s --location -O \ +"https://dl.influxdata.com/telegraf/releases/telegraf-${telegraf_latest_patches_v1}_linux_amd64.tar.gz" +echo "260bc3170dbd6cce67575c1215a0b89b8447945106e2943d74e617d06b750c03 telegraf-${telegraf_latest_patches_v1}_linux_amd64.tar.gz" \ +| sha256sum -c - +``` + +{{% /code-placeholders %}} + +Replace the following: + +- {{% code-placeholder-key %}}`260bc3170dbd6cce67575c1215a0b89b8447945106e2943d74e617d06b750c03`{{% /code-placeholder-key %}}: the **SHA256:** checksum value that you copied from the downloads page If the checksums match, the output is the following; otherwise, an error message. @@ -224,7 +238,7 @@ To use the `yum` package manager to install the latest stable version of Telegra cat < {{% /tab-content %}} @@ -315,24 +329,24 @@ Replace the following: Choose from the following options to install Telegraf binary files for Linux ARM: -- To install on Linux ARM(32-bit), see the [downloads page](https://www.influxdata.com/downloads/#telegraf). -- [Download and install on Linux ARM (64-bit)](#download-and-install-on-linux-arm-64) +- To install on Linux ARMv7(32-bit), see the [downloads page](https://www.influxdata.com/downloads/#telegraf). +- [Download and install on Linux ARMv8 (64-bit)](#download-and-install-on-linux-arm-64) -### Download and install on Linux AMDv8 +### Download and install on Linux ARMv8 -{{% code-placeholders "0c57ff1a4a3af5fa387d23b0bc743b8eaed3a110d4ae7d422c439d2911cdf9b1" %}} +{{% code-placeholders "f0d8ccae539afa04b171d5268dbab21eef58bc51b5437689e347619e2097c824" %}} ```bash curl -s --location -O \ https://dl.influxdata.com/telegraf/releases/telegraf-{{% latest-patch %}}_linux_arm64.tar.gz \ -&& echo "0c57ff1a4a3af5fa387d23b0bc743b8eaed3a110d4ae7d422c439d2911cdf9b1 telegraf-{{% latest-patch %}}_linux_arm64.tar.gz" \ +&& echo "f0d8ccae539afa04b171d5268dbab21eef58bc51b5437689e347619e2097c824 telegraf-{{% latest-patch %}}_linux_arm64.tar.gz" \ | sha256sum -c - ``` {{% /code-placeholders %}} Replace the following: -- {{% code-placeholder-key %}}`0c57ff1a4a3af5fa387d23b0bc743b8eaed3a110d4ae7d422c439d2911cdf9b1`{{% /code-placeholder-key %}}: the SHA checksum from the [downloads page](https://www.influxdata.com/downloads/#telegraf) +- {{% code-placeholder-key %}}`f0d8ccae539afa04b171d5268dbab21eef58bc51b5437689e347619e2097c824`{{% /code-placeholder-key %}}: the SHA checksum from the [downloads page](https://www.influxdata.com/downloads/#telegraf) {{% /tab-content %}} diff --git a/data/products.yml b/data/products.yml index 9eee49fc2..bbcb51818 100644 --- a/data/products.yml +++ b/data/products.yml @@ -66,7 +66,7 @@ telegraf: versions: [v1] latest: v1.32 latest_patches: - v1: 1.32.1 + v1: 1.32.3 chronograf: name: Chronograf