Skip to content

feat: make model metrics endpoints configurable #1000

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

Merged
merged 1 commit into from
Jul 11, 2025

Conversation

nayihz
Copy link
Contributor

@nayihz nayihz commented Jun 17, 2025

fix: #16

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 17, 2025
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 17, 2025
Copy link

netlify bot commented Jun 17, 2025

Deploy Preview for gateway-api-inference-extension ready!

Name Link
🔨 Latest commit 96bee04
🔍 Latest deploy log https://app.netlify.com/projects/gateway-api-inference-extension/deploys/68613eaa31c5bd0008942443
😎 Deploy Preview https://deploy-preview-1000--gateway-api-inference-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nirrozenbaum
Copy link
Contributor

nirrozenbaum commented Jun 17, 2025

I have some doubts about adding additional fields to InferencePool.
there are alternative ways to achieve the same goal, like using command line args.
changes to CRDs should be discussed and get broad agreement using proposals.

cc @kfswain @ahg-g @robscott @danehans @elevran

/hold for others to comment.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 17, 2025
@nayihz nayihz force-pushed the feat_config_metric branch from ffad486 to f57478d Compare June 17, 2025 10:34
@nayihz
Copy link
Contributor Author

nayihz commented Jun 17, 2025

@nirrozenbaum , thanks for you advise. I think you are right.
Command line args or environment variable, which way do you prefer?

@nirrozenbaum
Copy link
Contributor

@nirrozenbaum , thanks for you advise. I think you are right. Command line args or environment variable, which way do you prefer?

@nayihz I would start with command-line args with default values (the existing ones).
we can always iterate if needed.

@nayihz nayihz force-pushed the feat_config_metric branch from f57478d to 9fa17f7 Compare June 17, 2025 12:40
@elevran
Copy link
Contributor

elevran commented Jun 17, 2025

@nayihz @nirrozenbaum this introduces a fixed endpoint for all model servers in the pool.
Would it make sense to use the Prometheus-formatted annotations as the source of truth when present and fallback to the configuration when missing?
For example:

apiVersion: v1
kind: Pod
metadata:
  name: my-app
  annotations:
    prometheus.io/scrape: "true"
    prometheus.io/path: "/metrics"
    prometheus.io/port: "8080"

@nirrozenbaum
Copy link
Contributor

nirrozenbaum commented Jun 17, 2025

@nayihz @nirrozenbaum this introduces a fixed endpoint for all model servers in the pool. Would it make sense to use the Prometheus-formatted annotations as the source of truth when present and fallback to the configuration when missing? For example:

apiVersion: v1
kind: Pod
metadata:
  name: my-app
  annotations:
    prometheus.io/scrape: "true"
    prometheus.io/path: "/metrics"
    prometheus.io/port: "8080”

@elevran we already have a fixed endpoint, so this PR is not introducing it :). the intention was to make that endpoint configurable.
but your suggestion makes sense as an improvement.

@nirrozenbaum
Copy link
Contributor

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 17, 2025
@nayihz nayihz force-pushed the feat_config_metric branch from 9fa17f7 to 7466a28 Compare June 18, 2025 01:34
@nayihz nayihz force-pushed the feat_config_metric branch 3 times, most recently from 937f686 to d86effa Compare June 20, 2025 01:30
@kfswain
Copy link
Collaborator

kfswain commented Jun 24, 2025

looks good for the most part, added a comment about switching to env vars to have better interfacing with our helm chart

@nayihz nayihz force-pushed the feat_config_metric branch from d86effa to 9a9affa Compare June 29, 2025 07:35
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 29, 2025
@nayihz nayihz force-pushed the feat_config_metric branch from 9a9affa to 96bee04 Compare June 29, 2025 13:24
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 29, 2025
@nirrozenbaum
Copy link
Contributor

/lgtm

leaving final stamp to the other reviewers.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 11, 2025
@nayihz nayihz requested a review from ahg-g July 11, 2025 13:58
@nayihz
Copy link
Contributor Author

nayihz commented Jul 11, 2025

Kindly ping @ahg-g @kfswain @danehans , any chance you could have another look at this PR.

@kfswain
Copy link
Collaborator

kfswain commented Jul 11, 2025

looks great. Thanks!
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kfswain, nayihz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 11, 2025
@k8s-ci-robot k8s-ci-robot merged commit e696216 into kubernetes-sigs:main Jul 11, 2025
9 checks passed
@nayihz nayihz deleted the feat_config_metric branch July 11, 2025 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose baseline algorithm parameters as configurable
7 participants