Skip to content
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

Resource monitor doesn't work #23044

Closed
RomanNikitenko opened this issue Jul 18, 2024 · 3 comments
Closed

Resource monitor doesn't work #23044

RomanNikitenko opened this issue Jul 18, 2024 · 3 comments
Assignees
Labels
area/editor/vscode Issues related to the Code OSS editor of Che kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs.

Comments

@RomanNikitenko
Copy link
Member

RomanNikitenko commented Jul 18, 2024

Describe the bug

I get Resource monitor won't be displayed. Metrics Server is not enabled on the cluster. warning on the dogfooding instance.
I'm not aware if it's something that really should be configured
or
it's a potential problem on the resource monitor extension side.

Che version

7.88@latest

Steps to reproduce

  1. Create a workspace on the dogfooding instance.
  2. Click Resources button on the bottom panel.
  3. Check notifications

Expected behavior

Resource monitor should display info about resources.

Runtime

I reproduced it on the dogfooding instance

Screenshots

image

Eclipse Che Logs

I found the following in logs:

workbench.web.main.js:2031 [eclipse-che.resource-monitor]Cannot connect to Metrics Server. Status code: 404. Error: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the server could not find the requested resource","reason":"NotFound","details":{},"code":404}
image

Additional context

No response

@RomanNikitenko RomanNikitenko added the kind/bug Outline of a bug - must adhere to the bug report template. label Jul 18, 2024
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jul 18, 2024
@ibuziuk
Copy link
Member

ibuziuk commented Jul 18, 2024

Does not seem to work for me on Developer Sandbox / 3.14 but the error is different:

Screenshot 2024-07-18 at 14 43 52

@ibuziuk ibuziuk added severity/P1 Has a major impact to usage or development of the system. area/editor/vscode Issues related to the Code OSS editor of Che and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jul 22, 2024
@paddy667
Copy link

paddy667 commented Jul 23, 2024

I have the same issue, version:
image

@RomanNikitenko RomanNikitenko added the team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs. label Jul 23, 2024
@vitaliy-guliy vitaliy-guliy self-assigned this Aug 5, 2024
@vitaliy-guliy vitaliy-guliy pinned this issue Aug 5, 2024
@vitaliy-guliy
Copy link
Contributor

I noticed that on the dogfooding instance when the url to the metrics server has trailing slash, nothing is returned

$ kubectl get --raw /apis/metrics.k8s.io/v1beta1/
Error from server (NotFound): the server could not find the requested resource

If I remove trailing slash, it works

$ kubectl get --raw /apis/metrics.k8s.io/v1beta1 | jq .
{
  "kind": "APIResourceList",
  "apiVersion": "v1",
  "groupVersion": "metrics.k8s.io/v1beta1",
  "resources": [
    {
      "name": "nodes",
      "singularName": "node",
      "namespaced": false,
      "kind": "NodeMetrics",
      "verbs": [
        "get",
        "list"
      ]
    },
    {
      "name": "pods",
      "singularName": "pod",
      "namespaced": true,
      "kind": "PodMetrics",
      "verbs": [
        "get",
        "list"
      ]
    }
  ]
}

On the developer sandbox it works with and without trailing slash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/vscode Issues related to the Code OSS editor of Che kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs.
Projects
Status: ✅ Done
Development

No branches or pull requests

5 participants