-
Notifications
You must be signed in to change notification settings - Fork 20
Enabling prometheus support with service monitors #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Enabling prometheus support with service monitors #23
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enables Prometheus monitoring support for deployed models by adding the ability to create Kubernetes ServiceMonitor resources. The changes allow users to optionally enable Prometheus metrics collection when deploying models for benchmarking.
- Adds a
prometheus_enabledparameter to the benchmark and deployment functions - Refactors service port configuration to use model-specific methods
- Creates ServiceMonitor resources when Prometheus is enabled
- Updates documentation with Prometheus setup instructions
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| fmperf/utils/Benchmarking.py | Adds prometheus_enabled parameter to run_benchmark function |
| fmperf/ModelSpecs.py | Refactors port configuration and adds ServiceMonitor endpoint methods |
| fmperf/Cluster.py | Removes hardcoded annotations, adds ServiceMonitor creation logic |
| examples/example_vllm.py | Demonstrates prometheus_enabled usage |
| docs/SETUP.md | Adds Prometheus installation and setup instructions |
| helm install prometheus-community/kube-prometheus-stack --create-namespace --namespace monitoring --generate-name | ||
| ``` | ||
| INSTEAD (/OR) |
Copilot
AI
Jul 31, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The text 'INSTEAD (/OR)' should be formatted consistently with other section headers or as proper documentation text. Consider using '## Alternative Setup' or similar.
| INSTEAD (/OR) | |
| ## Alternative Setup |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.