Giter Site home page Giter Site logo

guancecloud / terraform-guance-monitor Goto Github PK

View Code? Open in Web Editor NEW
0.0 6.0 0.0 465 KB

Terraform provider for Guance Cloud

Home Page: https://registry.terraform.io/modules/GuanceCloud/monitor/guance/latest

HCL 99.39% Shell 0.61%
observability terraform terraform-module guance

terraform-guance-monitor's Introduction

Terraform Modules for Guance Cloud Monitor

cover

Monitor is a module that creates an Monitor in Guance Cloud. It contains a set of built-in monitors that are designed to provide a quick alerting of your infrastructure.

Usage

terraform {
  required_version = ">= 1.0"

  required_providers {
    guance = {
      source  = "GuanceCloud/guance"
      version = "0.0.4"
    }
  }
}

provider "guance" {
}

variable "email" {
  type = string
}

data "guance_members" "demo" {
  filters = [
    {
      name   = "email"
      values = [var.email]
    }
  ]
}

resource "guance_membergroup" "demo" {
  name       = "oac-demo"
  member_ids = data.guance_members.demo.items[*].id
}

resource "guance_alertpolicy" "demo" {
  name           = "oac-demo"
  silent_timeout = "1h"

  statuses = [
    "critical",
    "error",
    "warning",
    "info",
    "ok",
    "nodata",
    "nodata_ok",
    "nodata_as_ok",
  ]

  alert_targets = [
    {
      type = "member_group"
      member_group = {
        id = guance_membergroup.demo.id
      }
    },
  ]
}

module "aerospike" {
  source          = "GuanceCloud/monitor/guance//modules/aerospike"
  version         = "0.0.2"
  alert_policy_id = guance_alertpolicy.demo.id
}

Aerospike is one of the submodule in this repository.

Use the submodules dropdown in Hashicorp Registry to view the 26 submodules defined within this module.

Feedback

If you have any feedback, please create an issue or a pull request.

Contributing

If you wish to contribute to this repository, please fork it and send us a pull request.

This Contribution Guidelines document contains more detailed information about contributing to this repository.

License

This repository is licensed under the Apache 2.0 License.

terraform-guance-monitor's People

Contributors

yufeiminds avatar

Watchers

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