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

[exporter/googlemanagedprometheus] Add target and scope info metrics by default #24372

Merged
merged 3 commits into from
Jul 19, 2023

Conversation

damemi
Copy link
Contributor

@damemi damemi commented Jul 18, 2023

Description:
This enabled target_info and otel_scope_info metrics by default in the GMP exporter, to be compatible with the prometheus spec.

Link to tracking Issue: GoogleCloudPlatform/opentelemetry-operations-go#543

Testing: Downstream unit + integration tests

Documentation: Downstream + specification

@@ -54,6 +56,11 @@ func (c *GMPConfig) toCollectorConfig() collector.Config {
cfg.ProjectID = c.ProjectID
cfg.UserAgent = c.UserAgent
cfg.MetricConfig.ClientConfig = c.MetricConfig.ClientConfig
// add target_info and scope_info metrics
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup, added and enabled by default

@damemi damemi force-pushed the gmp-exporter-add-target-metrics branch from c9da95b to a557564 Compare July 18, 2023 18:29
@dashpole
Copy link
Contributor

googlemanagedprometheusexporter/config.go:11: File is not gci-ed with --skip-generated -s standard -s default -s prefix(github.com/open-telemetry/opentelemetry-collector-contrib) (gci)

I think you need to run make gofmt in the GMP directory

@damemi damemi force-pushed the gmp-exporter-add-target-metrics branch from 0563082 to 9d6a749 Compare July 19, 2023 13:45
@damemi damemi force-pushed the gmp-exporter-add-target-metrics branch from 34d00f4 to ecd5e03 Compare July 19, 2023 14:09
@songy23 songy23 added the ready to merge Code review completed; ready to merge by maintainers label Jul 19, 2023
@codeboten codeboten merged commit c7bd50c into open-telemetry:main Jul 19, 2023
93 checks passed
@github-actions github-actions bot added this to the next release milestone Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter/googlemanagedprometheus Google Managed Prometheus exporter ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants