From 45ff94dc033f47a1beee79ecdd772b339e3daeec Mon Sep 17 00:00:00 2001 From: Sam Noel Date: Tue, 19 Nov 2024 10:36:01 -0500 Subject: [PATCH] fix: bad metric name --- package.json | 2 +- src/Service.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d3bd392..bc9dc73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oada/jobs", - "version": "4.7.2", + "version": "4.7.3", "description": "A library for oada job based microservices", "source": "src/index.ts", "main": "dist/index.js", diff --git a/src/Service.ts b/src/Service.ts index bb5e624..f61bbbc 100644 --- a/src/Service.ts +++ b/src/Service.ts @@ -139,7 +139,7 @@ export class Service { labelNames: ['service', 'type', 'state'] as const, }), 'job-times': new Histogram({ - name: 'job-times', + name: 'job_times', help: 'Histogram of job times', labelNames: ['service', 'type', 'status'] as const, buckets: [ @@ -163,8 +163,8 @@ export class Service { 131072, // 1.52 days 262144, // 3.04 days 524288 // 6.08 days - ] - }) + ], + }), }; if (object.opts) {