-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error parsing pool parameters values when locale is not in EN. #3
Comments
Hello @johnnnnnnnnnnnnnn , thanks for reporting the issue. I will fix the parsing and release a new version. This should not impact the other collectors, could you please confirm? Thanks |
IBM Spectrum is providing different format in this case, probably by the "locale" set in the server. In my case I have : "Total Volume Capacity": "424,960.00" Not sure if we could force a locale in the API request otherwise need to find a way to parse from any format. |
Our operating system has Swedish locale. I've changed the locale of the webserver in accordance with this solution: https://www.ibm.com/support/pages/node/4755507 It now works as expected. Thanks for pointing me in the right direction! |
Hello, Good that it solves the problem but anyway it would need to correctly parse the values in different formats. Thanks |
I'm getting a theese erors in my logs. It seem to have issues with collecting and/or publishing the metrics. Log entries like the one attached are generetated every time I access the published metrics. I am using your docker container with standard configs.
If I access the metrics with wget, as suggested in IBM's manual A typcial valeue will read:
"Total Volume Capacity": "821\u00a0272,08"
Parsing the metrics file with jq, the same value will be:
"Total Volume Capacity": "821 272,08",
My guess is that your code is not decoding '\u00a0' correctly.
ref: https://www.ibm.com/support/knowledgecenter/SS5R93_5.3.6/com.ibm.spectrum.sc.doc/mgr_rest_api_retrieving_cli.html
The text was updated successfully, but these errors were encountered: