When using Telegraf agents to gather custom metrics with custom scripts, returning data_type = "string does not work.
Aria Operations 8.18.x
This is the current design of the product.
All the scripts that you run using the custom script, must output a single integer value.
More details on setting up custom scripts with the Telgraf agent can be found here Custom Script