Skip to content

Commit

Permalink
Merge pull request #64 from felix-hoc/expose-prom-client
Browse files Browse the repository at this point in the history
Expose prom-client to be used by a business service
  • Loading branch information
sv2 committed Apr 9, 2019
2 parents d6f26b4 + 768d1ae commit 94b99c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/swsInterface.js
Expand Up @@ -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;
}
};

0 comments on commit 94b99c9

Please sign in to comment.