Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: add endpoint for getting resource consumption #220

Open
jennydaman opened this issue Jan 16, 2023 · 1 comment
Open

Feature request: add endpoint for getting resource consumption #220

jennydaman opened this issue Jan 16, 2023 · 1 comment

Comments

@jennydaman
Copy link
Collaborator

jennydaman commented Jan 16, 2023

It would be cool if pman could, over an HTTP endpoint, report the compute resource's resource usage e.g. % CPU usage (or CPU request).

This information would be requested by CUBE, and then requested from CUBE by a client, e.g.

GET /api/v1/computeresources/usage/

[
    {
        "compute_resource_name": "host",
        "usage": 0.2
    },
    {
        "compute_resource_name": "galena",
        "usage": 0.6
    },
    {
        "compute_resource_name": "e2-5m",
        "usage": 0.3
    }
]

This information can be rendered using ChRIS_ui for

  • the sake of pretty graphs
  • monitoring: see if any compute resources are down
  • scheduling: a user might want to choose a compute resource which has low utilization.
@jennydaman
Copy link
Collaborator Author

A more standardized solution would be to add a /metrics endpoint for pman and pfcon conforming to prometheus's format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant