Comments (11)
That's what I was suspecting, though it's not documented in Kubernetes docs:)
Will fix that while considering milli, micro and nano too :)
from kube-opex-analytics.
Yep - looks better, thanks!
from kube-opex-analytics.
hi @agrushin,
Thank you to raise this issue, we're working to fix that.
A hotfix should be provided very shortly.
from kube-opex-analytics.
Dear @agrushin,
I just made a hot release, can you retry and let me know if that fixes the issue please?
Please set your image version to latest
or 0.4.1-rc1
from kube-opex-analytics.
Thanks for a fast response.
Unfortunately, the same exception:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "backend.py", line 677, in create_metrics_puller
k8s_usage.extract_nodes(pull_k8s('/api/v1/nodes'))
File "backend.py", line 341, in extract_nodes
node.memAllocatable = self.decode_memory_capacity(item['status']['allocatable']['memory'])
File "backend.py", line 276, in decode_memory_capacity
return int(cap_value)
ValueError: invalid literal for int() with base 10: '14162554060800m'
I believe this is because of .endswith() is case sensitive; json result have m
in lower case, but function expected the upper.
from kube-opex-analytics.
I see, the problem is that the documentation does not state about the case sensitivity...
from kube-opex-analytics.
Can you try again please ?
The units are not considered non sensitive to case. Use version latest
or 0.4.1-rc2
from kube-opex-analytics.
by the way, do you think that in your metrics m
is for milli
or mega
? It's intriguing...
from kube-opex-analytics.
Heh, that's interesting, it is now about case; Looks like m
here stands for a milli
.
Checked on c5.4xlarge AWS ec2 instance with 32gb ram onboard. /api/v1/nodes
endpoint returns
{
"capacity": "31901716Ki",
"allocatable": "30485060812800m"
}
from kube-opex-analytics.
sorry the issue was closed accidentally, can you try again with latest
or 0.4.1-rc3
please?
from kube-opex-analytics.
cool.
If you like the tool, don't miss to give a star :) Thanks in advance.
from kube-opex-analytics.
Related Issues (20)
- env variable KOA_ENABLE_PROMETHEUS_EXPORTER not correclty decoded HOT 3
- deployed to Kubernetes, uwsgi doesn't respond, flask does HOT 2
- How to install kube-opex-analytics using helm3 (without tiller) HOT 4
- Grafana dashboard explanation. HOT 4
- Unable to run kube-opex-analytics container in userns enabled system HOT 1
- Create a Helm 3 repo and make it available through out Helm Hub
- Error displaying hourly, daily charts HOT 6
- Running on a virtual machine with NAT and port forward the backend crashes on start
- Investigate the cause of "Internal Server Error: "/api/v1/nodes": the server is currently unable to handle the request"
- Is there no way to have KOA_BILLING_HOURLY_RATE be dynamically updated as cluster usage increases and decreases using autoscaler? HOT 4
- Create Kustomize deployment manifests HOT 1
- Update docs HOT 1
- Add date filter for trends charts HOT 1
- Issue with CPU capacity reported by virtual nodes on Alicloud K8s HOT 3
- Metrics agregation crashs with keyerror
- Key error when API call fail
- Allows accounting based on resource.requests instead real usage HOT 9
- what's mean non-allocatable resources ? HOT 4
- Ingress apiVersion extensions/v1beta1 is deprecated HOT 2
- Usage Accounting (costs $) charts are not displaying HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-opex-analytics.