Relevant telegraf.conf:
Use this as Starlark code:
units = int(metric.tags.pop("units", "0"))
System info:
Telegraf 1.20.2 (git: HEAD f721f53)
Steps to reproduce:
- Use starlark processor with above code snippet
- Send metric not having the
units tag.
Expected behavior:
No error and units should be 0.
Actual behavior:
Error in pop: pop: key must be of type ‘str’
Relevant telegraf.conf:
Use this as Starlark code:
System info:
Telegraf 1.20.2 (git: HEAD f721f53)
Steps to reproduce:
unitstag.Expected behavior:
No error and
unitsshould be0.Actual behavior: