From 768d1aed54b34c71dae6185562003ba14a3a9dce Mon Sep 17 00:00:00 2001 From: FHochgru Date: Mon, 8 Apr 2019 14:10:39 +0200 Subject: [PATCH] Expose prom-client to be used by a business service --- lib/swsInterface.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/swsInterface.js b/lib/swsInterface.js index b5622f0..5b33d03 100644 --- a/lib/swsInterface.js +++ b/lib/swsInterface.js @@ -377,5 +377,10 @@ module.exports = { // Allow get stats as prometheus format getPromStats: function() { return promClient.register.metrics(); + }, + + // Expose promClient to allow for custom metrics by application + getPromClient: function () { + return promClient; } };