Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

242
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!