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

feat: prometheus metrics integration #274

Merged
merged 9 commits into from
Apr 17, 2021

Conversation

eytan-avisror
Copy link
Collaborator

Fixes #238

This adds a basic prometheus collector integration to expose metrics.

Eytan Avisror added 6 commits April 14, 2021 15:35
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
@eytan-avisror eytan-avisror requested review from a team as code owners April 16, 2021 18:56
Eytan Avisror added 3 commits April 16, 2021 11:57
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
Signed-off-by: Eytan Avisror <eytan_avisror@intuit.com>
@eytan-avisror eytan-avisror changed the title WIP - Prometheus metrics feat: prometheus metrics integration Apr 16, 2021
@codecov
Copy link

codecov bot commented Apr 16, 2021

Codecov Report

Merging #274 (5f666f0) into master (c0eb25d) will increase coverage by 0.07%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #274      +/-   ##
==========================================
+ Coverage   87.82%   87.89%   +0.07%     
==========================================
  Files          17       17              
  Lines        2267     2272       +5     
==========================================
+ Hits         1991     1997       +6     
+ Misses        173      172       -1     
  Partials      103      103              
Impacted Files Coverage Δ
controllers/provisioners/provisioners.go 100.00% <ø> (ø)
controllers/provisioners/eks/update.go 82.12% <33.33%> (ø)
controllers/provisioners/eks/upgrade.go 88.79% <66.66%> (ø)
controllers/provisioners/eks/create.go 89.21% <100.00%> (ø)
controllers/provisioners/eks/delete.go 96.07% <100.00%> (-0.08%) ⬇️
controllers/provisioners/eks/eks.go 88.63% <100.00%> (+4.42%) ⬆️
controllers/provisioners/eks/state.go 92.30% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0eb25d...5f666f0. Read the comment docs.

@eytan-avisror
Copy link
Collaborator Author

Some examples on dashing the added metrics
Screen Shot 2021-04-16 at 1 30 14 PM
Screen Shot 2021-04-16 at 1 30 30 PM

}

func (c *MetricsCollector) SetInstanceGroup(instanceGroup, state string) {
externalStates := []string{"ReconcileModifying", "InitUpgrade", "Deleting", "Ready", "Error"}

Choose a reason for hiding this comment

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

Are these states constants?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, in v1alpha1 - this would be a cyclic dependency if we use them though

Copy link

@shaoxt shaoxt left a comment

Choose a reason for hiding this comment

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

LGTM

@eytan-avisror eytan-avisror removed the WIP label Apr 17, 2021
@eytan-avisror eytan-avisror merged commit fac0608 into keikoproj:master Apr 17, 2021
@eytan-avisror eytan-avisror mentioned this pull request Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prometheus Metrics Integration
3 participants