Code Monkey home page Code Monkey logo

terraform-grafana-dispatcher's Introduction

Dispatcher

Dispatcher is a repository for the Grafana Cloud playground setup and for personal use only.

The prerequisites are:

  • Google Cloud storage as Terraform state backend.
  • Grafana Cloud Terraform provider.
  • Discord setting.

Manual steps required

Not that I'm too lazy to automate these steps but I'm ... lazy.

GCS bucket as Terraform backend

TBD

Sign up for a Grafana free account and create initial API key

TBD

Setup Discord server and webhook

TBD

Install Terraform

TBD

Usage

The simple usage is as follows:

module "dispatcher" {
  source  = "locmai/dispatcher/grafana"
  version = "~> 0.1.0"

  grafana_cloud_api_key = "<sensitive>"
  discord_webhook_url   = "<sensitive>"
  name                  = "test1"
  region_slug           = "us"
}

Generate terraform-docs

Install the terraform-docs:

go install github.com/terraform-docs/[email protected]

Then run:

terraform-docs markdown table --output-file README.md --output-mode inject .

or:

make readme

It will generate the below sections.

Requirements

Name Version
grafana 1.33.0

Providers

Name Version
grafana 1.33.0
grafana.cloud 1.33.0
grafana.sm 1.33.0

Modules

No modules.

Resources

Name Type
grafana_api_key.dispatcher resource
grafana_cloud_api_key.metrics_publish resource
grafana_cloud_stack.dispatcher resource
grafana_contact_point.discord resource
grafana_synthetic_monitoring_check.dns resource
grafana_synthetic_monitoring_check.ping resource
grafana_synthetic_monitoring_installation.sm_stack resource
grafana_synthetic_monitoring_probes.main data source

Inputs

Name Description Type Default Required
discord_webhook_url Discord Webhook URL from Server Setting's integrations tab string n/a yes
domain_list List of domain to check list(any) [] no
grafana_cloud_api_key Grafana Cloud API key for creating initialize Dispatcher cloud Stack string n/a yes
name Cloud stack name and slug string n/a yes
region_slug Region slug string n/a yes

Outputs

Name Description
dispatcher Dispatcher cloud stack data
probers Public probers

terraform-grafana-dispatcher's People

Contributors

locmai avatar github-actions[bot] avatar

Watchers

 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.