Hi there,
I have a test case, wherein I have to deploy Prometheus to capture the pods and node-specific metrics, such as metrics exposes by node exporter and Kube-state-metric. The servers are very isolated with no connectivity to the web UI or any dashboard. Need some help to understand, how can we get these metrics in JSON or any other format using any CLI tool? Because of the environment restriction of no access to the web UI or dashboards, cannot deploy Grafana. Your suggestions will be a huge help.
I query API using "kubectl get --raw /apis/metrics.k8s.io/v1beta1/pods | jq ‘.’ but I can just see the memory and CPU raw data, what should I add to get more metrics in this case? For example, metrics exposes by kube-state-metrics and node-exporter which includes more data points such as pods state/health, network, disk usage,.etc,
Thanks,