unable to get the system service memory and cpu metrics of kubernetes cluster in grafana dashboard using prometheus

8/28/2018

I am trying to monitor my kubernetes cluster metrics using Prometheus and grafana. Here is the link which was i followed. Facing the issue with kubernetes-service-endpoints (2/3 up) in my Prometheus dashboard.

Prometheus dashboard

below is grafana dashboard which is used in this task.

grafana dashboard

I checked my Prometheus pod logs .It shows the errors like

logs

Could anybody suggest how to get system services metrics in the above dashboard?

(or)

suggest me the any grafana dashboard name for monitoring the kubernetes cluster using Prometheus?

-- gayathri
grafana
kubernetes
monitoring
prometheus

1 Answer

8/29/2018

Check your prometheus.yaml it should have static configs as for prometheus,

  static_configs:
  - targets:
    - localhost:9090

curl localhost:9090/metrics and make sure you're receiving metrics as output

For grafana dashboard, create an org -> prometheus as data source configure prometheus IP:PORT and click on test and confirm connectivity is available.

Open .json file and change the configs according your requirements and import and check.

-- hariK
Source: StackOverflow