Skip to content

InfluxDB publisher: Questions about HardwareID assumptions #520

@ottojo

Description

@ottojo

Hi! I would like to use the InfluxDB output added in #425, and am stumbling over some assumptions made about the hardware ID. It looks like statusToInfluxLineProtocol and splitHardwareID expect the hardware ID in a form of <namespace>/<node name>, <node name> or <ignored>/<namespace>/<remaining parts as node name>. The diagnostic updater however does not set the hardware ID, but puts the node name in the diagnosticstatus name field <node name>: <diagnostic name> (https://github.com/ros/diagnostics/blob/ros2/diagnostic_updater/src/diagnostic_updater.cpp#L183).

REP 107 standardizes the latter naming scheme, and only mentions "things like serial numbers" for the hardware ID.

Is there a specific reason for using the hardware id instead of the component name as measurement name in InfluxDB? (Or an example of how component names / hardware IDs are assigned for use with the influxdb output?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions