diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 67515f21..87ac58b3 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -1,5 +1,25 @@ # Azure Monitor Metrics for AKS clusters +## Release 10-21-2024 +* Linux image - `mcr.microsoft.com/azuremonitor/containerinsights/ciprod/prometheus-collector/images:6.11.0-main-10-21-2024-91ec49e3` +* Windows image - `mcr.microsoft.com/azuremonitor/containerinsights/ciprod/prometheus-collector/images:6.11.0-main-10-21-2024-91ec49e3-win` +* TA image - `mcr.microsoft.com/azuremonitor/containerinsights/ciprod/prometheus-collector/images:6.11.0-main-10-21-2024-91ec49e3-targetallocator` +* cfg sidecar image - `mcr.microsoft.com/azuremonitor/containerinsights/ciprod/prometheus-collector/images:6.11.0-main-10-21-2024-91ec49e3-cfg` +* AKS and Arc Container Images: + * Upgrades for CVE fixes (https://github.com/Azure/prometheus-collector/pull/979) + - Golang: 1.21.5 -> 1.22.7 + - OtelCollector/Operator: 0.99.0 -> 0.109.0 + - Telegraf: 1.28.5 -> 1.29.4 + * Add AcStor scrape config support (https://github.com/Azure/prometheus-collector/pull/976) +* Arc Extension Chart: + - Enable operator (https://github.com/Azure/prometheus-collector/pull/977) + - Upgrade node-exporter chart 4.26.0 -> 4.39.0 (https://github.com/Azure/prometheus-collector/pull/982) + - Arc-A: Add support to override image registry for custom environment (https://github.com/Azure/prometheus-collector/pull/983) +* Pipeline/Docs/Templates Updates + - Pipeline reliability and test fixes (https://github.com/Azure/prometheus-collector/pull/998) + - Terraform private link support (https://github.com/Azure/prometheus-collector/pull/991) + - Doc Prometheus Equivalent metrics for CI Custom metrics (https://github.com/Azure/prometheus-collector/pull/978) + ## Release 10-15-2024 (CCP release only) * Linux image - `mcr.microsoft.com/azuremonitor/containerinsights/ciprod/prometheus-collector/images:6.10.2-main-10-15-2024-06b20de5` * Windows image - `mcr.microsoft.com/azuremonitor/containerinsights/ciprod/prometheus-collector/images:6.10.2-main-10-15-2024-06b20de5-win` diff --git a/otelcollector/build/windows/Dockerfile b/otelcollector/build/windows/Dockerfile index 408e407c..d1f1fafb 100644 --- a/otelcollector/build/windows/Dockerfile +++ b/otelcollector/build/windows/Dockerfile @@ -35,7 +35,7 @@ COPY ./fluent-bit/fluent-bit-windows.conf $tmpdir/fluent-bit/ COPY ./fluent-bit/fluent-bit-parsers.conf $tmpdir/fluent-bit/ COPY ./fluent-bit/src/out_appinsights.so $tmpdir/fluent-bit/bin/ COPY ./main/main.exe $tmpdir/microsoft -COPY ./react /Users/ContainerAdministrator/Documents/static/react +COPY ./react /static/react COPY ./LICENSE $tmpdir/microsoft COPY ./NOTICE $tmpdir/microsoft diff --git a/otelcollector/build/windows/scripts/setup.ps1 b/otelcollector/build/windows/scripts/setup.ps1 index 75299e2e..6a069553 100644 --- a/otelcollector/build/windows/scripts/setup.ps1 +++ b/otelcollector/build/windows/scripts/setup.ps1 @@ -12,6 +12,7 @@ New-Item -Type Directory -Path /opt/microsoft/liveness -ErrorAction SilentlyCont New-Item -Type Directory -Path /opt/genevamonitoringagent -ErrorAction SilentlyContinue New-Item -Type Directory -Path /opt/genevamonitoringagent/datadirectory -ErrorAction SilentlyContinue New-Item -Type Directory -Path /etc/genevamonitoringagent +New-Item -Type Directory -Path /static/react -Force -ErrorAction SilentlyContinue ############################################################################################ Write-Host ('Installing Metrics Extension'); try { diff --git a/otelcollector/shared/telemetry.go b/otelcollector/shared/telemetry.go index 50814517..db039dea 100644 --- a/otelcollector/shared/telemetry.go +++ b/otelcollector/shared/telemetry.go @@ -51,30 +51,12 @@ func SetupTelemetry(customEnvironment string) { return } - // Append export commands to .bashrc file - bashrcPath := os.Getenv("HOME") + "/.bashrc" - bashrcFile, err := os.OpenFile(bashrcPath, os.O_APPEND|os.O_WRONLY, 0644) + // Export APPLICATIONINSIGHTS_ENDPOINT + err = SetEnvAndSourceBashrcOrPowershell("APPLICATIONINSIGHTS_ENDPOINT", aiEndpoint , false) if err != nil { - fmt.Println("Error opening .bashrc file:", err) + fmt.Println("Error setting APPLICATIONINSIGHTS_ENDPOINT environment variable:", err) return } - defer bashrcFile.Close() - - exportAIKeyCommand := fmt.Sprintf("export APPLICATIONINSIGHTS_AUTH=%s\n", encodedAIKey) - _, err = bashrcFile.WriteString(exportAIKeyCommand) - if err != nil { - fmt.Println("Error writing to .bashrc file:", err) - return - } - - if aiEndpoint != "" { - exportEndpointCommand := fmt.Sprintf("export APPLICATIONINSIGHTS_ENDPOINT=\"%s\"\n", aiEndpoint) - _, err = bashrcFile.WriteString(exportEndpointCommand) - if err != nil { - fmt.Println("Error writing to .bashrc file:", err) - return - } - } // Setting TELEMETRY_APPLICATIONINSIGHTS_KEY aiKeyBytes, err := base64.StdEncoding.DecodeString(encodedAIKey) @@ -90,10 +72,4 @@ func SetupTelemetry(customEnvironment string) { return } - exportTelegrafCommand := fmt.Sprintf("export TELEMETRY_APPLICATIONINSIGHTS_KEY=%s\n", aiKey) - _, err = bashrcFile.WriteString(exportTelegrafCommand) - if err != nil { - fmt.Println("Error writing to .bashrc file:", err) - return - } }