Socket
Book a DemoInstallSign in
Socket

artillery-plugin-prometheus

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

artillery-plugin-prometheus

Plugin for Artillery.IO that publishes response data into prometheus pushgateway.

1.3.3
latest
npmnpm
Version published
Maintainers
1
Created
Source

artillery-plugin-prometheus

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

To use:

  • npm install -g artillery
  • npm install artillery-plugin-prometheus
  • 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.

  • 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:

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

Enjoy!

Keywords

artillery

FAQs

Package last updated on 24 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.