-
Notifications
You must be signed in to change notification settings - Fork 113
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
Added support for differing metrics path for Prometheus to Mentix #875
Conversation
Merge current upstream Reva
@@ -26,3 +26,7 @@ const ( | |||
ExporterIDWebAPI = "webapi" | |||
ExporterIDPrometheusFileSD = "prom_filesd" | |||
) | |||
|
|||
const ( | |||
PropertyMetricsPath = "metrics_path" |
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.
exported const PropertyMetricsPath should have comment (or a comment on this block) or be unexported
@@ -26,3 +26,7 @@ const ( | |||
ExporterIDWebAPI = "webapi" | |||
ExporterIDPrometheusFileSD = "prom_filesd" | |||
) | |||
|
|||
const ( | |||
PropertyMetricsPath = "metrics_path" |
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.
exported const PropertyMetricsPath should have comment (or a comment on this block) or be unexported
@@ -26,3 +26,7 @@ const ( | |||
ExporterIDWebAPI = "webapi" | |||
ExporterIDPrometheusFileSD = "prom_filesd" | |||
) | |||
|
|||
const ( | |||
PropertyMetricsPath = "metrics_path" |
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.
exported const PropertyMetricsPath should have comment (or a comment on this block) or be unexported
@Daniel-WWU-IT some hound lint comments above. |
It's just one actually, but it made it 3 times :D It's really just a super-unimportant comment missing, so I ignored that. This certainly isn't the only exported var/const/func that has no comment... |
This PR adds support for differing metrics path when exporting scrape targets to Prometheus via Mentix. In GOCDB, a property called METRICS_PATH can now be added to override the default /metrics endpoint. This allows us to pull metrics from targets like /api/metrics etc.