Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

53

Downloads of v 1.100.1:

12

Last Update:

30 Apr 2024

Published Date:

30 Apr 2024

Package Maintainer(s):

Software Author(s):

  • VictoriaMetrics

Tags:

vmagent victoriametrics agent

Victoria Metrics Agent

(Ready for review)

  • 1
  • 2
  • 3

1.100.1 | Updated: 30 Apr 2024

Downloads:

53

Downloads of v 1.100.1:

12

Published:

30 Apr 2024

Maintainer(s):

Software Author(s):

  • VictoriaMetrics

Victoria Metrics Agent 1.100.1

(Ready for review)
  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged as a Note:

At least one file within this package has greater than 0 detections, but less than 5

Details
IMPORTANT

This version is in moderation and has not yet been approved. This means it doesn't show up under normal search.

  • Until approved, you should consider this package version unsafe - it could do very bad things to your system (it probably doesn't but you have been warned, that's why we have moderation).
  • This package version can change wildly over the course of moderation until it is approved. If you install it and it later has changes to this version, you will be out of sync with any changes that have been made to the package. Until approved, you should consider that this package version doesn't even exist.
  • You cannot install this package under normal scenarios. See How to install package version under moderation for more information.
  • There are also no guarantees that it will be approved.
WARNING

There are versions of this package awaiting moderation (possibly just this one). See the Version History section below.

symflower (maintainer) on 12 Apr 2024 14:06:12 +00:00:

User 'symflower' (maintainer) submitted package.

chocolatey-ops (reviewer) on 12 Apr 2024 14:42:35 +00:00:

vmagent has passed automated validation. It may have or may still fail other checks like testing (verification).
NOTE: No required changes that the validator checks have been flagged! It is appreciated if you fix other items, but only Requirements will hold up a package version from approval. A human review could still turn up issues a computer may not easily find.

Suggestions

Suggestions are either newly introduced items that will later become Guidelines or items that are don't carry enough weight to become a Guideline. Either way they should be considered. A package version can be approved without addressing Suggestion comments.

chocolatey-ops (reviewer) on 12 Apr 2024 14:54:27 +00:00:

vmagent has failed automated package testing (verification).
Please visit https://gist.github.com/choco-bot/867d46f3ae3a94b99d923a990936c5b2 for details.
The package status will be changed and will be waiting on your next actions.

  • NEW! We have a test environment for you to replicate the testing we do. This can be used at any time to test packages! See https://github.com/chocolatey-community/chocolatey-test-environment
  • Please log in and leave a review comment if you have questions and/or comments.
  • If you see the verifier needs to rerun testing against the package without resubmitting (a issue in the test results), you can do that on the package page in the review section.
  • If the verifier is incompatible with the package, please log in and leave a review comment if the package needs to bypass testing (e.g. package installs specific drivers).
  • Automated testing can also fail when a package is not completely silent or has pop ups (AutoHotKey can assist - a great example is the VeraCrypt package).
  • A package that cannot be made completely unattended should have the notSilent tag. Note that this must be approved by moderators.

symflower (maintainer) on 30 Apr 2024 06:59:32 +00:00:

User 'symflower' (maintainer) submitted package.

chocolatey-ops (reviewer) on 30 Apr 2024 07:32:08 +00:00:

vmagent has passed automated validation. It may have or may still fail other checks like testing (verification).
NOTE: No required changes that the validator checks have been flagged! It is appreciated if you fix other items, but only Requirements will hold up a package version from approval. A human review could still turn up issues a computer may not easily find.

Suggestions

Suggestions are either newly introduced items that will later become Guidelines or items that are don't carry enough weight to become a Guideline. Either way they should be considered. A package version can be approved without addressing Suggestion comments.

chocolatey-ops (reviewer) on 30 Apr 2024 07:39:47 +00:00:

vmagent has passed automated package testing (verification). The next step in the process is package scanning.
Please visit https://gist.github.com/choco-bot/6878f48e5291c564d2d8d78ac43d8945 for details.
This is an FYI only. There is no action you need to take.

chocolatey-ops (reviewer) on 30 Apr 2024 07:55:59 +00:00:

vmagent has been flagged as part of automated virus scanning.
Package virus scanning found that at least 1 file within, or downloaded by, the package has between 1 and 5 VirusTotal detections associated with it.
This is not enough detections to prevent the approval of this package version.

