Skip to content

Commit

Permalink
Update SNMP topics to add note about the version of Prometheus snmp_e…
Browse files Browse the repository at this point in the history
…xporter (#5255)

* Add note about version of snmp_exporter

* Update note text
  • Loading branch information
clayton-cornell authored Sep 20, 2023
1 parent f8e42f3 commit 01498ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 01498ea

Please sign in to comment.