You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: receiver/snmpreceiver/README.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
| Status ||
4
4
| ------------------------ |---------------|
5
-
| Stability |[development]|
5
+
| Stability |[alpha]|
6
6
| Supported pipeline types | metrics |
7
7
| Distributions |[contrib]|
8
8
@@ -71,7 +71,7 @@ These configuration options are for determining what metrics and attributes will
71
71
#### Resource Attribute Configuration
72
72
Resource attribute configurations are used to define what resource attributes will be used in a collection.
73
73
74
-
| Field Name | Description | Value |
74
+
| Field Name | Description | Value |
75
75
| -- | -- | -- |
76
76
|`oid`| Required if no `indexed_value_prefix`. This is the column OID in a SNMP table which will use the returned indexed SNMP data to create resource attribute values for unique resources. Metric configurations will reference these resource attribute configurations in order to assign metrics data to resources | string |
77
77
|`indexed_value_prefix`| Required if no `oid`. This is a string prefix which will be added to the indices of returned metric indexed SNMP data to create resource attribute values for unique resources. Metric configurations will reference these resource attribute configurations in order to assign metrics data to resources | string |
@@ -148,13 +148,13 @@ receivers:
148
148
auth_password: $SNMP_AUTH_PASSWORD
149
149
privacy_type: "DES"
150
150
privacy_password: $SNMP_PRIVACY_PASSWORD
151
-
151
+
152
152
resource_attributes:
153
153
resource_attr.name.1:
154
154
indexed_value_prefix: probe
155
155
resource_attr.name.2:
156
156
oid: "1.1.1.1"
157
-
157
+
158
158
attributes:
159
159
attr.name.1:
160
160
value: a2_new_key
@@ -165,7 +165,7 @@ receivers:
165
165
indexed_value_prefix: device
166
166
attr.name.3:
167
167
oid: "2.2.2.2"
168
-
168
+
169
169
metrics:
170
170
# This metric will have multiple datapoints wil 1 attribute on each.
171
171
# Each datapoint will have a (hopefully) different attribute value
@@ -208,11 +208,11 @@ receivers:
208
208
monotonic: false
209
209
value_type: double
210
210
scalar_oids:
211
-
- oid: "4.4.4.4.0"
211
+
- oid: "4.4.4.4.0"
212
212
attributes:
213
213
- name: attr.name.1
214
214
value: in
215
-
- oid: "4.4.4.5.0"
215
+
- oid: "4.4.4.5.0"
216
216
attributes:
217
217
- name: aattr.name.1
218
218
value: out
@@ -241,5 +241,5 @@ receivers:
241
241
242
242
The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml).
0 commit comments