artillery-plugin-discord-hook-stats
v1.0.14
Published
Send artillery statistics to the discord server
Downloads
25
Readme
Artillery.io Discord Webhook Send Stats Plugin
Send artillery stats to discord server
Usage
Install
npm install -g artillery-plugin-discord-hook-stats
- if you've installed Artillery globally
npm install artillery-plugin-discord-hook-stats
otherwise.
Example configuration
config:
plugins:
discord-hook-stats:
url: 'https://discord.com/api/webhooks/...'
username: 'ArtilleryStats',
onlyError: false,
skipList: ['scenariosAvoided', 'latency.p999'],
tagUsers: ['999999999999999999']
username
, onlyError
, tagUser
, and skipList
are optional;
Discord settings
About Discord Webhook: https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks
How get multi-digit user id: https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-
tagUsers
- List of multi-digit user ids to be tagged
Published metrics
scenariosCreated
scenariosCompleted
requestsCompleted
latency.min
latency.max
latency.median
latency.p95
latency.p99
rps.count
rps.mean
scenarioDuration.min
scenarioDuration.max
scenarioDuration.median
scenarioDuration.p95
scenarioDuration.p99
scenarioCounts.0
,scenarioCounts.0
etccodes.200
,codes.301
etcerrors.ECONNREFUSED
,errors.ETIMEDOUT
etcmatches
concurrency
pendingRequests
Metrics will be added or removed based on what artillery decides to send.
Metrics can be skipped by passing in an additional configuration property skipList
. Skip list values can look like the following:
"skipList": ["scenarioDuration"]
- would skip allscenarioDuration
metrics"skipList": ["latency.max"]
- would skip only thelatency.max
metric"skipList": ["scenarioDuration, latency.max"]
- a comma separated list can be used to pass in multiple values.