label in snmp measurements
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2024-01-26 14:44:23 +01:00
parent 3af9482880
commit 00524c0a3f
2 changed files with 11 additions and 1 deletions

View File

@ -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 {