Downloads:

1,691,618

Downloads of v 1.24.4:

4,329

Last Update:

01 Dec 2022

Package Maintainer(s):

Software Author(s):

  • InfluxData

Tags:

admin telegraf influxdata influxdb

Telegraf (Install)

  • 1
  • 2
  • 3

1.24.4 | Updated: 01 Dec 2022

Downloads:

1,691,618

Downloads of v 1.24.4:

4,329

Maintainer(s):

Software Author(s):

  • InfluxData

  • 1
  • 2
  • 3
Telegraf (Install) 1.24.4

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Exemption:

Temporarily exempted from package-verifier due to this issue: https://github.com/chocolatey/package-verifier/issues/106

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Telegraf (Install), run the following command from the command line or from PowerShell:

>

To upgrade Telegraf (Install), run the following command from the command line or from PowerShell:

>

To uninstall Telegraf (Install), run the following command from the command line or from PowerShell:

>

Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade telegraf -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade telegraf -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install telegraf
  win_chocolatey:
    name: telegraf
    version: '1.24.4'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'telegraf' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '1.24.4'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller telegraf
{
    Name     = "telegraf"
    Version  = "1.24.4"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'telegraf':
  ensure   => '1.24.4',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 01 Dec 2022.

Description

Telegraf is a plugin-driven server agent for collecting and reporting
metrics, and is the first piece of the TICK stack. Telegraf has plugins to source a
variety of metrics directly from the system it’s running on, pull metrics from third
party APIs, or even listen for metrics via a statsd and Kafka consumer services. It
also has output plugins to send metrics to a variety of other datastores, services,
and message queues, including InfluxDB, Graphite, OpenTSDB, Datadog, Librato, Kafka,
MQTT, NSQ, and many others.

Telegraf is installed under %ProgramFiles%\telegraf.


tools\chocolateybeforemodify.ps1
If (Get-Service -Name "telegraf" -ErrorAction SilentlyContinue) {
    Stop-Service -Name "telegraf"
}
tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';

$unzipFolder    = $env:ProgramFiles
$installFolder  = "$unzipFolder\telegraf"
$configDirectory = Join-Path $installFolder 'telegraf.d'
$packageName     = 'telegraf'
$softwareName    = 'telegraf*'
$toolsDir        = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url             = 'https://dl.influxdata.com/telegraf/releases/telegraf-1.24.4_windows_i386.zip '
$url64           = 'https://dl.influxdata.com/telegraf/releases/telegraf-1.24.4_windows_amd64.zip '
$fileLocation    = Join-Path $installFolder 'telegraf.exe'
$telegrafRegPath = "HKLM:\SYSTEM\CurrentControlSet\Services\EventLog\Application\telegraf"

# Extract current version of telegraf
$versionSearch = $url -match '.*-(\d*\.\d*\.\d*)_.*'
if ($versionSearch) {
  $version = $matches[1]
}

If(!(Test-Path -Path $configDirectory)){
  New-Item -Path $configDirectory -ItemType Directory
}

If (Get-Service -Name "telegraf" -ErrorAction SilentlyContinue) {
  $servicePath = (Get-WmiObject win32_service | ?{$_.Name -like 'telegraf'}).PathName.Split('--')[0].Trim().Replace("""","")
  & $servicePath --service uninstall
}

If (Test-Path $telegrafRegPath) {
  Remove-Item $telegrafRegPath -Force
}

If (Test-Path "$installFolder\telegraf.conf" -ErrorAction SilentlyContinue) {
  Copy-Item -Force -Path "$installFolder\telegraf.conf" -Destination "$installFolder\telegraf.backup.conf"
}

$packageArgs = @{
  packageName   = $packageName
  unzipLocation = $unzipFolder
  fileType      = 'EXE'
  url           = $url
  url64bit      = $url64
  file          = $fileLocation
  file64        = $fileLocation

  softwareName  = 'telegraf*'
  
  checksum       = '41d453945a11c8dea32ffa177896f518de1645cabb0c9233825a63e6beb52e7b'
  checksumType   = 'sha256'
  checksum64     = 'bab91aa72b3bae08428effb05b5361973cdce3b2eb9be3074f2d6f2d324941c1'
  checksumType64 = 'sha256'

  silentArgs     = "--config-directory `"$configDirectory`" --service install"
  validExitCodes= @(0)
}

Install-ChocolateyZipPackage @packageArgs

# Move files to non versioned telegraf folder
If((Test-Path -Path "$installFolder-$version")){
  Write-Host "Moving telegraf files"
  Move-Item -Force -Path "$installFolder-$version\*" -Destination "$installFolder\"
  Remove-Item -Path "$installFolder-$version" -Recurse -Force
}

Install-ChocolateyInstallPackage @packageArgs

If (Test-Path "$installFolder\telegraf.backup.conf" -ErrorAction SilentlyContinue) {
  Move-Item -Force -Path "$installFolder\telegraf.backup.conf" -Destination "$installFolder\telegraf.conf"
  Restart-Service -Name "telegraf"
}

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

$packageName = 'telegraf'
$softwareName = 'telegraf*'
$installerType = 'EXE'
$install_folder = Join-Path $env:ProgramFiles 'telegraf'

$silentArgs = '--service uninstall'
$validExitCodes = @(0)

$uninstalled = $false

$file = Join-Path $install_folder 'telegraf.exe'

Uninstall-ChocolateyPackage -PackageName $packageName `
                            -FileType $installerType `
                            -SilentArgs "$silentArgs" `
                            -ValidExitCodes $validExitCodes `
                            -File "$file"

Start-Sleep -Seconds 3
Remove-Item -Path $install_folder -Recurse -Confirm:$false -Force

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
Telegraf (Install) 1.24.3 24312 Thursday, November 3, 2022 Approved
Telegraf (Install) 1.24.2 81268 Tuesday, October 4, 2022 Approved
Telegraf (Install) 1.24.1 54303 Tuesday, September 20, 2022 Approved
Telegraf (Install) 1.24.0 24275 Tuesday, September 13, 2022 Approved
Telegraf (Install) 1.23.4 85299 Thursday, August 18, 2022 Approved
Telegraf (Install) 1.23.3 131082 Tuesday, July 26, 2022 Approved
Telegraf (Install) 1.23.2 195819 Tuesday, July 12, 2022 Approved
Telegraf (Install) 1.23.1 80109 Wednesday, July 6, 2022 Approved
Telegraf (Install) 1.23.0 118309 Tuesday, June 14, 2022 Approved
Telegraf (Install) 1.22.4 85554 Wednesday, May 18, 2022 Approved
Telegraf (Install) 1.22.3 17 Wednesday, May 18, 2022 Approved
Telegraf (Install) 1.22.2 18 Wednesday, May 18, 2022 Approved
Telegraf (Install) 1.22.1 39035 Sunday, April 17, 2022 Approved
Telegraf (Install) 1.22.0 26 Sunday, April 17, 2022 Approved
Telegraf (Install) 1.21.4 41698 Thursday, February 17, 2022 Approved
Telegraf (Install) 1.21.3 1834 Saturday, January 29, 2022 Approved
Telegraf (Install) 1.21.2 26100 Thursday, January 6, 2022 Approved
Telegraf (Install) 1.21.1 1205 Saturday, December 18, 2021 Approved
Telegraf (Install) 1.21.0 913 Thursday, December 16, 2021 Approved
Telegraf (Install) 1.20.4 3358 Thursday, November 18, 2021 Approved
Telegraf (Install) 1.20.3 2297 Friday, October 29, 2021 Approved
Telegraf (Install) 1.20.2 1248 Friday, October 8, 2021 Approved
Telegraf (Install) 1.20.1 472 Thursday, October 7, 2021 Approved
Telegraf (Install) 1.20.0 1324 Tuesday, September 21, 2021 Approved
Telegraf (Install) 1.19.3 2250 Friday, August 20, 2021 Approved
Telegraf (Install) 1.19.2 2276 Friday, July 30, 2021 Approved
Telegraf (Install) 1.19.1 983 Thursday, July 8, 2021 Approved
Telegraf (Install) 1.19.0 1213 Friday, June 18, 2021 Approved
Telegraf (Install) 1.18.3 1420 Tuesday, May 25, 2021 Approved
Telegraf (Install) 1.18.2.20210501 4061 Sunday, May 2, 2021 Approved
Telegraf (Install) 1.18.2 1876 Friday, April 30, 2021 Approved
Telegraf (Install) 1.18.1 52 Friday, April 30, 2021 Approved
Telegraf (Install) 1.18.0 7099 Thursday, March 18, 2021 Approved
Telegraf (Install) 1.17.3 1318 Friday, February 19, 2021 Approved
Telegraf (Install) 1.17.2 25259 Saturday, January 30, 2021 Approved
Telegraf (Install) 1.17.1 1363 Friday, January 29, 2021 Approved
Telegraf (Install) 1.17.0 223789 Saturday, December 19, 2020 Approved
Telegraf (Install) 1.16.3 2145 Thursday, December 3, 2020 Approved
Telegraf (Install) 1.16.2 1814 Saturday, November 14, 2020 Approved
Telegraf (Install) 1.16.1 1897 Friday, October 30, 2020 Approved
Telegraf (Install) 1.16.0 4712 Thursday, October 22, 2020 Approved
Telegraf (Install) 1.15.3 33975 Saturday, September 12, 2020 Approved
Telegraf (Install) 1.15.2 9531 Tuesday, August 4, 2020 Approved
Telegraf (Install) 1.15.1.20200723 2591 Friday, July 24, 2020 Approved
Telegraf (Install) 1.15.1 1067 Thursday, July 23, 2020 Approved
Telegraf (Install) 1.14.5 115202 Wednesday, July 1, 2020 Approved
Telegraf (Install) 1.14.4 7149 Wednesday, June 10, 2020 Approved
Telegraf (Install) 1.14.3 7784 Wednesday, May 20, 2020 Approved
Telegraf (Install) 1.14.2 12296 Thursday, April 30, 2020 Approved
Telegraf (Install) 1.14.1 4964 Wednesday, April 15, 2020 Approved
Telegraf (Install) 1.14.0 8993 Friday, March 27, 2020 Approved
Telegraf (Install) 1.13.4 12590 Wednesday, February 26, 2020 Approved
Telegraf (Install) 1.13.3 10888 Thursday, February 6, 2020 Approved
Telegraf (Install) 1.13.2 3204 Wednesday, January 22, 2020 Approved
Telegraf (Install) 1.13.1 7357 Thursday, January 9, 2020 Approved
Telegraf (Install) 1.13.0 13769 Friday, December 13, 2019 Approved
Telegraf (Install) 1.12.6 18028 Wednesday, November 20, 2019 Approved
Telegraf (Install) 1.12.5 4008 Wednesday, November 13, 2019 Approved
Telegraf (Install) 1.12.4 5335 Thursday, October 24, 2019 Approved
Telegraf (Install) 1.12.3 3338 Tuesday, October 8, 2019 Approved
Telegraf (Install) 1.12.2 1044 Wednesday, September 25, 2019 Approved
Telegraf (Install) 1.12.1 2076 Thursday, September 12, 2019 Approved
Telegraf (Install) 1.12.0 1292 Wednesday, September 4, 2019 Approved
Telegraf (Install) 1.11.5 2088 Wednesday, August 28, 2019 Approved
Telegraf (Install) 1.11.4 13281 Wednesday, August 7, 2019 Approved
Telegraf (Install) 1.11.3 1086 Wednesday, July 24, 2019 Approved
Telegraf (Install) 1.11.2 1587 Wednesday, July 10, 2019 Approved
Telegraf (Install) 1.11.1 997 Wednesday, June 26, 2019 Approved
Telegraf (Install) 1.11.0 2573 Wednesday, June 12, 2019 Approved
Telegraf (Install) 1.10.4 15542 Wednesday, May 15, 2019 Approved
Telegraf (Install) 1.10.3 11062 Wednesday, April 17, 2019 Approved
Telegraf (Install) 1.10.2 672 Wednesday, April 3, 2019 Approved
Telegraf (Install) 1.10.1 703 Wednesday, March 20, 2019 Approved
Telegraf (Install) 1.10.0 776 Thursday, March 7, 2019 Approved
Telegraf (Install) 1.9.5 658 Wednesday, February 27, 2019 Approved
Telegraf (Install) 1.9.4 1475 Wednesday, February 6, 2019 Approved
Telegraf (Install) 1.9.3 2234 Wednesday, January 23, 2019 Approved
Telegraf (Install) 1.9.2 8503 Wednesday, January 9, 2019 Approved
Telegraf (Install) 1.9.1 1925 Friday, December 14, 2018 Approved
Telegraf (Install) 1.9.0 1718 Wednesday, November 21, 2018 Approved
Telegraf (Install) 1.8.3 1901 Wednesday, October 31, 2018 Approved
Telegraf (Install) 1.8.2 1238 Thursday, October 18, 2018 Approved
Telegraf (Install) 1.8.1 3246 Friday, October 5, 2018 Approved
Telegraf (Install) 1.8.0 507 Saturday, September 22, 2018 Approved
Telegraf (Install) 1.7.4 1879 Thursday, August 30, 2018 Approved
Telegraf (Install) 1.7.3 1083 Wednesday, August 8, 2018 Approved
Telegraf (Install) 1.7.2 5245 Thursday, July 19, 2018 Approved
Telegraf (Install) 1.7.1 1208 Friday, July 6, 2018 Approved
Telegraf (Install) 1.7.0 1470 Thursday, June 14, 2018 Approved
Telegraf (Install) 1.6.4 616 Wednesday, June 6, 2018 Approved
Telegraf (Install) 1.6.3 4546 Tuesday, May 22, 2018 Approved
Telegraf (Install) 1.6.2 642 Wednesday, May 9, 2018 Approved
Telegraf (Install) 1.6.1 1524 Tuesday, April 24, 2018 Approved
Telegraf (Install) 1.6.0 548 Tuesday, April 17, 2018 Approved
Telegraf (Install) 1.5.3 2713 Friday, March 16, 2018 Approved
Telegraf (Install) 1.5.2 1754 Thursday, February 8, 2018 Approved
Telegraf (Install) 1.5.1 1925 Thursday, January 11, 2018 Approved
Telegraf (Install) 1.5.0 494 Monday, January 8, 2018 Approved
Telegraf (Install) 1.4.4 6800 Thursday, November 9, 2017 Approved
Telegraf (Install) 1.4.3 965 Monday, November 6, 2017 Approved
Telegraf (Install) 1.4.0 1650 Friday, September 8, 2017 Approved
Telegraf (Install) 1.3.5 1351 Wednesday, August 16, 2017 Approved
Telegraf (Install) 1.3.4 574 Wednesday, July 26, 2017 Approved
Telegraf (Install) 1.3.3 803 Monday, July 10, 2017 Approved
Telegraf (Install) 1.3.1 576 Tuesday, June 13, 2017 Approved
Telegraf (Install) 1.3.0 544 Wednesday, May 24, 2017 Approved
Telegraf (Install) 1.2.1 2774 Saturday, February 4, 2017 Approved
Telegraf (Install) 1.2.0 630 Sunday, January 29, 2017 Approved
Telegraf (Install) 1.1.2 836 Monday, January 16, 2017 Approved
Telegraf (Install) 1.0.1 484 Sunday, October 30, 2016 Approved

This package has no dependencies.

Discussion for the Telegraf (Install) Package

Ground Rules:

  • This discussion is only about Telegraf (Install) and the Telegraf (Install) 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 Telegraf (Install), 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