Promaiden is an automated reporting tool that integrates Prometheus for metric collection and ChatGPT for analysis, generating structured performance reports. It helps system administrators, SREs, and DevOps engineers gain insights into infrastructure health and performance.
- Queries Prometheus for key system metrics
- Analyzes data with ChatGPT to provide structured reports
- Supports modular design for easy extensibility
- Generates formatted reports for production meetings
- Logs detailed execution steps for transparency
- GitHub Actions support for automation
- Version tagging for releases
- Python 3.8+
- Prometheus instance running
- OpenAI API key
- Git installed
- Clone the repository:
git clone https://github.com/bit-bot-bit/promaiden.git cd promaiden - Install dependencies:
pip install -r requirements.txt
- Set up the OpenAI API key:
Or create a
export OPENAI_API_KEY="your_openai_api_key"
.envfile with:OPENAI_API_KEY=your_openai_api_key
Modify config.json to specify Prometheus URL, query time ranges, and metrics:
{
"service_name": "Example Service",
"prometheus_url": "http://localhost:9090/api/v1/query",
"start_time": "now-6h",
"end_time": "now",
"metrics": [
"up",
"process_uptime_seconds",
"sum(rate(node_cpu_seconds_total[5m])) by (mode)",
"node_memory_Available_bytes"
]
}Run Promaiden with:
python promaiden.pyThis will:
- Fetch Prometheus metrics
- Analyze them using ChatGPT
- Generate a structured report in
performance_report.txt
Logs are printed to the console and can be redirected to a file:
python promaiden.py > promaiden.log 2>&1Promaiden is hosted on GitHub: bit-bot-bit/promaiden
- Fork the repository on GitHub
- Create a feature branch (
git checkout -b feature-branch) - Commit your changes (
git commit -m "Add new feature") - Push to your branch (
git push origin feature-branch) - Submit a pull request on GitHub
- Report bugs and feature requests in the GitHub Issues
- Discuss improvements and ideas in GitHub Discussions
We plan to integrate GitHub Actions to automate:
- Code formatting checks
- Unit testing
- Automatic deployment
- Version tagging (
v1.0.0,v1.1.0) will be used for stable releases - Future releases will be listed under the GitHub Releases page
This project is licensed under the MIT License. See LICENSE for details.
- Support for multiple AI models
- Real-time dashboard integration
- Alert-based automated reports
