GithubHelp home page GithubHelp logo

runtime-cluster-monitor's Introduction

prometheus for runtime clusters

These scripts deploy a Prometheus Operator installation (Prometheus, Alertmanager, Grafana) that's pre-configured for Codefresh runtime clusters. It includes alerts and dashboards for monitoring the runtime cluster, as well as configures exporters and cron jobs. What's included:

We create a monitoring namespace and put all the things there.

Required

Configuration

If you want Slack or VictorOps notifications write a file: values.yaml.

It may specify:

  • slack_hook: URL to Slack hook
  • slack_warnings: channel name for warnings, full name like #ops-warnings
  • slack_errors: channel name for errors, full name like #ops-errors
  • victorops_api_key: API key to VictorOps
  • victorops_routing: VictorOps routing policy name
  • affinity: string to set up monitoring affinity/tolerations (see template for more details)
  • prom_ram: Prometheus memory requests and limits, defaults to 6Gi for a 8GB instance
    use 14Gi if using a 16GB instance; use 24Gi if using a 32GB instance
  • prom_cpu: Prometheus CPU requests (defaults to 1, you may want to increase it)
    Prometheus CPU limits are twice this value
  • coredns: true set this if using CoreDNS, not Kube-DNS

Please note that if you set slack_hook, you're reqiuired to set both slack_warnings and slack_errors.
If you set victorops_api_key, victorops_routing is also required.

Usage

  • switch your k8s context to needed
  • helmfile [-e local] sync to install or update your installation
  • helmfile destroy to remove the deployment

use -e local if you have values.yaml, if you don't, just omit this part.

Access services

kubectl -n monitoring port-forward svc/cprom-prometheus-operator-prometheus 9090

kubectl -n monitoring port-forward svc/cprom-prometheus-operator-alertmanager 9093

kubectl -n monitoring port-forward svc/cprom-grafana 3000:80

runtime-cluster-monitor's People

Contributors

francisco-cocozza avatar freehck avatar freehck-codefresh avatar ilyagorban-codefresh avatar kosta709 avatar mikhail-klimko avatar palson-cf avatar sharon-codefresh avatar shirtabachii avatar vadimgusev-codefresh avatar vasily-codefresh avatar zarbis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.