AppD Archive

Problems with custom extensions and not integer values

CommunityUser
Splunk Employee
Splunk Employee

Hi
I created the custom extension using a bash script. But i have some errors in the machine-agent.log -
WARN MonitorOutputHandler - Invalid metric outputname=Server|Component:102|Payments|AppStore,value=0.2
When values is integer all is work properly. Maybe custom extensions are working only with integer values, is it correct?

0 Karma

Arun_Dasetty
Super Champion

Hi ,

Yes your understanding is right, make sure you update script such that it will truncate the float part and that should help.

Regards,

Arun

CommunityUser
Splunk Employee
Splunk Employee

But what i should do if i have this values - 0,00123 or 0,01?

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Or add a multiplier to your script, so that 0,00123 returns as 123.  Your relative values will all be the same and your graphs will as well, but with this approach, you don't lose any of the precision.

0 Karma

Arun_Dasetty
Super Champion

Hi,

Apologies for delay in respponse, You should write script such that it will not have special chars (,) as such and final script output is valid int type, hope that answers your query

Regards,

Arun

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...