-
Notifications
You must be signed in to change notification settings - Fork 410
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
Add prometheus metric endpoint (prometheus client) #2853
Comments
Thank you for your contribution and for sharing your ideas. However, it appears that your request is more of a feature suggestion rather than a bug report. Since you have a "grown" GitHub account, it would be fantastic if you could implement this functionality in a pull request yourself. If you need any assistance with the implementation or have any questions, feel free to reach out. Additionally, I have a question regarding scalability: How feasible is it in a production environment if more than 100 people are simultaneously scraping the database using Prometheus? Are there any considerations or best practices we should take into account to ensure optimal performance and stability? I look forward to your feedback and potential collaboration on this feature. |
It is a feature request, yes. Unfortunately i'm not a java guy :( A prometheus metrics endpoint provides metrics normally on a different port with the endpoint (default) The only traffic to the service is coming in regular intervals from the Prometheus server. The Prometheus client provides common metrics (eg. java memory and cpu stats) and all components must send their values with labels to the client which holds the values in memory and publishes them on the metrics endpoint. So even the scraping from the Prometheus server is more a less a "memory dump". Prometheus supports metric types like gauges, counters and histrograms. I wrote the fenecon-exporter which actually is generate too much load to fetch all the data. With the prometheus endpoint everything could be solved with a single and easy request and I would retire the fenecon-exporter. |
Component
Backend
Description
Provide an
/metrics
endpoint for Prometheus scraping using the prometheus client to collect OpenEMS metrics with a single endpoint.The text was updated successfully, but these errors were encountered: