From 01498eacec7b1373016b3dac262426798e120d6d Mon Sep 17 00:00:00 2001 From: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com> Date: Wed, 20 Sep 2023 11:05:55 -0700 Subject: [PATCH] Update SNMP topics to add note about the version of Prometheus snmp_exporter (#5255) * Add note about version of snmp_exporter * Update note text --- .../flow/reference/components/prometheus.exporter.snmp.md | 4 ++++ .../sources/static/configuration/integrations/snmp-config.md | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/sources/flow/reference/components/prometheus.exporter.snmp.md b/docs/sources/flow/reference/components/prometheus.exporter.snmp.md index eb593cb6ed0c..cf3aa7c05659 100644 --- a/docs/sources/flow/reference/components/prometheus.exporter.snmp.md +++ b/docs/sources/flow/reference/components/prometheus.exporter.snmp.md @@ -12,6 +12,10 @@ title: prometheus.exporter.snmp The `prometheus.exporter.snmp` component embeds [`snmp_exporter`](https://github.com/prometheus/snmp_exporter). `snmp_exporter` lets you collect SNMP data and expose them as Prometheus metrics. +{{% admonition type="note" %}} +`prometheus.exporter.snmp` uses the latest configuration introduced in version 0.23 of the Prometheus `snmp_exporter`. +{{% /admonition %}} + ## Usage ```river diff --git a/docs/sources/static/configuration/integrations/snmp-config.md b/docs/sources/static/configuration/integrations/snmp-config.md index 47bb4c563244..8bdaad527cef 100644 --- a/docs/sources/static/configuration/integrations/snmp-config.md +++ b/docs/sources/static/configuration/integrations/snmp-config.md @@ -11,6 +11,9 @@ The `snmp` block configures the `snmp` integration, which is an embedded version of [`snmp_exporter`](https://github.com/prometheus/snmp_exporter). This allows collection of SNMP metrics from the network devices with ease. +{{% admonition type="note" %}} +`snmp config` uses the latest configuration introduced in version 0.23 of the Prometheus `snmp_exporter`. +{{% /admonition %}} ## Quick configuration example @@ -42,7 +45,7 @@ integrations: ## Prometheus service discovery use case -If you need to scrape SNMP devices in more dynamic environment, and cannot define devices in `snmp_targets` because targets would change over time, you can use service discovery approach. For instance, with [DNS discovery](https://prometheus.io/docs/prometheus/2.45/configuration/configuration/#dns_sd_config): +If you need to scrape SNMP devices in more dynamic environment, and can't define devices in `snmp_targets` because targets would change over time, you can use service discovery approach. For instance, with [DNS discovery](https://prometheus.io/docs/prometheus/2.45/configuration/configuration/#dns_sd_config): ```yaml