Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pavangudiwada/prom-rule-generator

Python web application to create PrometheusRules for Prometheus Operator
https://github.com/pavangudiwada/prom-rule-generator

prometheus prometheus-operator prometheusrules

Last synced: about 2 months ago
JSON representation

Python web application to create PrometheusRules for Prometheus Operator

Awesome Lists containing this project

README

        

# PrometheusRule Generator

A Python based web application to help with creating PrometheusRule custom resources.

## Features
- [x] Auto-generate PrometheusRule YAML
- [x] Auto-detect Prometheus `ruleSelector` and `ruleNamespaceSelector`
- [x] Add selector labels to YAML by default
- [ ] Auto-detect multiple Prometheus-Operators
- [ ] Switch between multiple operators
- [ ] Check namespaces for `ruleNamespaceSelectors`

## Try it out

1. Clone the repository
```bash
git clone https://github.com/pavangudiwada/prom-rule-editor.git && cd prom-rule-editor
```

2. Install dependencies

```bash
pip install -r requirements.txt
```

3. Run the web app
```bash
streamlit run manual_alert.py
```

4. Go to [http://localhost:8501](http://localhost:8501)

## Sample

![PrometheusRule Editor in action](./images/demov1.png)