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

make alert metrics count type & add service heartbeat #1849

Merged
merged 2 commits into from Oct 24, 2018

Conversation

kunmingg
Copy link
Contributor

@kunmingg kunmingg commented Oct 24, 2018

  1. make alert metrics count type
  2. add service heartbeat

This change is Reviewable

@kunmingg
Copy link
Contributor Author

/assign @jlewi

@abhi-g
Copy link
Member

abhi-g commented Oct 24, 2018

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhi-g

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 e4a5d84 into kubeflow:master Oct 24, 2018
@@ -1137,5 +1165,6 @@ func (s *ksServer) StartHttp(port int) {
// add an http handler for prometheus metrics
http.Handle("/metrics", promhttp.Handler())

go countHeartbeat()
Copy link
Member

Choose a reason for hiding this comment

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

nit: you could probably inline this one as

go func() {
   time.Sleep(10 * time.Second)
   serviceHeartbeat.Inc()
}()

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, added the labels too soon...

Copy link
Member

Choose a reason for hiding this comment

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

It works the same either way :)

rogaha pushed a commit to rogaha/kubeflow that referenced this pull request Nov 20, 2018
* siwtch alert metrics to count type; add service heartbeat signal

* rename vars
saffaalvi pushed a commit to StatCan/kubeflow that referenced this pull request Feb 11, 2021
* siwtch alert metrics to count type; add service heartbeat signal

* rename vars
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.

None yet

6 participants