Send artillery statistics to the discord server
npm install artillery-plugin-discord-hook-statsnpm install -g artillery-plugin-discord-hook-stats - if you've installed Artillery globally
npm install artillery-plugin-discord-hook-stats otherwise.
yaml
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;
$3
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
$3
- 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 etc
- codes.200, codes.301 etc
- errors.ECONNREFUSED, errors.ETIMEDOUT etc
- matches
- 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 all scenarioDuration metrics
- "skipList": ["latency.max"] - would skip only the latency.max metric
- "skipList": ["scenarioDuration, latency.max"]` - a comma separated list can be used to pass in multiple values.