SpitfireYük Testi ve Gözlemlenebilirlikv1.4.9 · Yenilikler

Sürüm: 1.4.9Bu dokümantasyon Spitfire 1.4.9 içindir.

Altyapı izleme — IIS (Beta)

IIS

Hızlı kurulum

  1. IIS sunucusunda Administrator olarak çalıştırın.
    powershell
    Invoke-WebRequest -UseBasicParsing -Uri "https://<spitfire>/api/v1/setup/ds/iis.ps1?t=<token>&lang=tr" -OutFile "$env:TEMP\sf-iis.ps1"; powershell -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP\sf-iis.ps1"
  2. OK: ... satırını görünce bitti.
Not

IIS ağ üzerinden değil, IIS sunucusunun kendisinde Windows performance counter'larından Spitfire Windows agent'ı ile okunur. Spitfire Windows agent'ı gerekir: yoksa betik kurar. IIS'te hiçbir şeyi değiştirmez, yalnız agent servisini yeniden başlatır ve önce sorar. Üründe bu satır adres ve yeni bir token ile hazır gelir.

Elle kurulum

  1. İzlenen sistemi ekleyin: Altyapı izleme → IIS.
    text
    Ad: web1-iis   Tower adresi: http://tower.corp:4318
  2. PowerShell'i Administrator olarak açın.
    powershell
    Start-Process powershell -Verb RunAs
  3. IIS'i ve counter'larını denetleyin.
    powershell
    $ErrorActionPreference = 'Stop'
    if (-not (Get-Service W3SVC -ErrorAction SilentlyContinue)) { throw 'IIS (W3SVC) is not installed on this server' }
    $sets = @('Web Service', 'HTTP Service Request Queues', 'APP_POOL_WAS')
    if (@($sets | Where-Object { -not (Get-Counter -ListSet $_ -ErrorAction SilentlyContinue) }).Count -gt 0) {
      & "$env:SystemRoot\System32\lodctr.exe" /R
      & "$env:SystemRoot\System32\wbem\winmgmt.exe" /resyncperf
    }
    $sets | ForEach-Object { if (-not (Get-Counter -ListSet $_ -ErrorAction SilentlyContinue)) { throw "Performance counter set '$_' is missing" } }
  4. Kurulumu izlenen sistem sayfasından kopyalayıp çalıştırın.
    text
    Altyapı izleme → IIS → Kurulumu IIS sunucusunda çalıştırın → Kopyala
  5. Counter'ları kontrol edin.
    powershell
    Get-Counter '\Web Service(_Total)\Current Connections' -ErrorAction Stop; 'OK: IIS counters readable, first metrics within ~1 min'
Not

Kurulum Spitfire Windows agent'ını (spitfire-collector servisi) iis bloğu C:\ProgramData\Spitfire\collector-extra.yaml olacak şekilde kurar ya da yeniden kurar ve Tower'ın sfcol_ token'ını sorar; token komut satırına yazılmaz. Paneller: metoda göre istek/sn, anlık bağlantılar, request queue sayısı ve yaşı, reddedilen istekler, gönderilen ve alınan byte, network blocked, aktif thread'ler, uptime, app pool durumu ve uptime'ı. Bulgular: Running olmayan app pool (kritik), 5 sn'yi aşan request queue yaşı, 100'ü aşan request queue, artan reddedilen istekler (uyarı). Seriler site ve app pool başınadır. Beta: receiver'ın metrikleri upstream'de hâlâ development olarak işaretli.