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

Added support for differing metrics path for Prometheus to Mentix #875

Merged
merged 4 commits into from
Jun 24, 2020
Merged

Added support for differing metrics path for Prometheus to Mentix #875

merged 4 commits into from
Jun 24, 2020

Conversation

Daniel-WWU-IT
Copy link
Contributor

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.

@@ -26,3 +26,7 @@ const (
ExporterIDWebAPI = "webapi"
ExporterIDPrometheusFileSD = "prom_filesd"
)

const (
PropertyMetricsPath = "metrics_path"
Copy link

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"
Copy link

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"
Copy link

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

@labkode
Copy link
Member

labkode commented Jun 24, 2020

@Daniel-WWU-IT some hound lint comments above.

@Daniel-WWU-IT
Copy link
Contributor Author

Daniel-WWU-IT commented Jun 24, 2020

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...

@labkode labkode merged commit 26bb0e9 into cs3org:master Jun 24, 2020
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.

2 participants