Upgrade to Pro — share decks privately, control downloads, hide ads and more …

20211206-Prometheus with vRealize Operation min...

Sapphire Lin
February 14, 2022

20211206-Prometheus with vRealize Operation mini simple lab

Sapphire Lin

February 14, 2022
Tweet

More Decks by Sapphire Lin

Other Decks in Business

Transcript

  1. Confidential │ ©2021 VMware, Inc. Prometheus with vRealize Operation Simple

    metrics and alerting with Dashboard Mini Sample Lab Sapphire Lin Solution Engineer Dev. 2021
  2. Confidential │ ©2021 VMware, Inc. 2 vRealize Operations Manager (vRealize

    Operationsinstalled) - Advanced License - Management Pack for Kubernetes (後面有速安裝 guide) Any Kubernetes Cluster (e.g. Tanzu Kubernetes Cluster) - Prometheus (後面有速安裝 guide) 監控端儀表板 資料來源環境 前置需求
  3. Confidential │ ©2021 VMware, Inc. 3 支援的蒐集指標 Ref. https://docs.vmware.com/en/VMware-vRealize-Operations-Management-Pack-for-Kubernetes/1.6/kubernetes- solution/GUID-574C72F9-F109-4082-99DD-8FF0483048FB.html

    EXPORTER LINUX WINDOWS 指標 Node Exporter YES NO Node Exporter Metrics Telegraf Kubernetes Input plugin YES YES Telegraf Metrics Windows-node-exporter NO YES Windows Node Exporter Metrics cAdvisor YES NO cAdvisor Metrics cStatsExporter NO YES cStatsExporter Metrics kube-state-metrics YES YES kube-state-metrics
  4. Confidential │ ©2021 VMware, Inc. 6 1. 安裝設定檔管理工具- helm https://helm.sh/docs/intro/install/

    2. 安裝 ingress - contour https://projectcontour.io/getting-started/ 3. 取得 K8s 叢集節點name & ip kubectl get nodes -o wide 4. 修改 Prometheus 設定檔案Line 55 https://gist.github.com/sapphirelin/ca18ed73db0a64478e7388495f9fded2 5. 執行安裝 https://gist.github.com/sapphirelin/440b055f670d6b2b954d89ba1b373fa7 安裝 Prometheus
  5. Confidential │ ©2021 VMware, Inc. 7 1. 下載 PAK 檔案

    2. Data Sources > Integrations 的 Repository 新增 3. 上傳 PAK 並同意EULA 後完成 4. 至 Data Sources -> Integrations-> Accounts 選擇 Kubernetes 並命名 5. 輸入 Master URL 、 CS -Prometheus、 credential -tkg 、Collector -default、測試連結 6. vCenter 進階,輸入 Auth & url 後按 ok 7. 按下新增並完成。一開始會Warning 之後就會綠燈 安裝 vROps MP4K Ref. https://docs.vmware.com/en/VMware-vRealize-Operations-Management-Pack-for-Kubernetes/1.6/kubernetes-solution/GUID-467E4C95-26D7-4988-A9E9-472CE23636F3.html