Git Product home page Git Product logo

srebot's Introduction

srebot

SRE bot uses terraform to deploy GCP DialogFlow bot for Site Reliability Engineers who are lonely

Pre-requisites for deploying from local machine

  • Install terraform locally.
  • Install GCP SDK (gcloud) locally.
  • Create an GCP account and project.
  • https://dialogflow.cloud.google.com/ login and enable
  • Setup authentication to your GCP account in account.json (don't check this in)
  • export GOOGLE_APPLICATION_CREDENTIALS=account.json
  • update your project and bot_name in in variables.tf

Intents

  • alerts (service,environment)
  • call.latency (service,environment)
  • call.rate (service,environment)
  • error.rate (service,environment)
  • errors (service,environment)
  • health (service,environment)
  • deployments (datetime)
  • oncall (datetime)
  • help

Entities

  • environmen e.g. dev, int, qa, prodt
  • service e.g. kafka, cassandra, orders, batch, purchases

Instructions for deploying from local machine

terraform init
terraform plan 
terraform apply

Importing agent

Terraform DialogFlow support in the google provider is currently restricted to the top level "google_dialogflow_agent" resource. The agent configuration, including Entities, Intents, and other agent configuration is managed using DialogFlow import/export zip. The contents of the zip are unzipped to the sre_template directory, and templatized with ${XXX} variable references, and template_dir resource is used to render the entire sre_template directory to the sre directory. A null_resource local provisioner zips up the rendered sre directory and calls the DialogFlow import API to configure the agent.

refs

srebot's People

Contributors

bhood4 avatar

Watchers

 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.