Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Proposal: Add metrics for function resource usage #499

Open
Qolzam opened this issue Aug 22, 2019 · 1 comment
Open

Proposal: Add metrics for function resource usage #499

Qolzam opened this issue Aug 22, 2019 · 1 comment

Comments

@Qolzam
Copy link
Contributor

Qolzam commented Aug 22, 2019

Add metrics for resource usage of each function in OFC dashboard.

  1. Memory usage
  2. CPU usage

Expected Behaviour

Display resource usage for function in OFC dashboard.

Current Behaviour

Now OFC dashboard only show the number of function invocation in code status (success, error).

Possible Solution

We can have some metrics like container_cpu_usage_seconds_total from Prometheus.

@mr47
Copy link

mr47 commented Sep 4, 2019

@Qolzam You can use dockprom/swamprom for getting these statistics. In any case, I think OpenFaaS can't store cpu/memory without cadvisor and /maybe node-exporter. So I think it's more about to how you will configure it. Checkout dockprom/swamprom.

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

2 participants