Skip to content
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

WIP: Add initial metrics #573

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

eranra
Copy link
Contributor

@eranra eranra commented Aug 13, 2023

Issue link

What changes have been made

This PR adds a basic set of initial metrics to be exposed by MCAD. The metrics are in Prometheus format and will provide the same Observability information we have today using the fake adaptor mechanism.

This PR is based on PR #486

Verification steps

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • Testing is not required for this change

@openshift-ci
Copy link

openshift-ci bot commented Aug 13, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign z103cb for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

Copy link
Collaborator

@dmatch01 dmatch01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @eranra for the PR. If I understand the PR correctly these changes would add a duplicate option to externalizing GPU metrics. It would be good to discuss a plugin interface for externalizing metrics such that the existing, and alternative metrics externalization implementations can be configured for the MCAD controller.

@@ -80,7 +81,9 @@ func (s *ServerOption) AddFlags(fs *flag.FlagSet) {
fs.BoolVar(&s.QuotaEnabled, "quotaEnabled", s.QuotaEnabled, "Enable quota policy evaluation. Default is false.")
fs.StringVar(&s.QuotaRestURL, "quotaURL", s.QuotaRestURL, "URL for ReST quota management. Default is none.")
fs.IntVar(&s.SecurePort, "secure-port", 6443, "The port on which to serve secured, authenticated access for metrics.")
fs.StringVar(&s.HealthProbeListenAddr, "healthProbeListenAddr", ":8081", "Listen address for health probes. Defaults to ':8081'")
fs.IntVar(&s.HealthProbeListenPort, "healthProbeListenPort", 8081, "Listen port for health probes. Defaults to ':8081'")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eranra Helm chart may be producing a string here. Could you check and validate/fix helm chart. See deployment/mcad-controller

@asm582
Copy link
Member

asm582 commented Aug 16, 2023

@eranra Can you open up an ADR for this PR, please?

CC: @dimakis @anishasthana @astefanutti

@eranra
Copy link
Contributor Author

eranra commented Aug 17, 2023

@eranra Can you open up an ADR for this PR, please?

CC: @dimakis @anishasthana @astefanutti

Hi @asm582 sure -- will do. It might take a couple of days but this is in the plan :-)

@openshift-merge-robot
Copy link
Collaborator

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ronensc ronensc mentioned this pull request Sep 27, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants