zadig icon indicating copy to clipboard operation
zadig copied to clipboard

Add prometheus metrics API

Open flyer103 opened this issue 4 years ago • 3 comments

Is your enhancement proposal related to a problem? Please describe.

Currently, Zadig services do not have metrics monitoring, and it will bring about constant problems in perception, discovery, and analysis.

Describe the solution you'd like

Add Prometheus metrics API for each service of Zadig.

Describe alternatives you've considered

It may be better to use OpenTelemetry to increase support for metrics API, but OpenTelemetry's current support for metrics is not mature yet, so for now, OpenTelemetry is not used to meet the needs of metrics monitoring.

Additional context

We can refer to the example here: Instrumenting a Go application for Prometheus

flyer103 avatar Dec 16 '21 15:12 flyer103

Assign this issue to me, i can add prometheus metrics for services.

detongz avatar Feb 06 '22 07:02 detongz

Components such as hubagent, cron, predator, reaper,plugins are schedued services. These components need prometheus node-exporter to report metrics to prometheus instead of waiting for prometheus to pull metrics from them. @flyer103

detongz avatar Mar 13 '22 07:03 detongz

Metrics API could be add to hub-agent / cron / predator / reaper later. hub-agent is a resident service that connects to Zadig cluster. The metrics API may not be added for the time being, and its design may be changed in the future.

flyer103 avatar Mar 14 '22 02:03 flyer103

Prometheus metrics API has been added to service Aslan which bears the majority of the request pressure, for more details, please refer to this link: https://docs.koderover.com/zadig/ZadigX%20dev/stable/high-availability/#prometheus-%E9%85%8D%E7%BD%AE

AllenShen avatar Jul 31 '23 02:07 AllenShen