guoshimin / guoshimin.github.io

0 stars 0 forks source link

How to instruct "--enable-custom-metrics" in minikube or kops? #1

Open zanhsieh opened 8 years ago

zanhsieh commented 8 years ago

Hi Shimin,

Have read your custom metrics article 1 week ago. Fantastic articles!! I learned a lot.

However, I need to experiment custom metrics before pushing into production. But I have no idea on how to do it in minikube and kops. Any hint would be helpful.

Thanks.

archyufa commented 7 years ago

For Minikube: $ minikube start --extra-config kubelet.EnableCustomMetrics=true

For Kops, going to be documented here: https://github.com/kubernetes/kops/issues/2867

ngtuna commented 7 years ago

@archyufa That command seems doesn't work properly on minikube. I ran it and enabled heapster. However, listing metrics for a random pod showing no qps:

[
  "memory/limit",
  "network/tx",
  "network/tx_errors",
  "memory/rss",
  "network/rx",
  "network/rx_errors",
  "cpu/limit",
  "memory/page_faults",
  "cpu/request",
  "memory/usage",
  "memory/request",
  "memory/major_page_faults",
  "uptime",
  "memory/cache",
  "cpu/usage",
  "memory/working_set"
 ]
jonathan-kosgei commented 6 years ago

@ngtuna I'm running into the same issue. Did you figure it out? I think it should show custom/qps