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:

2,378,298

Downloads of v 1.9.0:

1,749

Last Update:

21 Nov 2018

Package Maintainer(s):

Software Author(s):

  • InfluxData

Tags:

admin telegraf influxdata influxdb

Telegraf (Install)

This is not the latest version of Telegraf (Install) available.

  • 1
  • 2
  • 3

1.9.0 | Updated: 21 Nov 2018

Downloads:

2,378,298

Downloads of v 1.9.0:

1,749

Maintainer(s):

Software Author(s):

  • InfluxData

Telegraf (Install) 1.9.0

This is not the latest version of Telegraf (Install) available.

  • 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:

This package was submitted (and approved) prior to automated virus scanning integration into the package moderation processs.

We recommend clicking the "Details" link to make your own decision on installing this package.

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'" --version="'1.9.0'" [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'" --version="'1.9.0'" 
$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.9.0'
    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.9.0'
end

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


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

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


package { 'telegraf':
  ensure   => '1.9.0',
  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.

NOTE

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

Package Approved

This package was approved as a trusted package on 21 Nov 2018.

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';

$unzip_folder    = $env:ProgramFiles
$install_folder  = "$unzip_folder\telegraf"
$configDirectory = Join-Path $install_folder 'telegraf.d'
$packageName     = 'telegraf'
$softwareName    = 'telegraf*'
$toolsDir        = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url             = 'https://dl.influxdata.com/telegraf/releases/telegraf-1.9.0_windows_i386.zip'
$url64           = 'https://dl.influxdata.com/telegraf/releases/telegraf-1.9.0_windows_amd64.zip'
$fileLocation    = Join-Path $install_folder 'telegraf.exe'

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

If (Get-Service -Name "telegraf" -ErrorAction SilentlyContinue) {
    & $fileLocation --service uninstall
}

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

  softwareName  = 'telegraf*'

  checksum       = '24280c64aa09c1f5eba56e72d510ca558411e040058c4d30f58476667f2d7f28'
  checksumType   = 'sha256'
  checksum64     = 'b2444671ea0f31b85f443fcb81f8512632c0939ba682dffb4f6b7a102a217ab1'
  checksumType64 = 'sha256'

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

Install-ChocolateyZipPackage @packageArgs
Install-ChocolateyInstallPackage @packageArgs
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
update.ps1
import-module au

$releases = 'https://portal.influxdata.com/downloads'

function global:au_SearchReplace {
   @{
        ".\tools\chocolateyInstall.ps1" = @{
            "(?i)(^[$]packageName\s*=\s*)('.*')"  = "`$1'$($Latest.PackageName)'"
            "(?i)(^[$]softwareName\s*=\s*)('.*')" = "`$1'$($Latest.PackageName)*'"
            "(?i)(^[$]url\s*=\s*)('.*')"          = "`$1'$($Latest.URL32)'"
            "(checksum\s*=\s*)('.*')"             = "`$1'$($Latest.Checksum32)'"
            "(?i)(^[$]url64\s*=\s*)('.*')"        = "`$1'$($Latest.URL64)'"
            "(checksum64\s*=\s*)('.*')"           = "`$1'$($Latest.Checksum64)'"
        }

        "$($Latest.PackageName).nuspec" = @{
            "(\<releaseNotes\>).*?(\</releaseNotes\>)" = "`${1}$($Latest.ReleaseNotes)`$2"
        }
    }
}

function global:au_GetLatest {
    $download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

    $match = $download_page.Content | Select-String -Pattern '(https:.*telegraf.*\.zip)'
    $url = $match.Matches[0].value
    
    $version  = $url -split '[_-]|.zip' | Select-Object -Last 1 -Skip 3

    @{
        Version      = $version
        URL32        = $url -replace 'amd64','i386'
        URL64        = $url
        ReleaseNotes = 'https://github.com/influxdata/telegraf/blob/master/CHANGELOG.md'
    }
}

try {
    update -ChecksumFor all
} catch {
    $ignore = 'Unable to connect to the remote server'
    if ($_ -match $ignore) { Write-Host $ignore; 'ignore' }  else { throw $_ }
}

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.30.1 2221 Tuesday, April 2, 2024 Approved
Telegraf (Install) 1.30.0 3024 Wednesday, March 13, 2024 Approved
Telegraf (Install) 1.29.5 3329 Wednesday, February 21, 2024 Approved
Telegraf (Install) 1.29.4 8876 Thursday, February 1, 2024 Approved
Telegraf (Install) 1.29.2 17259 Tuesday, January 9, 2024 Approved
Telegraf (Install) 1.29.1 17534 Friday, December 15, 2023 Approved
Telegraf (Install) 1.29.0 1862 Wednesday, December 13, 2023 Approved
Telegraf (Install) 1.28.5 18202 Thursday, November 16, 2023 Approved
Telegraf (Install) 1.28.4 1129 Tuesday, November 14, 2023 Approved
Telegraf (Install) 1.28.3 41607 Tuesday, October 24, 2023 Approved
Telegraf (Install) 1.28.2 28132 Tuesday, October 3, 2023 Approved
Telegraf (Install) 1.28.1 41368 Wednesday, September 13, 2023 Approved
Telegraf (Install) 1.28.0 2423 Tuesday, September 12, 2023 Approved
Telegraf (Install) 1.27.4 46253 Tuesday, August 22, 2023 Approved
Telegraf (Install) 1.27.3 35644 Tuesday, August 1, 2023 Approved
Telegraf (Install) 1.27.2 34214 Tuesday, July 11, 2023 Approved
Telegraf (Install) 1.27.1 34886 Thursday, June 22, 2023 Approved
Telegraf (Install) 1.27.0 21463 Tuesday, June 13, 2023 Approved
Telegraf (Install) 1.26.3 37004 Tuesday, May 23, 2023 Approved
Telegraf (Install) 1.26.2 15417 Wednesday, April 26, 2023 Approved
Telegraf (Install) 1.26.1 18337 Tuesday, April 4, 2023 Approved
Telegraf (Install) 1.26.0 62681 Tuesday, March 14, 2023 Approved
Telegraf (Install) 1.25.3 9549 Tuesday, February 28, 2023 Approved
Telegraf (Install) 1.25.2 9797 Tuesday, February 14, 2023 Approved
Telegraf (Install) 1.25.1 10952 Tuesday, January 31, 2023 Approved
Telegraf (Install) 1.25.0 35102 Tuesday, December 13, 2022 Approved
Telegraf (Install) 1.24.4 10435 Thursday, December 1, 2022 Approved
Telegraf (Install) 1.24.3 24352 Thursday, November 3, 2022 Approved
Telegraf (Install) 1.24.2 81415 Tuesday, October 4, 2022 Approved
Telegraf (Install) 1.24.1 54326 Tuesday, September 20, 2022 Approved
Telegraf (Install) 1.24.0 24301 Tuesday, September 13, 2022 Approved
Telegraf (Install) 1.23.4 85318 Thursday, August 18, 2022 Approved
Telegraf (Install) 1.23.3 131127 Tuesday, July 26, 2022 Approved
Telegraf (Install) 1.23.2 195846 Tuesday, July 12, 2022 Approved
Telegraf (Install) 1.23.1 80131 Wednesday, July 6, 2022 Approved
Telegraf (Install) 1.23.0 118339 Tuesday, June 14, 2022 Approved
Telegraf (Install) 1.22.4 85591 Wednesday, May 18, 2022 Approved
Telegraf (Install) 1.22.3 38 Wednesday, May 18, 2022 Approved
Telegraf (Install) 1.22.2 45 Wednesday, May 18, 2022 Approved
Telegraf (Install) 1.22.1 39062 Sunday, April 17, 2022 Approved
Telegraf (Install) 1.22.0 47 Sunday, April 17, 2022 Approved
Telegraf (Install) 1.21.4 45004 Thursday, February 17, 2022 Approved
Telegraf (Install) 1.21.3 1859 Saturday, January 29, 2022 Approved
Telegraf (Install) 1.21.2 28314 Thursday, January 6, 2022 Approved
Telegraf (Install) 1.21.1 1229 Saturday, December 18, 2021 Approved
Telegraf (Install) 1.21.0 941 Thursday, December 16, 2021 Approved
Telegraf (Install) 1.20.4 3660 Thursday, November 18, 2021 Approved
Telegraf (Install) 1.20.3 2434 Friday, October 29, 2021 Approved
Telegraf (Install) 1.20.2 1282 Friday, October 8, 2021 Approved
Telegraf (Install) 1.20.1 498 Thursday, October 7, 2021 Approved
Telegraf (Install) 1.20.0 1350 Tuesday, September 21, 2021 Approved
Telegraf (Install) 1.19.3 2279 Friday, August 20, 2021 Approved
Telegraf (Install) 1.19.2 2340 Friday, July 30, 2021 Approved
Telegraf (Install) 1.19.1 1009 Thursday, July 8, 2021 Approved
Telegraf (Install) 1.19.0 1318 Friday, June 18, 2021 Approved
Telegraf (Install) 1.18.3 1447 Tuesday, May 25, 2021 Approved
Telegraf (Install) 1.18.2.20210501 4085 Sunday, May 2, 2021 Approved
Telegraf (Install) 1.18.2 1903 Friday, April 30, 2021 Approved
Telegraf (Install) 1.18.1 75 Friday, April 30, 2021 Approved
Telegraf (Install) 1.18.0 7122 Thursday, March 18, 2021 Approved
Telegraf (Install) 1.17.3 1347 Friday, February 19, 2021 Approved
Telegraf (Install) 1.17.2 25290 Saturday, January 30, 2021 Approved
Telegraf (Install) 1.17.1 1382 Friday, January 29, 2021 Approved
Telegraf (Install) 1.17.0 223819 Saturday, December 19, 2020 Approved
Telegraf (Install) 1.16.3 2367 Thursday, December 3, 2020 Approved
Telegraf (Install) 1.16.2 1857 Saturday, November 14, 2020 Approved
Telegraf (Install) 1.16.1 2141 Friday, October 30, 2020 Approved
Telegraf (Install) 1.16.0 4743 Thursday, October 22, 2020 Approved
Telegraf (Install) 1.15.3 34012 Saturday, September 12, 2020 Approved
Telegraf (Install) 1.15.2 9567 Tuesday, August 4, 2020 Approved
Telegraf (Install) 1.15.1.20200723 2618 Friday, July 24, 2020 Approved
Telegraf (Install) 1.15.1 1097 Thursday, July 23, 2020 Approved
Telegraf (Install) 1.14.5 224876 Wednesday, July 1, 2020 Approved
Telegraf (Install) 1.14.4 7184 Wednesday, June 10, 2020 Approved
Telegraf (Install) 1.14.3 8170 Wednesday, May 20, 2020 Approved
Telegraf (Install) 1.14.2 12327 Thursday, April 30, 2020 Approved
Telegraf (Install) 1.14.1 4999 Wednesday, April 15, 2020 Approved
Telegraf (Install) 1.14.0 9028 Friday, March 27, 2020 Approved
Telegraf (Install) 1.13.4 12630 Wednesday, February 26, 2020 Approved
Telegraf (Install) 1.13.3 10918 Thursday, February 6, 2020 Approved
Telegraf (Install) 1.13.2 3237 Wednesday, January 22, 2020 Approved
Telegraf (Install) 1.13.1 7403 Thursday, January 9, 2020 Approved
Telegraf (Install) 1.13.0 13809 Friday, December 13, 2019 Approved
Telegraf (Install) 1.12.6 18064 Wednesday, November 20, 2019 Approved
Telegraf (Install) 1.12.5 4031 Wednesday, November 13, 2019 Approved
Telegraf (Install) 1.12.4 5415 Thursday, October 24, 2019 Approved
Telegraf (Install) 1.12.3 3366 Tuesday, October 8, 2019 Approved
Telegraf (Install) 1.12.2 1076 Wednesday, September 25, 2019 Approved
Telegraf (Install) 1.12.1 2274 Thursday, September 12, 2019 Approved
Telegraf (Install) 1.12.0 1329 Wednesday, September 4, 2019 Approved
Telegraf (Install) 1.11.5 2120 Wednesday, August 28, 2019 Approved
Telegraf (Install) 1.11.4 13312 Wednesday, August 7, 2019 Approved
Telegraf (Install) 1.11.3 1119 Wednesday, July 24, 2019 Approved
Telegraf (Install) 1.11.2 1617 Wednesday, July 10, 2019 Approved
Telegraf (Install) 1.11.1 1032 Wednesday, June 26, 2019 Approved
Telegraf (Install) 1.11.0 2609 Wednesday, June 12, 2019 Approved
Telegraf (Install) 1.10.4 15580 Wednesday, May 15, 2019 Approved
Telegraf (Install) 1.10.3 11099 Wednesday, April 17, 2019 Approved
Telegraf (Install) 1.10.2 705 Wednesday, April 3, 2019 Approved
Telegraf (Install) 1.10.1 728 Wednesday, March 20, 2019 Approved
Telegraf (Install) 1.10.0 810 Thursday, March 7, 2019 Approved
Telegraf (Install) 1.9.5 693 Wednesday, February 27, 2019 Approved
Telegraf (Install) 1.9.4 1509 Wednesday, February 6, 2019 Approved
Telegraf (Install) 1.9.3 2263 Wednesday, January 23, 2019 Approved
Telegraf (Install) 1.9.2 8536 Wednesday, January 9, 2019 Approved
Telegraf (Install) 1.9.1 1960 Friday, December 14, 2018 Approved
Telegraf (Install) 1.9.0 1749 Wednesday, November 21, 2018 Approved
Telegraf (Install) 1.8.3 1934 Wednesday, October 31, 2018 Approved
Telegraf (Install) 1.8.2 1274 Thursday, October 18, 2018 Approved
Telegraf (Install) 1.8.1 3281 Friday, October 5, 2018 Approved
Telegraf (Install) 1.8.0 535 Saturday, September 22, 2018 Approved
Telegraf (Install) 1.7.4 1903 Thursday, August 30, 2018 Approved
Telegraf (Install) 1.7.3 1114 Wednesday, August 8, 2018 Approved
Telegraf (Install) 1.7.2 5283 Thursday, July 19, 2018 Approved
Telegraf (Install) 1.7.1 1241 Friday, July 6, 2018 Approved
Telegraf (Install) 1.7.0 1502 Thursday, June 14, 2018 Approved
Telegraf (Install) 1.6.4 679 Wednesday, June 6, 2018 Approved
Telegraf (Install) 1.6.3 5061 Tuesday, May 22, 2018 Approved
Telegraf (Install) 1.6.2 677 Wednesday, May 9, 2018 Approved
Telegraf (Install) 1.6.1 1899 Tuesday, April 24, 2018 Approved
Telegraf (Install) 1.6.0 580 Tuesday, April 17, 2018 Approved
Telegraf (Install) 1.5.3 2748 Friday, March 16, 2018 Approved
Telegraf (Install) 1.5.2 1794 Thursday, February 8, 2018 Approved
Telegraf (Install) 1.5.1 1972 Thursday, January 11, 2018 Approved
Telegraf (Install) 1.5.0 533 Monday, January 8, 2018 Approved
Telegraf (Install) 1.4.4 7252 Thursday, November 9, 2017 Approved
Telegraf (Install) 1.4.3 997 Monday, November 6, 2017 Approved
Telegraf (Install) 1.4.0 1687 Friday, September 8, 2017 Approved
Telegraf (Install) 1.3.5 1381 Wednesday, August 16, 2017 Approved
Telegraf (Install) 1.3.4 607 Wednesday, July 26, 2017 Approved
Telegraf (Install) 1.3.3 835 Monday, July 10, 2017 Approved
Telegraf (Install) 1.3.1 610 Tuesday, June 13, 2017 Approved
Telegraf (Install) 1.3.0 581 Wednesday, May 24, 2017 Approved
Telegraf (Install) 1.2.1 2805 Saturday, February 4, 2017 Approved
Telegraf (Install) 1.2.0 660 Sunday, January 29, 2017 Approved
Telegraf (Install) 1.1.2 872 Monday, January 16, 2017 Approved
Telegraf (Install) 1.0.1 519 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