All Apps and Add-ons

Is there a way to add metrics via Splunk Add On Python Mod input?

cheburakshu
New Member

Is there a way to add metrics via Splunk Add On Python Mod input?
Python helper function documentation here (https://docs.splunk.com/Documentation/AddonBuilder/3.0.1/UserGuide/PythonHelperFunctions) doesn't specify adding a metric.

Thanks.

0 Karma

cheburakshu
New Member

Solved it myself. Need to format the data into one of the metric protocols (Statsd, Collectd, etc) and use the same ew.write_event(event) interface.

0 Karma

elton93
Engager

Hi cheburakshu,

 

Can you give some example of the data format? Should I still use the helper.new_event() to create the event and just dump the data that is formatted into Statsd or Collectd format?

Your response is much appreciated.

Thank you.

 

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...