diff --git a/Makefile b/Makefile index 4e23f84..ffcb65e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ test: ./node_modules/jasme/run.js lint: - node_modules/eslint/bin/eslint.js . \ No newline at end of file + node_modules/eslint/bin/eslint.js src diff --git a/package.json b/package.json index 87f37d3..b851434 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "express-prom-bundle", - "version": "1.1.0", + "version": "1.1.1", "description": "express middleware with popular prometheus metrics in one bundle", "main": "src/index.js", "keywords": [ diff --git a/src/index.js b/src/index.js index 7c30157..3a50492 100644 --- a/src/index.js +++ b/src/index.js @@ -61,7 +61,6 @@ function main(opts) { "http_request_duration", "number of http responses labeled with status code", { - labels: ["bar"], buckets: [0.003, 0.03, 0.1, 0.3, 1.5, 10] } ); @@ -87,8 +86,8 @@ function main(opts) { let timer, labels; if (metrics["http_request_duration"]) { - timer = metrics["http_request_duration"].startTimer(labels); labels = {"status_code": 0}; + timer = metrics["http_request_duration"].startTimer(labels); } if (req.path == "/metrics") {