I’m trying to change the measurement name, but I still can’t. I think that according to this manual I have everything OK. Don’t you know where the mistake could be?
name_override = “zigbee”
That option works OK but all parsing fields go to one measurement “zigbee”
Now I will try to divide the fields
“POWER” , “UptimeSec” → measurement “zigbee”
“RSSI”, “Signal” → measurement_name = “wifi” but all fields go to one measurement “wifi” and ignoring “zigbee”
measurement_name cannot be redefined multiple times for a parser as you have above. Effectively what you want is to create 2 measurements. To do that means having the mqtt_consumer read twice, one for each, or using the starlark processor to split the one metric into a second (e.g. example showing the creating of a second metric).
Another option is to have a single measurement with all this data:
@jpowers I chose the option number 1 and everything works , thx
But I would also be interested in possibility number 2.(example) Could you write it down for me in Starlank language?
You can also use standard processors to clone/split/edit your data, I’m thinking a mix of metric filters with the processor.override. You should be able to get the existing point (clone it?), drop fields and change the measurement name.
A clone is probably needed 8as there are 2 separate branches) but it’s pretty easy anyway as we got [processor.clone]
I’ve never used starlark so I’m not sure which way is easier