npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

artillery-plugin-datadog

v0.2.0

Published

Datadog output plugin for Artillery

Downloads

1,017

Readme

artillery-plugin-datadog

NPM Version Build Status Downloads Stats

Artillery plugin that reports load test results to Datadog.

The plugin uses datadog-metrics to submit Artillery metrics to Datadog over HTTPS and does not require a StatsD server (Datadog Agent). An alternative to this is artillery-plugin-statsd which uses StatsD.

Usage

  • Install this plugin and Artillery (npm install artillery artillery-plugin-datadog)
  • Create a configuration file for Artillery. Specify Datadog as the plugin to use.
# skynet.yaml
config:
  target: https://skynet.org
  phases:
    - duration: 3
      arrivalRate: 15
      name: "First stage"
  plugins:
    datadog:
      # Custom hostname (leave blank if not desired)
      host: ''
      # Custom metric prefix (defaults to 'artillery.')
      prefix: 'artillery.'
      # Additional tags for all metrics
      tags:
        - 'mode:test'
scenarios:
  - flow:
      - get:
          url: /status

Run artillery and specify Datadog API key as an environment variable.

$ DATADOG_API_KEY=xxxxxxxxxxxx artillery run skynet.yaml

Metrics

The following metrics are collected from Artillery and sent to Datadog.

  • artillery.scenarios.created: Number of scenarios created
  • artillery.scenarios.completed: Number of scenarios completed
  • artillery.requests.pending: Number of HTTP requests pending
  • artillery.requests.completed: Number of HTTP requests completed
  • artillery.response.2xx: Aggregate count of all responses whose HTTP code was in the 2xx range
  • artillery.response.3xx: Aggregate count of all responses whose HTTP code was in the 3xx range
  • artillery.response.4xx: Aggregate count of all responses whose HTTP code was in the 4xx range
  • artillery.response.5xx: Aggregate count of all responses whose HTTP code was in the 5xx range
  • artillery.response.200: Count of responses whose HTTP code was 200 (exactly). Similarly named metric is repeated for each response status code
  • artillery.response.ok_pct: Percentage (in the range 0 - 100) of responses that returned with a 2xx or 3xx status code
  • artillery.latency.min: Min latency
  • artillery.latency.max: Max latency
  • artillery.latency.p99: 99th percentile latency
  • artillery.latency.p95: 95th percentile latency
  • artillery.latency.median: Median latency
  • artillery.scenarioDuration.min: Min scenario duration
  • artillery.scenarioDuration.max: Max scenario duration
  • artillery.scenarioDuration.median: Median scenario duration
  • artillery.scenarioDuration.p95: 95th percentile scenario duration
  • artillery.scenarioDuration.p99: 99th percentile scenario duration
  • artillery.rps.mean: Average number of requests per second

Development

Artillery plugin system documentation is at github.com/shoreditch-ops/artillery.

To display debug info, run Artillery with the DEBUG environment variable:

$  DATADOG_API_KEY=xxxxx DEBUG=metrics,plugin:datadog artillery run skynet.yml

License

Apache-2.0 license