Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows - Pin Grafana Agent version to 0.39.2 #49

Merged
merged 2 commits into from
Feb 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions windows/observability-agent-autoconf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,14 @@ while ($args) {
}

if ($INSTALL -ne $false) {

$uri = "https://api.github.com/repos/grafana/agent/releases/latest"
$release = Invoke-RestMethod -Uri $uri

# Extract the download URL for the Windows installer from the release assets
$url = ($release.assets | Where-Object { $_.name -like "grafana-agent-flow-installer.exe.zip" }).browser_download_url

$outputPath = "$PSScriptRoot/grafana-agent-flow-installer.exe.zip"
$installPath = "$PSScriptRoot/grafana-agent-flow-installer.exe"

# Download the file
Write-Output "Downloading agent installer"

Invoke-WebRequest -Uri "https://github.com/grafana/agent/releases/download/v0.39.2/grafana-agent-flow-installer.exe.zip" -OutFile $outputPath

if ($DisableDownloadProgressBar -eq $true)
{
$ProgressPreference = 'SilentlyContinue'
Expand Down
Loading