0%

CNCF-Projects

阅读更多

1 Overview

Graduated and incubating projects

2 grafana

2.1 prometheus

grafana-prometheus-node_exporter-architecture

2.1.1 Step1: Install prometheus

Download package from here.

1
2
3
# Default port is 9090
# change the prometheus.yml of config `scrape_configs.job_name(prometheus).static_configs.targets` to 19090
./prometheus --web.listen-address="0.0.0.0:19090"

Tips:

  • up: Show all up machines.
  • http://localhost:19090/metrics: List all metrics in text.

2.1.2 Step2: Install node-exporter

Download package from here.

1
2
# Default port is 9100
./node_exporter --web.listen-address=":19100"

Then add the following config to the scrape_configs part of prometheus.yml and restart prometheus.

1
2
3
4
5
6
7
- job_name: 'node_exporter'

# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.

static_configs:
- targets: ['localhost:19100'] # Adjust the port if your node_exporter listens on a different one.

2.1.3 Step3: Install grafana

Install grafa following the guide here.

The grafana will be started at the default port 3000.

Add datasource prometheus, and config the address.

Then search the grafana templates from here which you can import into your cluster directly.

2.1.4 Useful dashboard

  1. 1860: Node Exporter Full

2.2 参考

3 istio

3.1 参考