Coder Social home page Coder Social logo

stackdriver-pushgateway's Introduction

stackdriver-pushgateway

The Stackdriver Pushgateway exists to allow jobs to expose their metrics to Stackdriver. It is compatible with the prometheus gateway:

echo "some_metric 3.14" | curl --data-binary @- http://stackgateway.domain.com/metrics/label1/value1/label2/value2

only pushing metrics is really compatible to prometheus (not deleting etc)

healthcheckio-integration

We faced some issues triggerring alerts when stackdriver time series metrics is absent for morethan 24 hours and added support for healthchecks.io api. Currently we are adding healthchecks.io only for last_run metrics when interval is daily, which can be extended later if needed

you can customize alerting thresholds for a particular job by adding an entry in the config.js file under node healthcheckio.alertConfig.thresholds (replaces <job_name> with name of the job in the push url)

"<job_name>": {
    "timeOut": 300, // 5 minutes - minimum 60 (one minute), maximum: 2592000 (30 days).
    "grace": 60 // 1 minutes - Minimum: 60 (one minute), maximum: 2592000 (30 days)
}

Installation

We provide a bare Dockerfile to run the pushgateway, but it essentially simply does and npm install and run the index.js, so feel free to run this however you prefer :)

The environment variables needed by the pushgateway are:

  • PROJECT_ID: name of the GCP project you want to send metrics to
  • HTTP_PORT: port the server is going to listen on (default is 8080)
  • GOOGLE_APPLICATION_CREDENTIALS: path to your Google application credentials (default /credentials/credentials.json)

...start the app and have fun monitoring on StackDriver!

stackdriver-pushgateway's People

Contributors

odino avatar tedj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stackdriver-pushgateway's Issues

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.