Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pavangudiwada/prom-rule-generator
- Owner: pavangudiwada
- Created: 2023-12-27T12:41:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-07T06:01:55.000Z (10 months ago)
- Last Synced: 2024-04-22T00:18:30.101Z (9 months ago)
- Topics: prometheus, prometheus-operator, prometheusrules
- Language: Python
- Homepage:
- Size: 19.3 MB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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)