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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...