Add more context to Response Time resources (Kafka Producer)

Description

A collection set containing a single response time resources written to Kafka looks like the following:

2020-04-12T04:34:34,986 | DEBUG | kafka-producer-network-thread | producer-1 | KafkaPersister | 435 - org.opennms.features.kafka.producer - 26.1.0.SNAPSHOT | persisted collection timestamp: 1586666074984 resource { generic { node { } type: "latency" instance: "127.0.0.1[JMX-Minion]" } numeric { group: "jmx-minion" name: "jmx-minion" value: 0.191139 } } to kafka with key 0 2020-04-12T04:34:34,994 | ERROR | pool-13-thread-1311 | CollectionSetMapper | 435 - org.opennms.features.kafka.producer - 26.1.0.SNAPSHOT | error while trying to match node from null

1. The "location" field of the response time resource should be populated so we know what location it relates to.
2. The IP address should be easy to parse - right now it's concatenated with [JMX-Minion]?
3. An error is logged if the node is null, but this is expected in the case of response time resources.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Chandra Gorantla April 20, 2020 at 3:45 PM

Fixed

Details

Assignee

Reporter

Sprint

Affects versions

Priority

PagerDuty

Created April 13, 2020 at 12:55 PM
Updated May 5, 2020 at 4:03 PM
Resolved April 21, 2020 at 5:39 PM

Flag notifications