I’m interested in getting the input number, type and model from an input’s measurement for InfluxDB to assign to tags. Are there some undocumented variables I can access that give this?
My use case:
For InfluxDB I prefer source measurements have their field-key be a unique but ambiguous ID (i.e. UUID or something like
$device.$input) and “name” to be an alias for this device sent along as a tag (i.e. water_heater). Additionally, sending type (VT or CT) and model (AcuCT-H040-50) as a tag makes it easier to build queries by stacking tags instead of regexing fields.