0.9.0 • Published 7 years ago

artillery-plugin-influxdb v0.9.0

Weekly downloads
392
License
Apache-2.0
Repository
github
Last release
7 years ago

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

PropertyRequiredDefaultMeaning
testNameyesnoneName of the test being performed.
measurementNamenolatencyMeasurement name used when writing latency to DynamoDB.
errorMeasurementNamenoclientErrorsErrors raised by the Artillery client during the test.
testRunIdnoUUIDIdentifier 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.
tagsnononeObject map of static name-value pairs containing tags which are written with every measurement.
influx.hostyesnoneNetwork host name of the InfluxDB to which results should be written. No protocol or port, just the host name.
influx.usernameyes*noneUser account to use when logging results.
influx.passwordyes*nonePassword to use when logging results.
influx.databaseyesnoneInflux Database name into which the results are written.
excludeTestRunIdnononeSet to true to prevent plugin from generating/logging testRunId UUID's automatically.
matchesnononeSend 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:

Enjoy!

0.9.0

7 years ago

0.8.0

8 years ago

0.7.0

8 years ago

0.6.1

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.2

8 years ago