Giter Site home page Giter Site logo

terraform-diff-prometheus's Introduction

terraform-diff-prometheus

Prometheus provider that expose stats about terraform plan result

Configuration

You need to set following variables:

  • DEPLOY_KEY: Github deploy key to access to repository that contains staks declarations
  • GITHUB_REPOSITORY: Github repository without protocol or extension ex: camptocamp/terraform-diff-prometheus
  • AWS_ACCESS_KEY: Amazon access key to S3 bucket that contains terraform state file
  • AWS_SECRET_KEY: Amazon secret key to S3 bucket
  • AWS_REGION: Amazon region where bucket is stored
  • RANCHER_ACCESS_KEY: Access key part of Rancher API key
  • RANCHER_SECRET_KEY: Secret key part of Rancher API key
  • RANCHER_URL: URL to rancher API
  • RANCHER_ENV: Rancher environment identifier (Should be 1a5)
  • PROJECT: Project name, this should match the folder name in github repository: $GITHUB_REPOSITORY/rancher-environments/$PROJECT

Provider

Provider image will push an index.html to webserver image, this file will be available on port 8080 in /metrics/ folder. This file contains one metrics : terraform_plan_diff_count followed by diff count found in specified rancher env.

You should define following label in order to link with prometheus :

`prometheus_port: 8080`

terraform-diff-prometheus's People

Contributors

vampouille avatar

Stargazers

Chris Weyl avatar François Van Der Biest avatar

Watchers

Frédéric Junod avatar Nicolas Bessi (nbessi) avatar Gabriel Roldan avatar François Van Der Biest avatar Christian Kaenzig avatar Vincent Renaville avatar Emmanuel Belo avatar Yves Jacolin avatar James Cloos avatar Jose Macchi avatar Alex Saunier avatar Marion Baumgartner avatar Jeremy Barascut avatar Adrien VAN HAMME avatar Alexandre Fayolle avatar  avatar Maurer Luc avatar  avatar  avatar  avatar jwaddle avatar Alexian Masson avatar zoé petty avatar  avatar Federico Sismondi avatar  avatar  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.