Good morning guys,
I’m running CloudStack 4.11. My Management Server (ServerDaemon) is started
with the following options:
-Duser.language=es -Duser.country=ES
I need to keep this because the billing module (Usage Server) requires it
for correct CSV and reports.
The built-in /metrics endpoint (served on port 9595) exposes some float
metrics using the Spanish locale, which means numbers use a comma as the
decimal separator:
my_metric_name{labels} 500,00
This causes Prometheus to fail when scraping:
strconv.ParseFloat: parsing "500,00": invalid syntax
I prefer not to decompile or patch CloudStack jars. Is there a way to:
-
Force the /metrics endpoint to use Locale.US for number formatting?
-
Or configure CloudStack so that the /metrics endpoint uses a different
locale than the main ServerDaemon process?
If not, what is the best solution — a reverse proxy (NGINX?) that replaces
commas with dots?
Thank you!
Kind regards.
--
*Francisco Arencibia Quesada.*
*DevOps Engineer*