/prom-rule-generator

Python web application to create PrometheusRules for Prometheus Operator

Primary LanguagePython

PrometheusRule Generator

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

Features

  • Auto-generate PrometheusRule YAML
  • Auto-detect Prometheus ruleSelector and ruleNamespaceSelector
  • 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
git clone https://github.com/pavangudiwada/prom-rule-editor.git && cd prom-rule-editor
  1. Install dependencies
pip install -r requirements.txt    
  1. Run the web app
streamlit run manual_alert.py
  1. Go to http://localhost:8501

Sample

PrometheusRule Editor in action