fix: force LC_ALL=C for metric commands to avoid comma decimal separator #51

Merged
rafaga21 merged 1 commits from feat/push-monitoring-agent-v2 into master 2026-06-11 20:50:31 -04:00
Owner

Some locales use comma as decimal separator (e.g., es_DO.UTF-8).
This caused invalid JSON like "cpu": 2,4 instead of "cpu": 2.4.
Prefixed CPU and RAM commands with LC_ALL=C to force dot decimals.

Also removed debug logging from pushMetrics endpoint.

Some locales use comma as decimal separator (e.g., es_DO.UTF-8). This caused invalid JSON like "cpu": 2,4 instead of "cpu": 2.4. Prefixed CPU and RAM commands with LC_ALL=C to force dot decimals. Also removed debug logging from pushMetrics endpoint.
rafaga21 added 1 commit 2026-06-11 20:49:49 -04:00
Some locales use comma as decimal separator (e.g., es_DO.UTF-8).
This caused invalid JSON like "cpu": 2,4 instead of "cpu": 2.4.
Prefixed CPU and RAM commands with LC_ALL=C to force dot decimals.

Also removed debug logging from pushMetrics endpoint.
rafaga21 merged commit ab9e5d9cf3 into master 2026-06-11 20:50:31 -04:00
rafaga21 deleted branch feat/push-monitoring-agent-v2 2026-06-11 20:50:33 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: devlab/server-manager#51