ONLYOFFICE / Docker-DocumentServer

ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
GNU Affero General Public License v3.0
1.43k stars 494 forks source link

Disable Metrics #630

Open Quadrubo opened 1 year ago

Quadrubo commented 1 year ago

How do I disable the metrics?

What is the current behavior?

I currently have the env variable METRICS_ENABLED set to false. The metrics/out.log still reports the Flushing of stats which causes CPU spikes of my server in 10 minutes intervals which cause the fans to spin up for a second which I'd like to avoid if I'm not doing anything.

What is the expected behavior?

Metrics should not be reported if METRICS_ENABLED is set to false.

DocumentServer Docker tag: latest

Host Operating System: Unraid

sebrhex commented 11 months ago

What would happen if we remove the file /etc/supervisor/conf.d/ds-metrics.conf manually? Is anything depending on the process var/www/onlyoffice/documentserver/server/Metrics/metrics ./config/config.js?

igwyd commented 11 months ago

Hello @Quadrubo, sorry for the late reply. I created ticket #65410 with your suggestion.

@sebrhex as far as I can see, nothing depends on this service except statistics. You can stop the service and will not receive message in the logs.