sastix / cms

A general purpose java cms
Apache License 2.0
25 stars 14 forks source link

[Monitoring] Integrate a monitoring system #13

Open Sanskar95 opened 3 years ago

Sanskar95 commented 3 years ago

I feel prometheus would be a good choice owing to its in built alerting mechanisms, centralised control and web ui for visualization and also the presence of PromQL Some questions regarding monitoring: 1) Is the logging system in the backend app in place? 2)If yes, whats the structure of logs , do we need to implement a middleware to transform the logs so that it becomes compatible with prometheus worker. @iskitsas

iskitsas commented 3 years ago

Hi @Sanskar95,

In the app you will find just the usual application logs. In the past we had used the ELK stack, so we had logstash and filebeat in place, to collect and parse logs, pushed to ES. If you are more familiar with this stack, you can use it.

On the other hand, you should implement anything needed to support Prometheus and be compatible with it. Propose an architecture so we can review it together, and help you where needed. You can change the structure of the logs to any format that is convenient for the integration.

Sanskar95 commented 3 years ago

Hi @iskitsas Considering its a JVM based application , i feel Micrometer would be the best choice to make logs prometheus friendly prometheus_experiment

iskitsas commented 3 years ago

Hi @Sanskar95 ,

Looks fine.

Thanks!