Repository navigation
Closed
Labels
bugSomething isn't working
Description
Describe the bug
"krr simple -n kube-system -p https://prometheus.example.com" gives "Request-URI Too Large" exception
To Reproduce
not sure if this is reproducible in every environment, i am trying the command on a cluster having 165 nodes, not sure if that is a big number for krr
Expected behavior
report should appear
Screenshots
pasting the error with masked url and cluster name
$ krr simple -n kube-system -p https://prometheus.example.com
_____ _ _ _ _______ _____
| __ \ | | | | | |/ / __ \| __ \
| |__) |___ | |__ _ _ ___| |_ __ _ | ' /| |__) | |__) |
| _ // _ \| '_ \| | | / __| __/ _` | | < | _ /| _ /
| | \ \ (_) | |_) | |_| \__ \ || (_| | | . \| | \ \| | \ \
|_| \_\___/|_.__/ \__,_|___/\__\__,_| |_|\_\_| \_\_| \_\
Running Robusta's KRR (Kubernetes Resource Recommender) v1.2.1
Using strategy: Simple
Using formatter: table
[INFO] Using clusters: ['k8-cluster']
[INFO] Listing scannable objects in k8-cluster
[INFO] Found 30 objects across 1 namespaces in k8-cluster
on 0: [INFO] Connecting to Prometheus for k8-cluster cluster
on 0: [INFO] Using Prometheus at https://prometheus.example.com for cluster k8-cluster
on 0: [INFO] Prometheus found
on 0: [INFO] Prometheus connected successfully for k8-cluster cluster
Calculating Recommendation |⚠︎ | (!) 0/30 [0%] in 1:55.2 (0.00/s)
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /private/tmp/robusta_krr/core/runner.py:174 in run │
│ │
│ [Errno 2] No such file or directory: '/private/tmp/robusta_krr/core/runner.py' │
│ │
│ /private/tmp/robusta_krr/core/runner.py:153 in _collect_result │
│ │
│ [Errno 2] No such file or directory: '/private/tmp/robusta_krr/core/runner.py' │
│ │
│ /private/tmp/robusta_krr/core/runner.py:125 in _gather_objects_recommendations │
│ │
│ [Errno 2] No such file or directory: '/private/tmp/robusta_krr/core/runner.py' │
│ │
│ /private/tmp/robusta_krr/core/runner.py:101 in _calculate_object_recommendations │
│ │
│ [Errno 2] No such file or directory: '/private/tmp/robusta_krr/core/runner.py' │
│ │
│ /private/tmp/robusta_krr/core/integrations/prometheus/loader.py:90 in gather_data │
│ │
│ [Errno 2] No such file or directory: │
│ '/private/tmp/robusta_krr/core/integrations/prometheus/loader.py' │
│ │
│ ... 2 frames hidden ... │
│ │
│ /private/tmp/robusta_krr/core/integrations/prometheus/metrics/base_filtered_metric.py:61 in │
│ query_prometheus │
│ │
│ [Errno 2] No such file or directory: │
│ '/private/tmp/robusta_krr/core/integrations/prometheus/metrics/base_filtered_metric.py' │
│ │
│ /private/tmp/robusta_krr/core/integrations/prometheus/metrics/base_metric.py:71 in │
│ query_prometheus │
│ │
│ [Errno 2] No such file or directory: │
│ '/private/tmp/robusta_krr/core/integrations/prometheus/metrics/base_metric.py' │
│ │
│ /private/tmp/asyncio/threads.py:25 in to_thread │
│ │
│ [Errno 2] No such file or directory: '/private/tmp/asyncio/threads.py' │
│ │
│ /private/tmp/concurrent/futures/thread.py:58 in run │
│ │
│ [Errno 2] No such file or directory: '/private/tmp/concurrent/futures/thread.py' │
│ │
│ /private/tmp/prometheus_api_client/prometheus_connect.py:408 in custom_query_range │
│ │
│ [Errno 2] No such file or directory: '/private/tmp/prometheus_api_client/prometheus_connect.py' │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
PrometheusApiClientException: HTTP Status Code 414 (b'<html>\r\n<head><title>414 Request-URI Too Large</title></head>\r\n<body>\r\n<center><h1>414 Request-URI Too
Large</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n')
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
on same cluster, it worked on a namespace having 3 pods, looks like something to do with large number of pods
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
arikalon1 commentedon Jun 9, 2023
Thanks for reporting it @infa-ddeore
I think this is similar to #60
We're working on fixing it ASAP
otherguy commentedon Jun 20, 2023
Hey :) Any progress on this? With GKE's Prometheus, it's not a
414but simply a400:Currently, we need to look at namespaces one by one which is time consuming.
MarcinWojtasEit commentedon Jun 28, 2023
Hello, any progress on this?