artillery-plugin-sns
A plugin for artillery.io that published response data to an SNS topic. See https://github.com/shoreditch-ops/artillery. Also see http://docs.aws.amazon.com/sns/latest/dg/welcome.html
Last updated 2 years ago by wzedi .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install artillery-plugin-sns 
SYNC missed versions from official npm registry.

artillery-plugin-sns

A plugin for artillery.io that publishes response data to an SNS topic.

Based on artillery-plugin-cloudwatch

To use:

  1. npm install -g artillery

  2. npm install artillery-plugin-sns (add -g if you like)

  3. Add sns plugin config to your "hello.json" Artillery script

    {
      "config": {
        "plugins": {
          "sns": {
              "topicArn": "[INSERT_TOPIC_ARN]",
              "subject": "[INSERT_SUBJECT]",
              "compressMessage": [true|false]
          }
        }
      }
    }
    
  4. artillery run hello.json

This will cause every latency to be published to the given SNS topic.

When truthy, the compressMessage option causes the message to be base64 encoded zlib deflated. This reduces the likelihood of hitting then 256K SNS message size limit.

This plugin assumes that the aws-sdk has been pre-configured, before it is loaded, with credentials and any other setting that may be required to successfully Publish to the SNS topic. This activity requires at least the rights given by the following IAM statement to the CloudWatch API in order to report latencies:

{
    "Effect": "Allow",
    "Action": [
        "SNS:Publish"
    ],
    "Resource": ["arn:aws:sns:`region`:`account-id`:`topic`"]
}

For more information, see:

Enjoy!

Current Tags

  • 0.0.9                                ...           latest (2 years ago)

9 Versions

  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |