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

Add all controller metrics #418

Merged

Conversation

yiqigao217
Copy link
Contributor

This commit adds metrics of HierConfig and all other object controllers.
It includes total reconciliations and peak concurrent reconciliations
and related api writes.

Tested on GKE cluster and the metrics can all be viewed in Stackdriver.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 12, 2020
@yiqigao217
Copy link
Contributor Author

/assign @adrianludwin

Copy link
Contributor

@adrianludwin adrianludwin left a comment

Choose a reason for hiding this comment

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

lg with a few nits (mainly requests for more comments)

incubator/hnc/pkg/stats/metrics.go Outdated Show resolved Hide resolved
incubator/hnc/pkg/stats/metrics.go Outdated Show resolved Hide resolved
incubator/hnc/pkg/stats/metrics.go Show resolved Hide resolved
incubator/hnc/pkg/stats/metrics.go Outdated Show resolved Hide resolved
incubator/hnc/pkg/stats/metrics.go Outdated Show resolved Hide resolved
incubator/hnc/pkg/stats/stats.go Outdated Show resolved Hide resolved
incubator/hnc/pkg/stats/stats.go Outdated Show resolved Hide resolved
@yiqigao217 yiqigao217 force-pushed the hnc-opentelemetry branch 2 times, most recently from fdba1c5 to af2be0b Compare February 14, 2020 17:05
Copy link
Contributor

@adrianludwin adrianludwin left a comment

Choose a reason for hiding this comment

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

lgtm!

incubator/hnc/go.mod Show resolved Hide resolved
incubator/hnc/pkg/stats/metrics.go Outdated Show resolved Hide resolved
incubator/hnc/pkg/stats/metrics.go Show resolved Hide resolved
incubator/hnc/pkg/stats/metrics.go Outdated Show resolved Hide resolved
incubator/hnc/pkg/stats/stats.go Outdated Show resolved Hide resolved
incubator/hnc/go.mod Show resolved Hide resolved
incubator/hnc/pkg/stats/metrics.go Outdated Show resolved Hide resolved
This commit adds metrics of HierConfig and all other object controllers.
It includes total reconciliations and peak concurrent reconciliations
and related api writes.

Tested on GKE cluster and the metrics can all be viewed in Stackdriver.
@adrianludwin
Copy link
Contributor

lgtm!
/assign @rjbez17
/unassign @adrianludwin

@k8s-ci-robot k8s-ci-robot assigned rjbez17 and unassigned adrianludwin Feb 14, 2020
@yiqigao217
Copy link
Contributor Author

Hi @rjbez17, these are the rest of the controller metrics exported to Stackdriver. The prometheus metrics will be added through #416 .

@rjbez17
Copy link

rjbez17 commented Feb 18, 2020

🎉

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 18, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rjbez17, yiqigao217

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 Feb 18, 2020
@k8s-ci-robot k8s-ci-robot merged commit 3ee4a3e into kubernetes-retired:master Feb 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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 Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants