Skip to content

Python code that can be run standalone, as a lambda, or Splunk App to collect and forward metrics.

License

Notifications You must be signed in to change notification settings

lrsmith-dev/python-splunk-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-splunk-metrics

!Work In progress!

Python code that can be run standalone, as a lambda, or Splunk App to collect and forward metrics. Currently CLI is being developed.

Examples

./splunk_metrics.py 
index.size.bytes 1704182400 649 index=main host=localhost
index.size.bytes 1704182400 18750994 index=test host=localhost

Developement Setup

Splunk Docker Setup

Local development was done leveraging the Splunk Docker Image.

  1. docker run -d -p 8089:8089 -p 8000:8000 -e "SPLUNK_START_ARGS=--accept-license" -e "SPLUNK_PASSWORD=password" --name splunk splunk/splunk:latest

Python Setup

  1. python3 -m venv env
  2. source env/bin/activate
  3. pip3 install splunk-sdk # Install Splunk Python SDK
  4. pip3 install pytest # Install pytest for tests
  5. pip3 install wavefront-sdk-python # Install Wavefront Python SDK. Does not install/compile

VMWareVMware Aria Operations for Applications

Previously known as Wavefront, https://tanzu.vmware.com/observability-trial This requiers signing up for a VMWare Cloud account and a free 30 day trial.

About

Python code that can be run standalone, as a lambda, or Splunk App to collect and forward metrics.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages