Skip to content

Conversation

@braydonk
Copy link
Collaborator

Fixes #51

This PR annotates our config with comments explaining what each of the components do. This is so a user can understand why we have configured each element, and understand the implications of removing a given component.

This PR annotates our config with comments explaining what each of the
components do. This is so a user can understand why we have configured
each element, and understand the implications of removing a given
component.
@braydonk braydonk requested a review from a team as a code owner March 20, 2025 22:38
@braydonk
Copy link
Collaborator Author

braydonk commented Mar 20, 2025

CC @mtabasko @lyanco

- otelcol_googlecloudmonitoring_point_count

# The batch processor is in place to regulate both the number of requests
# being made and the size of those requests.
Copy link

Choose a reason for hiding this comment

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

Cloud Monitoring recommends using a batch size of 200, which is the maximum batch size allowed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in b4875a4

# The resourcedetection processor is configured to detect GCP resources.
# Resource attributes that represent the GCP resource the collector is
# running on will be attached to all telemetry that goes through this
# processor.
Copy link

Choose a reason for hiding this comment

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

Resource detection is required, otherwise you will write time series from many resources into the same time series in GCP and will get a lot of errors.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in 27ae370

user_agent: Google-Cloud-OTLP manifests:0.2.0 OpenTelemetry Collector Built By Google/0.121.0 (linux/amd64)

# The googlemanagedprometheus exporter will send metrics to
# Google Managed Service for Prometheus.
Copy link

Choose a reason for hiding this comment

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

Google Cloud Managed Service for Prometheus. Unless you have a specific reason to do otherwise, we strongly recommend you send OTel metric data with the googlemanagedprometheus exporter to get the best query experience with the lowest cost.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in 27ae370

#
# Docs:
# https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/googlemanagedprometheusexporter
googlemanagedprometheus:
Copy link

Choose a reason for hiding this comment

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

does this need the IntToDouble flag somewhere

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is turned on as part of the Google-Built OpenTelemetry Collector image's ENTRYPOINT. The way these manifests interact with the container as well as all other documented sources, the flag will always be on.

Copy link
Contributor

@psx95 psx95 Mar 22, 2025

Choose a reason for hiding this comment

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

Nit: Should the information about intToDouble flag be mentioned here to help guide in case of issues due to that flag ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in 9099496

Copy link

@aabmass aabmass left a comment

Choose a reason for hiding this comment

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

@psx95 maybe can take a second look

Copy link
Contributor

Choose a reason for hiding this comment

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

This might require make generate to have these changes reflect into the manifests in k8s/ directory.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done in 9099496

#
# Docs:
# https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/googlemanagedprometheusexporter
googlemanagedprometheus:
Copy link
Contributor

@psx95 psx95 Mar 22, 2025

Choose a reason for hiding this comment

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

Nit: Should the information about intToDouble flag be mentioned here to help guide in case of issues due to that flag ?

@braydonk
Copy link
Collaborator Author

I'm not sure why the fixture test failed. The failure indicates that something went wrong with spinning up the cluster, but I'm not sure how to navigate these test failures. Is there somewhere else deeper I'd need to look for those failures?
@avilevy18 might know better since he understands the e2e test framework better than I do

@psx95
Copy link
Contributor

psx95 commented Mar 31, 2025

I'm not sure why the fixture test failed. The failure indicates that something went wrong with spinning up the cluster, but I'm not sure how to navigate these test failures. Is there somewhere else deeper I'd need to look for those failures? @avilevy18 might know better since he understands the e2e test framework better than I do

This might be because the formatting of the generated 1_configmap.yaml got messed up, I think you should checkout those changes and try running make generate again on a clean directory. The test should pass, once the formatting gets fixed.

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.

Annotate otlp-k8s-ingest/config/collector.yaml with comments

4 participants