I am using defaultNode set a default value for a missing field. Unfortunately this does not work, the field “usage” in the following example stays empty, not taking the value specified in the defaultNode.
batch |query(''' SELECT "usage" FROM "rancher"."autogen".memory ''' ) .period(1m) .every(5s) .align() |default() .field('usage', 0) |last('usage') .as('usage') |influxDBOut() ....
“rancher”.“autogen”.memory is not a valid data source, thus no values are received for usage. If I understand it right this should lead to the activation of the default node, giving the field “usage” a default value of 0.
However the value of usage is not set to 0. It still is not available. What am I doing wrong?