Skip to content

Better Prometheus alerts for Kubernetes - smart grouping, AI enrichment, and automatic remediation

License

Notifications You must be signed in to change notification settings

robusta-dev/robusta

Folders and files

NameName
Last commit message
Last commit date
Aug 11, 2021
Aug 10, 2021
Aug 16, 2021
Aug 16, 2021
Jul 12, 2021
Jul 5, 2021
Aug 16, 2021
Aug 16, 2021
Jul 22, 2021
Jul 10, 2021
Aug 6, 2021
Jul 12, 2021
Aug 10, 2021

Repository files navigation

Installing Robusta as a user

If you want to use Robusta, see our installation guide.

Installing Robusta runner in cluster as a developer

If you want to develop features for Robusta itself you'll need to install Robusta from source:

  1. git clone the source code.
  2. Install skaffold and kustomize.
  3. Run skaffold run --tail

If you want to use the Slack integration:

  1. Get a slack token from https://robusta.dev/integrations/slack/?id=xyz
  2. Add it to deployment/dev/set_slack_api_key.yaml before running skaffold
  3. Optional: reduce the chance you'll accidentally commit your Slack key to git by running git update-index --skip-worktree deployment/dev/set_slack_api_key.yaml (see here for details)

Running Robusta runner locally as a developer

If you want to run the Robusta runner on your own computer (e.g. with telepresence):

  1. git clone the source code
  2. cd src
  3. poetry install
  4. poetry run python3 -m robusta.runner.main

If you're on Mac OS and receive errors about Pillow or libjpeg when running poetry install then run brew install libjpeg first.

Running Robusta cli locally as a developer

This is only necessary if you are developing features for the cli itself. If you just want to develop robusta-runner and install it from your local version, use the skaffold instructions above.

Using poetry

  1. git clone the source code
  2. cd src
  3. poetry install
  4. poetry run robusta

Alternative method using pip

This method installs robusta into your global python environment

  1. git clone the source code
  2. cd src
  3. pip3 install .

Running Tests

  1. Set a Slack token in tests/config.env
  2. cd src && python -m pytest .. (add -s to print all pytest output and --keep-cluster to keep the test KIND cluster alive after tests finish)
  3. Optional: reduce the chance you'll accidentally commit your Slack key to git by running git update-index --skip-worktree tests/config.env