https://github.com/noobaa/noobaa-mixins
Prometheus Alerts for NooBaa :cloud: :loudspeaker:
https://github.com/noobaa/noobaa-mixins
alerting cloud hybrid kubernetes multi-cloud noobaa openshift prometheus
Last synced: about 2 months ago
JSON representation
Prometheus Alerts for NooBaa :cloud: :loudspeaker:
- Host: GitHub
- URL: https://github.com/noobaa/noobaa-mixins
- Owner: noobaa
- License: apache-2.0
- Created: 2019-05-26T10:50:33.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-13T14:50:46.000Z (over 2 years ago)
- Last Synced: 2025-04-23T08:14:18.077Z (about 2 months ago)
- Topics: alerting, cloud, hybrid, kubernetes, multi-cloud, noobaa, openshift, prometheus
- Language: Jsonnet
- Homepage: https://www.noobaa.io
- Size: 43 KB
- Stars: 4
- Watchers: 12
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# noobaa-mixins
Prometheus Alerts for [NooBaa](https://github.com/noobaa/noobaa-core)### Prerequesites
* Install GO and have your GOPATH updated
* Install [jsonnet](https://github.com/google/jsonnet#building-jsonnet)
```
brew install jsonnet
```
* Install [jsonnet-bundler](https://github.com/jsonnet-bundler/jsonnet-bundler#install)
```
go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
```
* Check that jb is installed
```
jb
```
If the command is not found add the `jb` into the PATH
```
PATH=${PATH}:$(go env GOPATH)/bin
```* For jsonnet > 0.13 it seems that brew is missing some binaries so also install the following two
```
go get github.com/brancz/gojsontoyaml
go get github.com/google/go-jsonnet/cmd/jsonnetfmt
```* Install [promtool](https://github.com/prometheus/prometheus)
```
GO111MODULE=on go get github.com/prometheus/prometheus/cmd/promtool
```### Usage
install dependencies
```
jb install
```Generate the prometheus alert files by
```
make prometheus_alert_rules.yaml
```run tests by
```
make test
```