Giter VIP home page Giter VIP logo

sak-prometheus's Introduction

About this module

This module can install:

Prometheus: Documentation

Grafana: Documentation

How to change infrastructure

  • New namespace will be created (by default name "monitoring")
  • New 3 applications for ArgoCD (grafana, prometheus, thanos)
  • New ingress and dns records will be created (thanos.domain.name, grafana.domain.name). You can disable ingress if provide additional config (grafana_conf = {ingress.enabled = false} and thanos_conf = {queryFrontend.ingress.enabled = false}
  • If ingress is disabled, you can test locally by port-forwarding (example: kubectl port-forward grafana-pod 3000:3000)
  • By default, thanos backend will create s3 bucket "<domain_name>-thanos and IAM policy.

Prometheus

Install the kube-prometheus, de-facto standard for monitoring.

Grafana

Install the grafana, web dashboarding system

Thanos

Install the thanos, long term storage capabilities for prometheus

Example

module "prometheus" {
  depends_on      = [module.argocd]
  source          = "github.com/provectus/sak-prometheus"
  cluster_name    = module.eks.cluster_id
  argocd          = module.argocd.state
  domains         = local.domain
  tags            = local.tags
}

Optional parameters

  namespace               = "moniroting" # Set namespace to install all charts
  thanos_enabled          = true # Enable install thanos application
  grafana_enabled         = true # Enable install prometheus application
  prometheus_enabled      = true # Enable install grafana application
  thanos_storage          = "s3" # Object storage backend.
  thanos_password         = "password" # Use as minio secret if thanos_storage = "minio"
  grafana_password        = "password" # Set grafana admin password, autogenerate and store to paramstore if empty
  grafana_google_auth     = true
  grafana_client_id       = "xxxxx"
  grafana_client_secret   = "xxxxx"
  grafana_allowed_domains = "example.com"
  thanos_conf             = {} # Additional thanos configurations
  grafana_conf            = {} # Additional grafana configurations
  prometheus_conf         = {} # Additional prometheus configurations

Requirements

terraform >= 1.1

Providers

Name Version
aws >= 3.0
helm >= 1.0
kubernetes >= 1.11
local >= 2.1.0
random >= 3.1.0

Inputs

Name Description Type Default Required
argocd A set of values for enabling deployment through ArgoCD map(string) {} no
cluster_name A name of the Amazon EKS cluster string null no
domains A list of domains to use for ingresses list(string)
[
"local"
]
no
grafana_allowed_domains Allowed domain for Grafana Google auth string "local" no
grafana_chart_version A Grafana Chart version string "6.13.9" no
grafana_client_id The id of the client for Grafana Google auth string "" no
grafana_client_secret The token of the client for Grafana Google auth string "" no
grafana_conf A custom configuration for deployment map(string) {} no
grafana_enabled Enable install grafana bool true no
grafana_google_auth Enables Google auth for Grafana string false no
grafana_password Password for grafana admin string "" no
module_depends_on A list of explicit dependencies list(any) [] no
namespace A name of the existing namespace string "" no
namespace_name A name of namespace for creating string "monitoring" no
prometheus_chart_version A Prometheus Chart version string "6.1.1" no
prometheus_conf A custom configuration for deployment map(string) {} no
prometheus_enabled Enable install prometheus bool true no
tags A tags for attaching to new created AWS resources map(string) {} no
thanos_chart_version A Thanos Chart version string "5.1.0" no
thanos_conf A custom configuration for deployment map(string) {} no
thanos_enabled Enable install thanos bool true no
thanos_password Password for thanos objstorage if thanos_storage minio string "" no
thanos_storage The type of thanos object storage backend string "s3" no

Outputs

Name Description
path_to_grafana_password A SystemManager ParemeterStore key with Grafana admin password

sak-prometheus's People

Contributors

akastav avatar khalatyanhovhannes avatar pbunakalia avatar pvlbnkl avatar wallhided avatar

Stargazers

 avatar

Watchers

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