Open zwmagic opened 7 months ago
Currently, the monitoring plug-in supports reporting metrics to Prometheus. The monitoring plugin also supports reporting the metrics information collected by the flow control plugin. You can check the user manual of the monitoring plug-in to see if it meets your requirements. Monitoring plugin manual address: https://sermant.io/zh/document/plugin/monitor.html.
Prometheus metrics capabilities can be transferred to core, so that other plugins can also customize metrics.
The Sermant community accepted this issue request and will support Prometheus in monitoring the metrics information of the Sermant framework, plugins, and host microservices in the future.
What would you like to be added?
It is hoped that Sermant will support Prometheus monitoring so that Sermant's core metrics as well as each plugin's custom metrics can be monitored through Grafana.
Why is this needed?
Proposal proposal
Regarding the need for Sermant to support Prometheus monitoring, I am currently considering the following three options and hope to discuss them in the community in order to choose the most suitable one or combine it with other more suitable options.
Solution 1: Integrate Micrometer
Advantages: Micrometer provides a common interface integrated with a variety of monitoring systems (including Prometheus), has complete documentation, and is easy to get started. Disadvantages: need to introduce additional dependencies
Option 2: Use Prometheus’ native API directly
Advantages: Directly use Prometheus native capabilities Disadvantages: Completely bound to Prometheus
Option 3: Implement custom Metric interface
advantage:
shortcoming: