Git Product home page Git Product logo

heroku-buildpack-telegraf's Introduction

heroku-buildpack-telegraf

Based on Skrud work

A simple heroku buildpack to download, deploy and launch Telegraf on your dynos.

This buildpack downloads the latest Telegraf release (at the time of writing, 1.19.0), extracts it on your dyno and starts it via a .profile.d script.

You can use this buildpack for other observability platform (which support telegraf agent), just change the output in the config.

Installation

From your heroku git directory download this telegraf.conf.

wget -O telegraf.conf https://raw.githubusercontent.com/logzio/heroku-buildpack-telegraf/master/telegraf.conf

Enable enviroment variable

Repelace the following with the relevant paramters:

Variable Value
<<HEROKU_APP_NAME>> your heroku app name (for example obscure-earth-56999 )
<<LOGZIO_LISTENER>> your Logzio listener (for example listener.logz.io )
<<LOGZIO_METRIC_TOKEN>> your Logzio metrics token

and run the following commands inside your heroku app directory:

heroku labs:enable runtime-dyno-metadata -a <<HEROKU_APP_NAME>>

heroku config:set LOGZIO_LISTENER=https://<<LOGZIO_LISTENER>>:8053   

heroku config:set LOGZIO_TOKEN=<<LOGZIO_METRIC_TOKEN>>

git add .

git commit -m "Telegraf config" 

git push heroku main

Then add the buildpack to the list of heroku buildpacks:

heroku buildpacks:add --index 1 https://github.com/logzio/heroku-buildpack-telegraf.git

git commit --allow-empty -m "Rebuild slug"

git push heroku main

Wait a few seconds and you will see your dyno system metrics in Logz.io platform

heroku-buildpack-telegraf's People

Contributors

doron-bargo avatar simonprev avatar skrud avatar talhibner avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.