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

File system error:Metrics not available at the moment #3372

Open
xiaozhao123254 opened this issue Jul 14, 2021 · 8 comments
Open

File system error:Metrics not available at the moment #3372

xiaozhao123254 opened this issue Jul 14, 2021 · 8 comments

Comments

@xiaozhao123254
Copy link

image

@Nokel81
Copy link
Collaborator

Nokel81 commented Jul 19, 2021

Is the kubernetes cluster using containerD or some other runtime?

@austinnichols101
Copy link

I have the same message on a GKE autopilot cluster (containerD runtime)

@ryanthedev
Copy link

I have the same issue running on AKS/containerD.

@cbluth
Copy link

cbluth commented Sep 3, 2021

i have a similar symptom, i cannot view metrics in lens with an account on the cluster using a rolebinding in a specific namespace, using eks and deploying the lens-metric namespace via the buttons in lens (from a different account):

image

@Nokel81
Copy link
Collaborator

Nokel81 commented Sep 13, 2021

@cbluth If you open up your devtools, do you see any logs about permsissions?

@marcbachmann
Copy link
Contributor

Regarding the missing container_fs_usage_bytes metric, that's coming soon in cadvisor.
A PR got merged: google/cadvisor#2936

@cbluth
Copy link

cbluth commented Nov 15, 2021

@Nokel81 @xiaozhao123254

i have a working template here:

# role
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  namespace: lens-metrics
  name: read-only-lens-metrics
rules:
- apiGroups:
  - ""
  - "apps"
  resources:
  - pods
  - events
  - services
  verbs:
  - get
  - list
  - watch
- apiGroups:
  - ""
  resources:
  - "services/proxy"
  verbs:
  - create

# role binding
--- 
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  annotations:
  namespace: lens-metrics
  name: vendor-read-metrics
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: read-only-lens-metrics
subjects:
- kind: Group
  name: ${SOMEGROUP1}
  apiGroup: rbac.authorization.k8s.io
- kind: Group
  name: ${SOMEGROUP2}
  apiGroup: rbac.authorization.k8s.io

@lisenet
Copy link

lisenet commented Mar 16, 2022

I've this very problem on a baremetal K8s cluster provisioned by Kubeadm. Prometheus is up and running without issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants