Code Monkey home page Code Monkey logo

upp-cli's Introduction

UPP CLI

CLI for general UPP health checking. Currently supports:

  • Shows health information for all environments by category.
  • Shows failing healthchecks (and acknowledged ones).
  • Acknowledge failing healthchecks.
  • Remove acknowledgements.

Installation

git clone [email protected]:peteclark-ft/upp-cli.git
cd ./upp-cli
touch env.json # Update the env.json file appropriately.
make

Usage

Show health for all environments (without naming the failing healthchecks).

upp-cli health

Show health but filter environments/categories.

upp-cli health -f dyn

Show health with failing healthchecks/acknowledged.

upp-cli health -l

Acknowledge a healthcheck. (In this case acknowledge all system-healthchecks on all prod environments).

upp-cli ack ^prod.* system-healthcheck-.* -m "Not able to upgrade CoreOS PDC"

Remove an acknowledgement.

upp-cli ack ^prod.* system-healthcheck-.* -d

Open your browser with the aggregate healthcheck page(s) for provided environments.

upp-cli open ^prod"

All options accept Regex - but be careful as this will process the command on everything that matches.

env.json

The env.json contains a list of all environments. For secrecy, this is not committed to github - please speak to me for details, or populate it yourself in the following format:

[
  {
    "name": "Environment Name",
    "url": "https://url/__health",
    "tunnel": "tunnel.com",
    "importance": 1,
    "category": "example"
  }
]

The url must contain the aggregate health page.

Category is useful for grouping environments logically and the importance value designates where in the output the category should appear (1 is most critical).

Assumptions

You must have node pre-installed.

This is currently tested on OS X only.

In order to ack services, the process will ssh to the selected environment using default settings - please make sure this is possible.

i.e. Please check the following command works fine in your terminal:

ssh -t <tunnel url>

upp-cli's People

Contributors

peteclark-ft 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.