1.3.3 • Published 4 years ago

artillery-plugin-prometheus v1.3.3

Weekly downloads
34
License
-
Repository
-
Last release
4 years ago

artillery-plugin-prometheus

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

To use:

  1. npm install -g artillery
  2. npm install artillery-plugin-prometheus
  3. Add prometheus Plugin config to your "hello.json" Artillery script

json:

```json
{
  "config": {
    "plugins": {
        "prometheus": {
            "testName": "my_load_test_case",
            "pushGatewayUrl": "http://localhost:9091",
            "environment": "qa",
            "labels": {
               "performance-test":
               "artillery.io":
        }
    }
  }
}
```

yaml:

config:
  plugins:
    prometheus:
      testName: 'my_load_test_case'
      pushGatewayUrl: 'http://localhost:9091'
      environment: qa
      labels:
        target: 'http://target.domain.com'
        scenario: postRequest

*Must specify labels with values.

  1. artillery run hello.json

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

Plug-In Configuration Options

PropertyRequiredDefaultMeaning
pushGatewayUrlyesnoneUrl of the prometheus push gateway.
testNameyesnoneName of the test being performed.
environmentyesnoneThe environment where the test is running, used as a label.

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

For more information, see:

Enjoy!

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago