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

Feature Request : Enable customization of the metrics #1236

@philippe-lavoie

Description

@philippe-lavoie

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'},
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions