sermant-io / Sermant

A Cloud-Native Proxyless Service Mesh based on Java Bytecode Enhancement Technology
https://sermant.io/
Apache License 2.0
1.19k stars 159 forks source link

Can Sermant support Prometheus monitoring? #1445

Open zwmagic opened 7 months ago

zwmagic commented 7 months ago

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?

  1. Through integration with Grafana, we can use its rich data visualization capabilities to create intuitive dashboards that can help us quickly locate and solve problems.
  2. Through monitoring metrics, monitoring alarms can be added to ensure the stability of sermant.

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:

hanbingleixue commented 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.

zwmagic commented 7 months ago

Prometheus metrics capabilities can be transferred to core, so that other plugins can also customize metrics.

daizhenyu commented 6 months ago

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.