-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
monitoring: set port for servicemonitor for ceph-exporter #12825
Conversation
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.
A couple suggestions:
- Add a commit prefix as described in the development guide, such as
monitoring:
. - The purpose of this change is to set the port name for the exporter, correct? Please describe the behavior change in the commit title or description. It's more important to say the behavior change in the commit message than to say what method it was in.
Thanks!
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.
@weirdwiz please look at Travis comments
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.
Tested locally and exporter runs fine. LGTM!
ceph-exporter's ServiceMonitor and Service CRD contain different port name, which results in no metrics being collected by prometheus. this commit makes GetCephMonitor configurable, which we use to set consistent port names in ServiceMonitor and Service for ceph-exporter. Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
28b1609
to
708dd29
Compare
monitoring: set port for servicemonitor for ceph-exporter (backport #12825)
ceph-exporter's ServiceMonitor and Service CRD contain different port
name, which results in no metrics being collected by prometheus.
this commit makes GetCephMonitor configurable, which we use to set
consistent port names in ServiceMonitor and Service for ceph-exporter.