Giter Club home page Giter Club logo

artillery-plugin-prometheus's People

Contributors

ckluente avatar dannomayer avatar dependabot[bot] avatar dinayakovlev avatar eli-nudler-payu-com avatar enudler avatar erikerikson avatar gwsii avatar rodolfoleal avatar users-search-assignment avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

artillery-plugin-prometheus's Issues

Cannot convert undefined or null to object

I am getting this error when trying to use the plugin.


Started phase 0 (prometheus Ramp up json), duration: 60s @ 09:39:33(-0600) 2019-06-06
..  /usr/local/lib/node_modules/artillery-plugin-prometheus/node_modules/prom-client/lib/registry.js:35
		const defaultLabelNames = Object.keys(this._defaultLabels);
		                                 ^

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Registry.getMetricAsPrometheusString (/usr/local/lib/node_modules/artillery-plugin-prometheus/node_modules/prom-client/lib/registry.js:35:36)
    at Registry.metrics (/usr/local/lib/node_modules/artillery-plugin-prometheus/node_modules/prom-client/lib/registry.js:82:23)
    at Pushgateway.useGateway (/usr/local/lib/node_modules/artillery-plugin-prometheus/node_modules/prom-client/lib/pushgateway.js:78:27)
    at Pushgateway.pushAdd (/usr/local/lib/node_modules/artillery-plugin-prometheus/node_modules/prom-client/lib/pushgateway.js:23:14)
    at Object.pushToGateway (/usr/local/lib/node_modules/artillery-plugin-prometheus/lib/prometheus.js:156:24)
    at Object.reportResults (/usr/local/lib/node_modules/artillery-plugin-prometheus/lib/prometheus.js:137:9)
    at EventEmitter.<anonymous> (/usr/local/lib/node_modules/artillery-plugin-prometheus/lib/prometheus.js:178:10)
    at EventEmitter.emit (events.js:194:15)
    at Timeout.sendStats [as _onTimeout] (/usr/local/lib/node_modules/artillery/core/lib/runner.js:305:8)

Published metrics in prometheus?

Hi, I set up my environment following the tutorial described here:
https://medium.com/aeturnuminc/configure-prometheus-and-grafana-in-dockers-ff2a2b51aa1d
Basically I have 2 containers,
image

And they are working as expected.
I'm running the artillery with the following yml.

config:
  plugins:
    prometheus:
      testName: 'ImaTestRun'
      pushGatewayUrl: 'http://localhost:9090'
      environment: qa
      labels:
        target: 'http://foo.com/'
        scenario: Reports_Big

I'm a super-noob with Prometheus, would you mind helping me on finding the metrics in Prometheus or Grafana?
What are the stats?

Many thanks!

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.