Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

240
Vistas
How to retrieve ephemeral storage kubernetes metric via client-go and golang

I am able to fetch CPU and memory usage of a pod in a Kubernetes cluster with client-go using the following piece of code.

    podContainers := podMetric.Containers
    for _, container := range podContainers {
        cpu += container.Usage.Cpu().MilliValue()
        mem += container.Usage.Memory().ScaledValue(6)
    }

But having trouble getting ephemeral storage usage.

container.Usage.StorageEphemeral() //Gives me 0 every time.

How do I get the storage usage?

Even kubectl top pod command does not give the storage usage. Is there a limitation to provide storage usage from the Kubernetes side?

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda