TL;DR In this article, I will explain how to get kube-proxy's metrics via a curl command from a pod via the following command. curl -s \ http://192.168.64.7:10249/metrics Monitoring a Kubernetes cluster with Prometheus Monitoring a Kubernetes cluster with Prometheus is useful for building dashboards and alerts. However, not many DevOps engineers may understand how Prometheus… Continue reading Get kube-proxy’s metrics manually
Tag: Prometheus
Get kube-controller-manager’s metrics manually
TL;DR In this article, I will explain how to get kube-controller-manager's metrics via a curl command from a pod via the following command. curl -s -k -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" https://192.168.64.7:10259/metrics Monitoring a Kubernetes cluster with Prometheus Monitoring a Kubernetes cluster with Prometheus is useful for building dashboards and alerts. However, not many DevOps… Continue reading Get kube-controller-manager’s metrics manually
Get kube-scheduler’s metrics manually
TL;DR In this article, I will explain how to get kube-scheduler's metrics via a curl command from a pod via the following command. curl -s -k \ -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \ https://192.168.64.7:10259/metrics Monitoring a Kubernetes cluster with PrometheusPreparationKubernetes clusterkube-schedulerbind-address and portIP addressGet kube-scheduler's metricsCreate a ClusterRole and a ServiceAccountCreate a Pod from which… Continue reading Get kube-scheduler’s metrics manually
Get kubelet’s metrics manually
TL;DR kubelet is a service that runs on each worker node in a Kubernetes cluster and is resposible for managing the Pods and containers on a machine. In this article, I will explain how to get kubelet's metrics via a curl command from a pod via the following command. curl -k \ -H "Authorization: Bearer… Continue reading Get kubelet’s metrics manually
Get kube-apiserver’s metrics manually
TL;DR In this article, I will explain how to get kube-apiserver's metrics via a curl command from a pod via the following command. curl \ --cacert /var/run/secrets/kubernetes.io/serviceaccount/ca.crt \ -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \ https://kubernetes.default.svc/metrics Monitoring a Kubernetes cluster with PrometheusPreparationKubernetes clusterkube-apiserver Pod and ServiceGet kube-apiserver's metricsCreate a ClusterRole and a ServiceAccountCreate a Pod from… Continue reading Get kube-apiserver’s metrics manually



