Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed Oct 11, 2024
1 parent dd2b42e commit 6cd1bff
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" {
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 6cd1bff

Please sign in to comment.