跳至主要内容

Windows 叢集支援監控 V2

監控 V2 可以部署在 Windows 叢集上,使用 prometheus-community/windows_exporter(先前命名為 wmi_exporter)從 Windows 節點抓取指標。

叢集需求​

Windows 的監控 V2 只能從具有最低 wins 版本 v0.1.0 的 Windows 主機抓取指標。要能夠完全部署 Windows 的監控 V2,您的所有主機都必須滿足此需求。

將現有叢集升級到 wins v0.1.0​

如果叢集是在 Rancher 2.5.8 之前佈建的(即使目前的 Rancher 版本是 2.5.8),您將無法成功部署 Windows 的監控 V2,直到您將每個主機上的 wins 版本升級到至少 v0.1.0。

為了促進此升級,Rancher 2.5.8 發布了一個全新的 Helm chart,稱為 rancher-wins-upgrader。

  1. 使用以下覆寫部署 rancher-wins-upgrader:

    # Masquerading bootstraps the wins-upgrader installation via
    # a previously whitelisted process path since the normal install path,
    # c:\etc\rancher\wins\wins-upgrade.exe is not normally whitelisted.
    # In this case, we are using the previously whitelisted process
    # path used by Monitoring V1.
    masquerade:
    enabled: true
    as: c:\\etc\wmi-exporter\wmi-exporter.exe
  2. 一旦所有主機都成功升級,請確保使用預設值再次部署 Helm chart,以避免與以下設定發生衝突:

    masquerade:
    enabled: false

**結果:**主機已準備好安裝監控 V2。您可以選擇解除安裝 rancher-wins-upgrader chart,或將其保留在叢集中以促進未來的升級。

有關如何使用的更多資訊,請參閱 chart 的 README.md。