Skip to content

Conversation

@rohanarora
Copy link
Contributor

No description provided.

@rohanarora rohanarora marked this pull request as draft June 24, 2024 13:32
@rohanarora rohanarora changed the title [WIP - DO NOT MERGE] Enabling Prometheus Support with Service Monitors Enabling Prometheus Support with Service Monitors Jun 25, 2024
@rohanarora rohanarora changed the title Enabling Prometheus Support with Service Monitors Enabling prometheus support with service monitors Jun 25, 2024
@rohanarora rohanarora marked this pull request as ready for review June 29, 2024 22:50
@wangchen615 wangchen615 requested a review from Copilot July 31, 2025 19:07
Copy link
Contributor

Copilot AI left a 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_enabled parameter 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)
Copy link

Copilot AI Jul 31, 2025

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.

Suggested change
INSTEAD (/OR)
## Alternative Setup

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@wangchen615 wangchen615 self-assigned this Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants