artillery-plugin-discord-hook-stats

1.0.14 • Public • Published

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 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.

Package Sidebar

Install

npm i artillery-plugin-discord-hook-stats

Weekly Downloads

0

Version

1.0.14

License

MPL-2.0

Unpacked Size

8.47 kB

Total Files

4

Last publish

Collaborators

  • katolik