Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Feature Request : Enable customization of the metrics #1236

Open
philippe-lavoie opened this issue Jun 22, 2021 · 0 comments
Open

Feature Request : Enable customization of the metrics #1236

philippe-lavoie opened this issue Jun 22, 2021 · 0 comments

Comments

@philippe-lavoie
Copy link

Feature Request : allow functions to expose custom metrics

What happened: I wanted to return some custom metrics, however the path /metrics is intercepted by kubeless

What you expected to happen: It's good that there is a default implementation, however it would be nice if I could access the global register and add my custom labels or custom metrics.

For example the following does not inject new labels

const { collectDefaultMetrics, register } = require('prom-client');

// Enable the collection of default metrics
collectDefaultMetrics({
  labels: { NODE_APP_INSTANCE: process.env.NODE_APP_INSTANCE , app : 'get-order'},
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant