-
Notifications
You must be signed in to change notification settings - Fork 670
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
Add service monitor for flyte admin and propeller service #4427
Add service monitor for flyte admin and propeller service #4427
Conversation
Signed-off-by: vraiyani <[email protected]>
Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line:
|
@@ -0,0 +1,15 @@ | |||
{{- if and .Values.flytepropeller.enabled .Values.flytepropeller.service.enabled }} |
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.
Should this not be only enabled when serviceMonitor is enabled?
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.
You can still have a service without servicemonitor so there is no harm in creating just the service. This keeps it flexible to have the service for any other ports which may not be related to prometheus port.
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.
👍
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4427 +/- ##
=======================================
Coverage 59.81% 59.82%
=======================================
Files 632 632
Lines 53644 53644
=======================================
+ Hits 32089 32091 +2
+ Misses 19029 19028 -1
+ Partials 2526 2525 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This is particular to multi-cluster deployments correct? |
It is for a single cluster, when you have multiple pods with propeller manager. We could have a pod monitor as well, but for uniformity across services, I leaned towards creating a service and having a service monitor. |
Signed-off-by: vraiyani <[email protected]>
…v/flyte into vraiyani/flyte-service-monitor
Congrats on merging your first pull request! 🎉 |
Describe your changes
Service monitors are a common way to auto-discover service targets dynamically in Prometheus.
This change allows the creation of a service monitor for the admin service as well as the creation of a service and service monitor for the propeller.
Propeller service allows discovering multiple instances of propeller pods and exporting its metrics.
Admin service monitor and propeller service as well as its service monitor are disabled by default
Check all the applicable boxes
Setup Process
Screenshots
Note to reviewers
Related PRs