Description

VMAgent is a tiny agent which helps you collect metrics from various sources, relabel and filter the collected metrics and store them in VictoriaMetrics or any other storage systems via Prometheus remote_write protocol.

This package uses "winsw" to wrap the agent inside a windows service.


tools\chocolateyBeforeModify.ps1
$ErrorActionPreference = 'Stop';

# Vars
$packageName = $env:ChocolateyPackageName
$toolsDir    = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$winswExe  = Join-Path -Path $toolsDir -ChildPath 'vmagent.exe'

start $winswExe stop
"service stopped"
tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';

# Vars
$packageName = $env:ChocolateyPackageName
$toolsDir    = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$swversion = "3.0.0-alpha.11"
$vmutilsChecksum = "e9e26cdcb490290d104c2bfc25bd8093d14007e35609243471b06fb6a0ea8a26"
$winswChecksum = "a2daa6a33a9c2b791ae31d9092e7935c339d1e03e89bfb747618ce2f4e819e20"

$vmutilsURL = "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${env:ChocolateyPackageVersion}/vmutils-windows-amd64-v${env:ChocolateyPackageVersion}.zip"
$setupName  = 'vmagent-windows-amd64-prod.exe'
$packageArgs = @{
  packageName    = $packageName
  DisplayName    = 'VMAgent'
  unzipLocation  = $toolsDir
  fileType       = 'EXE'
  url            = $vmutilsURL
  checksum       = $vmutilsChecksum
  checksumType   = 'sha256'

  silentArgs     = '/S'
  validExitCodes = @(0)
}

$winswURL  = "https://github.com/winsw/winsw/releases/download/v${swversion}/WinSW-x64.exe"
$winswExe  = 'vmagent.exe'
$winswXML  = 'vmagent.xml'
$winswArgs = @{
  packageName  = $winswExe
  url          = $winswURL
  checksum     = $winswChecksum
  checksumType = 'sha256'
  fileType     = 'EXE'
  fileFullPath = Join-Path -Path $toolsDir -ChildPath $winswExe
}


# Install WinSW
Get-ChocolateyWebFile @winswArgs

# Install VMAgent

# Params
$pp = Get-PackageParameters

$params = ""
$params += foreach($k in $pp.Keys) {
    Write-Output "--$k=$($pp.Item($k))"
}

# Download
Install-ChocolateyZipPackage @packageArgs

# Modify winsw xml
"modify vmagent xml"
$xmlFilePath = Join-Path -Path $toolsDir -ChildPath $winswXML
$xml = [xml](Get-Content -Path $xmlFilePath)
$node = $xml.SelectSingleNode("//arguments")
$node.InnerText = $params
$xml.Save($xmlFilePath)

start $winswArgs.fileFullPath install
"service installed"

# Start the service
start $winswArgs.fileFullPath start
"service started"
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop';

# Vars
$packageName = $env:ChocolateyPackageName
$toolsDir    = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$winswExe  = Join-Path -Path $toolsDir -ChildPath 'vmagent.exe'

start $winswExe uninstall
"service uninstalled"
tools\vmagent.xml
<service>
	<id>vmagent</id>
	<name>VMAgent</name>
	<description>VMAgent service</description>
	<executable>%BASE%\vmagent-windows-amd64-prod.exe"</executable>

	<onfailure action="restart" delay="10 sec"/>
	<onfailure action="restart" delay="20 sec"/>

	<resetfailure>1 hour</resetfailure>

	<arguments></arguments>

	<priority>Normal</priority>

	<stoptimeout>15 sec</stoptimeout>

	<stopparentprocessfirst>true</stopparentprocessfirst>
	<startmode>Automatic</startmode>
	<waithint>15 sec</waithint>
	<sleeptime>1 sec</sleeptime>

	<logpath>%BASE%\..\..\..\logs\vmagent</logpath>
	<log mode="roll">
		<sizeThreshold>10240</sizeThreshold>
		<keepFiles>8</keepFiles>
	</log>
</service>

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Victoria Metrics Agent 1.100.1 12 Tuesday, April 30, 2024 Ready

This package has no dependencies.

Discussion for the Victoria Metrics Agent Package

Ground Rules:

  • This discussion is only about Victoria Metrics Agent and the Victoria Metrics Agent package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Victoria Metrics Agent, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus