Linuxとkubernetesのプロメテウス+ grafana監視例

プロメテウスのインストールと設定1

タールはprometheus- zxvf 2.30 .linux-amd64.tar.gz -Cは/ usr / local / 
LN -svは/ usr / local / prometheus- 2.30 .linux-AMD64 /は/ usr / local / プロメテウス
CDは/ usr / local / プロメテウス
[ルート@ do1cloud03のプロメテウス]#猫のprometheus.yml | egrepの-v ' ' 
グローバル

警告:
  alertmanagers:
   - static_configs:
     - 対象:

rule_files :

scrape_configs:
   - JOB_NAME:Linuxの
    static_configs:
       -対象:[ ' 192.168.1.46:9100 '] 
        標識:
          例えば:DB1
   - JOB_NAME:node45 
    static_configs:
       -ターゲット:[ ' 192.168.1.45:9100 ' ] 
        標識:
          例えば:node45

2.ノード・輸出をインストールします。

node_exporter- -zxvfタール0.160 .linux- arm64.tar.gz 
MV node_exporter - 0.160 .linux-AMD64は/ usr / local / node_exporter / node_exporter

3. Quguanネットワーク・ノード・輸出国-1.6.0のダウンロード対応するダッシュボード

HTTPS:// grafana.com/grafana/dashboards

 

 4.ダッシュボードをに提供され、

 5.トラブルシューティングのアイデア:、プロメテウス問合せグラフにウエディングSQLを取得する場所

 

 

 

おすすめ

転載: www.cnblogs.com/hixiaowei/p/11549892.html