Git Product home page Git Product logo

gcp-slo-monitoring-using-terraform's Introduction

SLO Monitoring using Terraform

These terraform examples make it easy to deploy SLOs in your Google Cloud Environment with Cloud Monitoring.

Disclaimer

  1. This is not an officially supported Google product.
  2. Proper testing should be done before running this tool in production.

Licensing

This sample code is made available under Apache 2 license. See the LICENSE file for more details.

Details

This repository contains terraform templates to:

Creating Notification Channels

Notification Channels/
    ├── main.tf
    └── variables.tf
  • Edit the variables in variables.tf
  • Deploy via terraform

Note: Notification channels currently support email. Support for other channels coming soon.

Creating SLI/SLO

Currently this repository contains examples to create 3 types of SLI/SLO:

  • Basic - These correspond to SLIs that can be created for certain native Google Cloud products including App Engine, GKE, Cloud Run and Istio. These require minimal configuration and are ideal if your service leverage these products.
  • Request Based - These SLIs use a count of the good and total events to compute SLIs. The degree of specificity that the user can employ is higher than that of Basic SLIs thus enabling the user to fine tune the dimensions of the SLI.
  • Window Based - These SLIs use the number of windows in a measurement period, during which the metric was compliant with the target, in the SLI/SLO calculation. These windows could be any length (from 1 second to 1 day).

Steps to create SLI/SLO:

<SLI Name>/
    ├── main.tf
    └── variables.tf

for example,

Availability for Login/
    ├── main.tf
    └── variables.tf
  • Edit the variables in variables.tf
  • Deploy via terraform

Creating Alerting Policies

<Alerting Policy Name>/
    ├── main.tf
    └── variables.tf

for example,

Alert - 10% burn - Availability for Login/
    ├── main.tf
    └── variables.tf
  • Edit the variables in variables.tf
  • Deploy via terraform

gcp-slo-monitoring-using-terraform's People

Contributors

andrewksmith12 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.