-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat: prometheus metrics integration #274
Conversation
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>
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>
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
} | ||
|
||
func (c *MetricsCollector) SetInstanceGroup(instanceGroup, state string) { | ||
externalStates := []string{"ReconcileModifying", "InitUpgrade", "Deleting", "Ready", "Error"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these states constants?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #238
This adds a basic prometheus collector integration to expose metrics.