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 a version tag to the collector's own telemetry metrics #3960

Closed
wants to merge 4 commits into from
Closed

Added a version tag to the collector's own telemetry metrics #3960

wants to merge 4 commits into from

Conversation

emaderer
Copy link
Contributor

@emaderer emaderer commented Sep 1, 2021

Added a version tag to the collector's own telemetry metrics because today when looking at those metrics there is no way to know the collector's version, this can also help to know what collector versions are running out there.

@bogdandrutu
Copy link
Member

@emaderer please give me some details about why this is needed? Also in OpenCensus there is a concept of constant labels that you can use :)

@bogdandrutu
Copy link
Member

Here is the API you need to use https://github.com/census-ecosystem/opencensus-go-exporter-prometheus/blob/master/prometheus.go#L50

@emaderer emaderer changed the title add collector_version tag to the obsreport metrics Added a version tag to the collector's own telemetry metrics Sep 2, 2021
@emaderer
Copy link
Contributor Author

emaderer commented Sep 2, 2021

@emaderer please give me some details about why this is needed? Also in OpenCensus there is a concept of constant labels that you can use :)

Added description, thanks 👍

@emaderer emaderer marked this pull request as ready for review September 2, 2021 15:55
@emaderer emaderer requested review from a team and bogdandrutu September 2, 2021 15:55
Comment on lines +54 to 58
addCollectorVersionPtr = flags.Bool(
"add-collector-version",
true,
"Flag to control the addition of 'service.version' to the collector metrics.")
}
Copy link
Member

Choose a reason for hiding this comment

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

Please do not add more flags, see #3957 and #3843

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@emaderer emaderer closed this Sep 16, 2021
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