diff --git a/docs/sources/reference/components/prometheus/prometheus.exporter.snmp.md b/docs/sources/reference/components/prometheus/prometheus.exporter.snmp.md index aca951c83..fec15ddb3 100644 --- a/docs/sources/reference/components/prometheus/prometheus.exporter.snmp.md +++ b/docs/sources/reference/components/prometheus/prometheus.exporter.snmp.md @@ -86,13 +86,13 @@ The `target` block defines an individual SNMP target. The `target` block may be specified multiple times to define multiple targets. The label of the block is required and will be used in the target's `job` label. | Name | Type | Description | Default | Required | -|----------------|---------------| --------------------------------------------------------------------- | ------- | -------- | +|----------------|---------------|-----------------------------------------------------------------------| ------- | -------- | | `address` | `string` | The address of SNMP device. | | yes | | `module` | `string` | SNMP module to use for polling. | `""` | no | | `auth` | `string` | SNMP authentication profile to use. | `""` | no | | `walk_params` | `string` | Config to use for this target. | `""` | no | | `snmp_context` | `string` | Override the `context_name` parameter in the SNMP configuration file. | `""` | no | -| `labels` | `map(string)` | Override the `context_name` parameter in the SNMP configuration file. | `""` | no | +| `labels` | `map(string)` | Map of labels to apply to all metrics captured from the target. | `""` | no | ### walk_param block @@ -140,6 +140,9 @@ prometheus.exporter.snmp "example" { address = "192.168.1.2" module = "if_mib" walk_params = "public" + labels = { + "env" = "dev", + } } target "network_router_2" { @@ -231,6 +234,7 @@ prometheus.exporter.snmp "example" { "address" = "192.168.1.2", "module" = "if_mib", "walk_params" = "public", + "env" = "dev", }, { "name" = "network_router_2",