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

List all consumed and generated metrics by opencost #138

Open
debMan opened this issue Aug 28, 2023 · 5 comments
Open

List all consumed and generated metrics by opencost #138

debMan opened this issue Aug 28, 2023 · 5 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed

Comments

@debMan
Copy link

debMan commented Aug 28, 2023

I deployed a separate Prometheus for opencost and scraped my own infrastructure with existing cAdvisor, KSM, and node-exporter, and want to drop all other metrics that are not used on opencost and have no need for them.
I tried to dig into the code, but it's not a proper approach.

The missing part which I opened an issue for is the lack of a clean and exact list of consumed and generated metrics by opencost in docs, neither on kubecost nor on opencost.

I checked the exposed metrics and queried metrics by opencost, and they showed more and different metrics than docs.

Suggestion:
Provide a clean list for generated and consumed metrics in the docs, or place it on a separate file on the repo, to keep users stack updated with it.

@mattray mattray added the good first issue Good for newcomers label Aug 29, 2023
@mattray
Copy link
Collaborator

mattray commented Aug 29, 2023

I'm going to move this over to github.com/opencost/opencost-website/ since I think it would be useful over in the Documentation.

@mattray mattray transferred this issue from opencost/opencost Aug 29, 2023
@mattray mattray added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Aug 29, 2023
@mattray
Copy link
Collaborator

mattray commented Aug 30, 2023

Kubecost has https://docs.kubecost.com/architecture/user-metrics, which should be a good start (and might be identical).

@mattray
Copy link
Collaborator

mattray commented Aug 30, 2023

Really we need to revisit https://www.opencost.io/docs/integrations/opencost-exporter#available-prometheus-metrics and clean it up authoritatively.

@debMan
Copy link
Author

debMan commented Sep 2, 2023

I really want to contribute, but I don't have enough Golang development knowledge to fetch relevant information from the codebase.

@debMan
Copy link
Author

debMan commented Sep 4, 2023

Thanks for your attention @mattray

Kubecost has https://docs.kubecost.com/architecture/user-metrics, which should be a good start (and might be identical).

This page doesn't clarify which ones are consumed, and which ones are generated. Not only on opencost, but also on other parts like KSM.


Really we need to revisit https://www.opencost.io/docs/integrations/opencost-exporter#available-prometheus-metrics and clean it up authoritatively.

Also, there is another list of metrics here: https://www.opencost.io/docs/integrations/prometheus#available-metrics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants