Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Add scheduling related Prometheus metrics #84

Merged
merged 1 commit into from
May 12, 2020

Conversation

terrytangyuan
Copy link
Member

This PR contains the following:

  • Captured errors related to pdb/podGroup creations
  • Added Prometheus metrics for the creation/deletion of pdb/podGroup

Signed-off-by: terrytangyuan terrytangyuan@gmail.com

Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>
@kubeflow-bot
Copy link

This change is Reviewable

return jc.KubeClientSet.PolicyV1beta1().PodDisruptionBudgets(job.GetNamespace()).Create(createPdb)
createdPdb, err := jc.KubeClientSet.PolicyV1beta1().PodDisruptionBudgets(job.GetNamespace()).Create(createPdb)
if err != nil {
return createdPdb, fmt.Errorf("unable to create pdb: %v", err)
Copy link
Member

Choose a reason for hiding this comment

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

minor: we can return error directly without wrapper.

@Jeffwan
Copy link
Member

Jeffwan commented May 12, 2020

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Jeffwan

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 merged commit 23b2612 into kubeflow:master May 12, 2020
@terrytangyuan terrytangyuan deleted the prom-scheduling-metrics branch May 12, 2020 16:32
georgkaleido pushed a commit to georgkaleido/common that referenced this pull request Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants