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

PMM-7 add missing labels for pg exporter #75

Merged
merged 3 commits into from
Sep 15, 2022
Merged

Conversation

tshcherban
Copy link

@tshcherban tshcherban commented Sep 13, 2022

Submodules#2766

PR adds missing label collector=exporter and metrics to resolutions-exporters in postgres

@tshcherban tshcherban temporarily deployed to CI September 13, 2022 09:10 Inactive
@tshcherban tshcherban temporarily deployed to CI September 13, 2022 09:10 Inactive
@tshcherban tshcherban temporarily deployed to CI September 13, 2022 09:10 Inactive
@tshcherban tshcherban temporarily deployed to CI September 13, 2022 09:10 Inactive
@tshcherban tshcherban temporarily deployed to CI September 13, 2022 09:10 Inactive
@tshcherban tshcherban temporarily deployed to CI September 15, 2022 11:26 Inactive
@tshcherban tshcherban temporarily deployed to CI September 15, 2022 11:26 Inactive
@tshcherban tshcherban temporarily deployed to CI September 15, 2022 11:26 Inactive
@tshcherban tshcherban temporarily deployed to CI September 15, 2022 11:26 Inactive
@tshcherban tshcherban temporarily deployed to CI September 15, 2022 11:26 Inactive
@tshcherban tshcherban marked this pull request as ready for review September 15, 2022 11:47
@tshcherban tshcherban requested a review from a team as a code owner September 15, 2022 11:47
@@ -525,6 +542,8 @@ func WithConstantLabels(s string) ExporterOpt {
e.constantLabels = parseConstLabels(s)
if e.collectorName != "" {
e.constantLabels["collector"] = e.collectorName
} else {
e.constantLabels["collector"] = "exporter"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default label for compatibility with our old exporter

@tshcherban tshcherban requested a review from denisok September 15, 2022 11:48
@tshcherban tshcherban merged commit d5e6046 into main Sep 15, 2022
@tshcherban tshcherban deleted the PMM-7-pg-missing-labels branch September 15, 2022 12:58
ritbl pushed a commit to heniek/postgres_exporter that referenced this pull request Mar 19, 2023
PMM-10717 Add bgwriter collector and missing label
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.

3 participants