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

newman-reporter-influxdb-jenkins

v1.1.2

Published

modification on the original newman-reporter-influxdb by vs4vijay - tag to field and can add build number in jenkins shell to be added to influxdb

Downloads

8

Readme

newman-reporter-influxdb-jenkins

InfluxDB reporter for Newman that sends the test results information to InfluxDB which can be used from Grafana to build dashboard same as the newman-reporter-influxdb by vs4vijay with few exception , instead of haveing one field which is the value "response time", there is one tag and the rest are fields to be able to select data outputs, also in case of using jenkins to execute newman jobs build number and job name is integrated in the reporter inside newman job and inserted in to influxdb

Prerequisites

  1. node and npm
  2. newman - npm install -g newman
  3. InfluxDB

Installation

npm install -g newman-reporter-influxdb-jenkins

Installation should be done globally if newman is installed globally, otherwise install without -g option


Usage

Specify -r influxdb-jenkins option while running the collection

Usage in jenkins

newman run <collection-url> -r influxdb-jenkins \
  --reporter-influxdb-server <server-ip> \
  --reporter-influxdb-port <server-port> \
  --reporter-influxdb-name <database-name> \
  --reporter-influxdb-measurement <measurement-name> \
  --reporter-influxdb-buildno $BUILD_NUMBER \
  --reporter-influxdb-jobname "$JOB_NAME"  

Usage in bash

newman run <collection-url> -r influxdb-jenkins \
  --reporter-influxdb-server <server-ip> \
  --reporter-influxdb-port <server-port> \
  --reporter-influxdb-name <database-name> \
  --reporter-influxdb-measurement <measurement-name> \

Example:

newman run https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv -r influxdb-jenkins \
--reporter-influxdb-server localhost \
--reporter-influxdb-port 8086 \
--reporter-influxdb-name newman_reports \
--reporter-influxdb-measurement api_results

Options:

Option | Remarks --- | --- --reporter-influxdb-server | IP Address or Host of InfluxDB --reporter-influxdb-port | Port no. (Usually 8086) --reporter-influxdb-name | Database name --reporter-influxdb-measurement | Measurement Point name (If not provided, then reporter will create measurement with prefix newman_results-<timestamp>) --reporter-influxdb-username (Optional) | Username created for InfluxDB (e.g. newman_user) --reporter-influxdb-password (Optional) | Password of the user (e.g. p@ssw0rd) --reporter-influxdb-mode | Transmission Mode http, udp (default: http) --reporter-influxdb-buildno | (e.g. BUILD_NUMBER) Build number variable from jenkins global enviroment variables https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables (Optional) --reporter-influxdb-jobname | (e.g. JOB_NAME) Job number variable from jenkins global enviroment variables https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables(Optional)

Compatibility

newman-reporter-influxdb-jenkins | InfluxDB --- | --- v1.0.0 | v1.7

Notes:

  • This reporter currently uses InfluxDB HTTP APIs to send data same as the one from 4vijay

To Do

Contact

for any requests,issues or questions
Email:
[email protected]