@hyperledger/caliper-core
Advanced tools
Comparing version 0.6.1-unstable-20240806081836 to 0.6.1-unstable-20240821080137
@@ -22,3 +22,2 @@ /* | ||
const express = require('express'); | ||
const appServer = express(); | ||
const prometheusClient = require('prom-client'); | ||
@@ -104,4 +103,6 @@ | ||
this.appServer = express(); | ||
// configure server for Prometheus scrapes: | ||
appServer.get(`${this.metricPath}`, async (req, res) => { | ||
this.appServer.get(`${this.metricPath}`, async (req, res) => { | ||
try { | ||
@@ -132,3 +133,3 @@ res.set('Content-Type', this.registry.contentType); | ||
// Enable server | ||
this.server = appServer.listen(this.scrapePort); | ||
this.server = this.appServer.listen(this.scrapePort); | ||
Logger.debug(`Enabled Prometheus scrape server on ${this.scrapePort}, with metrics exposed on ${this.metricPath} endpoint`); | ||
@@ -135,0 +136,0 @@ } |
{ | ||
"name": "@hyperledger/caliper-core", | ||
"description": "Core Hyperledger Caliper module, used for running performance benchmarks that interact with blockchain technologies", | ||
"version": "0.6.1-unstable-20240806081836", | ||
"version": "0.6.1-unstable-20240821080137", | ||
"repository": { | ||
@@ -18,3 +18,3 @@ "type": "git", | ||
"lint": "npx eslint .", | ||
"nyc": "nyc --reporter=text --reporter=clover mocha --recursive -t 10000" | ||
"nyc": "nyc --reporter=text --reporter=clover mocha --recursive -t 10000 --exit" | ||
}, | ||
@@ -27,2 +27,3 @@ "engines": { | ||
"color-scheme": "^1.0.1", | ||
"colors": "1.4.0", | ||
"compare-versions": "^3.4.0", | ||
@@ -32,4 +33,5 @@ "dockerode": "3.3.1", | ||
"js-yaml": "^3.13.1", | ||
"logform": "^2.1.2", | ||
"mqtt": "3.0.0", | ||
"mustache": "^2.3.0", | ||
"mqtt": "3.0.0", | ||
"nconf": "0.12.0", | ||
@@ -41,17 +43,16 @@ "nconf-yaml": "^1.0.2", | ||
"table": "^4.0.1", | ||
"triple-beam": "^1.3.0", | ||
"winston": "^3.2.1", | ||
"winston-daily-rotate-file": "^4.2.1", | ||
"triple-beam": "^1.3.0", | ||
"logform": "^2.1.2", | ||
"colors": "1.4.0" | ||
"winston-daily-rotate-file": "^4.2.1" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"chai": "^4.4.1", | ||
"eslint": "^5.16.0", | ||
"mocha": "3.4.2", | ||
"license-check-and-add": "2.3.6", | ||
"mocha": "^10.5.2", | ||
"mockery": "^2.1.0", | ||
"nyc": "11.1.0", | ||
"nyc": "^17.0.0", | ||
"rewire": "^4.0.0", | ||
"sinon": "^7.3.2", | ||
"license-check-and-add": "2.3.6" | ||
"sinon": "^18.0.0", | ||
"sinon-chai": "^3.7.0" | ||
}, | ||
@@ -58,0 +59,0 @@ "license-check-and-add-config": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
464093
9