[GH-ISSUE #630] Disable Metrics #283

Open
opened 2026-02-26 10:31:35 +03:00 by kerem · 2 comments
Owner

Originally created by @Quadrubo on GitHub (May 19, 2023).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/630

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

Originally created by @Quadrubo on GitHub (May 19, 2023). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/630 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
Author
Owner

@sebrhex commented on GitHub (Dec 7, 2023):

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?

<!-- gh-comment-id:1844867035 --> @sebrhex commented on GitHub (Dec 7, 2023): 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`?
Author
Owner

@igwyd commented on GitHub (Dec 7, 2023):

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.

<!-- gh-comment-id:1845102676 --> @igwyd commented on GitHub (Dec 7, 2023): 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#283
No description provided.