71b8595742
ZbOtelCollector (otelcol-contrib 0.162.0, NSSM, NT SERVICE\ZbOtelCollector, every listener on 127.0.0.1, file + Prometheus exporters, size-capped rotation) on DEV vd03 and QA vq03/vq04. OtOpcUa, ScadaBridge Central + Site, MxAccessGateway and HistorianGateway export OTLP to http://127.0.0.1:4317 via two service-env entries each; rolling restarts, standby-first on the QA pairs. Overview has no exporter binding and is unchanged. Config, install/switch/verify scripts, runbook and the dated rollout record under infra/otel-collector/wonder/; evidence doc, GAPS, index row and deployment.md updated. Claude-Session: https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
20 lines
1.5 KiB
PowerShell
20 lines
1.5 KiB
PowerShell
# scadaproj#54, QA only: append E:\ApiInstall\OtelCollector to the recorded OtOpcUaScriptWorker -DenyPaths (lmxopcua#891 procedure).
|
|
param([switch]$Apply)
|
|
$ErrorActionPreference = 'Stop'
|
|
$inst = 'E:\psrem-stage\otopcua-890-f75ee7d0\install\Install-ScriptWorkerIsolation.ps1'
|
|
$recorded = @((Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Services\OtOpcUaScriptWorker\Parameters' -Name DenyPaths).DenyPaths)
|
|
$deny = @($recorded | Where-Object { $_ -ne 'E:\ApiInstall\OtelCollector' }) + 'E:\ApiInstall\OtelCollector'
|
|
"recorded $($recorded.Count) -> $($deny.Count) paths"
|
|
function EnvSig { $e = @((Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Services\OtOpcUaHost' -Name Environment).Environment)
|
|
$b = [Text.Encoding]::UTF8.GetBytes($e -join "`n"); "$($e.Count) entries, block " + (-join ([Security.Cryptography.SHA256]::Create().ComputeHash($b)[0..5] | % { $_.ToString('x2') })) }
|
|
"OtOpcUaHost env before: $(EnvSig)"
|
|
$common = @{ InstallRoot = 'E:\ApiInstall\OtOpcUa\app'; HostServiceAccount = 'LocalSystem'; ConfigureHostService = $true; DenyPaths = $deny }
|
|
if ($Apply) {
|
|
& $inst @common 2>&1 | Out-String -Width 300
|
|
"--- re-apply (expect all unchanged)"
|
|
& $inst @common 2>&1 | Out-String -Width 300
|
|
} else { & $inst @common -WhatIf 2>&1 | Out-String -Width 300 }
|
|
"OtOpcUaHost env after: $(EnvSig)"
|
|
"recorded now: " + (@((Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Services\OtOpcUaScriptWorker\Parameters' -Name DenyPaths).DenyPaths) -join '; ')
|
|
(icacls 'E:\ApiInstall\OtelCollector') | Select-String 'OtOpcUaScriptWorker' | % { "acl $_" }
|