0.0.2 • Published 5 years ago
artillery-plugin-splunk v0.0.2
artillery-plugin-splunk
A plugin for artillery.io that records stats and reports into HTTP Event Collector in Splunk
Setup
You need to setup HTTP event collector in splunk. instructions
- Install
$ npm install --save artillery-plugin-splunk
- Add artillery-plugin-splunk to config
config:
target: "https://staging.example.com"
plugins:
splunk:
url: 'XXX', # url to splunk cloud in this format https://input-prd-p-XXXXXXX.cloud.splunk.com:8088/services/collector)
token: 'XXX' # token for HEC
index: 'XXX' (optional) # splunk index
Debbuging
- Clone repo
$ git clone git@github.com:singerxt/artillery-plugin-splunk.git
- Link package
$ npm link artillery-plugin-splunk
- Create artillery script
config:
target: "https://staging.example.com"
plugins:
splunk:
url: 'XXX',
token: 'XXX'
phases:
- duration: 300
arrivalRate: 50
- run it
$ DEBUG=plugin:splunk artillery run script.yml