apluslms / a-plus

A+ frontend portal - A+ LMS documentation:
https://apluslms.github.io/
Other
64 stars 72 forks source link

Monitoring Custom metric for Aplus lms With Prometheus and Grafana #1355

Closed hcalebe closed 3 months ago

hcalebe commented 3 months ago

Hello and thank you very much for your hard work. I really like I am an IT security student I would like to know how I can design the images myself of the different docker containers I haven't really found any documentation on this yet.

In fact, I plan to set up a monitoring system with prometheus and grafana which will monitor custom metrics so i want to modify the application code before rebuilding the iamge docker

my second request is to know:

I saw that the logs are displayed in the console when the application starts Are these metrics put in a specific file to monitor (I'm talking about a log file)?

if this is the case, several assessments are available to me in the case of a project that I aim to realize

ihalaij1 commented 3 months ago

Hey!

The logs are not saved in a file by default.

You can make changes to this behavior in the settings.py file. https://github.com/apluslms/a-plus/blob/ce46d6f7592cd2cdce3e440d455d7754695e5aeb/aplus/settings.py#L470

Relevant Django documentation about logging: https://docs.djangoproject.com/en/5.0/topics/logging/#handlers