1.0.14 • Published 11 months ago

artillery-plugin-discord-hook-stats v1.0.14

Weekly downloads
-
License
MPL-2.0
Repository
-
Last release
11 months ago

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

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago