label in snmp measurements
This commit is contained in:
@ -52,7 +52,9 @@ func (self *SnmpHandler) Handle(message handler.MessageT) {
|
||||
measurement.Application = "SNMP"
|
||||
measurement.Device = observation.Device
|
||||
|
||||
measurement.Attributes = make(map[string]interface{})
|
||||
measurement.Attributes = map[string]interface{} {
|
||||
"Label": observation.Label,
|
||||
}
|
||||
|
||||
measurement.Values = make(map[string]database.VariableType)
|
||||
for k, v := range observation.Variables {
|
||||
|
Reference in New Issue
Block a user