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

v0.9.0

Published

Plugin for Artillery.IO that records response data into InfluxDB.

Downloads

84

Readme

artillery-plugin-influxdb

Plugin for Artillery.IO that records response data into InfluxDB.

To use:

  1. npm install -g artillery

  2. npm install artillery-plugin-influxdb

  3. Add influxdb Plugin config to your "hello.json" Artillery script

    {
      "config": {
        "plugins": {
            "influxdb": {
                "testName": "my_load_test_case",
                "measurementName": "Latency",
                "errorMeasurementName": "ClientSideErrors",
                "testRunId": "342-233-221",
                "tags": {
                    "environment": "joes-dev-box",
                    "host": "joe-dev.somewhere.org"
                },
                "influx": {
                    "host": "my.influx.server.com",
                    "username": "joe_developer",
                    "password": "1t`sA$3cr3t",
                    "database": "load_test_results"
                }
            }
        }
      }
    }
  4. artillery run hello.json

This will cause every latency to be published to the given InfluxDB instance.

Plug-In Configuration Options

|Property|Required|Default|Meaning| :----------------|:----:|:---------------:|:--------| testName |yes|none |Name of the test being performed.| measurementName |no|latency |Measurement name used when writing latency to DynamoDB.| errorMeasurementName |no|clientErrors |Errors raised by the Artillery client during the test.| testRunId |no|UUID |Identifier used to associate individual test results with a given test run. If no testRunId property is provided, a UUID is generated for the test run.| tags |no|none |Object map of static name-value pairs containing tags which are written with every measurement.| influx.host |yes|none |Network host name of the InfluxDB to which results should be written. No protocol or port, just the host name.| influx.username |yes*|none |User account to use when logging results. | influx.password |yes*|none |Password to use when logging results. | influx.database |yes|none |Influx Database name into which the results are written. | excludeTestRunId |no|none |Set to true to prevent plugin from generating/logging testRunId UUID's automatically. | matches |no|none|Send data regarding matches to InfluxDB with column name "matches"|

*see notes on using environment variables for these values below.

Using environment variables to store credentials

The environment variables INFLUX_USERNAME and INFLUX_PASSWORD may be set instead of passing 'username' and/or 'password' properties in the config file.

For more information, see:

  • https://github.com/shoreditch-ops/artillery
  • https://github.com/node-influx/node-influx

Enjoy!