-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Remove dynamic templates from otel-plugin that set index:false
#113409
Changes from 1 commit
6f4ed6d
c2fae90
ee89dde
c49f374
1c90154
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,46 @@ template: | |
type: keyword | ||
time_series_dimension: true | ||
ignore_above: 1024 | ||
dynamic_templates: | ||
- histogram: | ||
mapping: | ||
type: histogram | ||
ignore_malformed: true | ||
- counter_long: | ||
mapping: | ||
type: long | ||
time_series_metric: counter | ||
ignore_malformed: true | ||
- gauge_long: | ||
mapping: | ||
type: long | ||
time_series_metric: gauge | ||
ignore_malformed: true | ||
- counter_double: | ||
mapping: | ||
type: double | ||
time_series_metric: counter | ||
ignore_malformed: true | ||
- gauge_double: | ||
mapping: | ||
type: double | ||
time_series_metric: gauge | ||
ignore_malformed: true | ||
- summary_gauge: | ||
mapping: | ||
type: aggregate_metric_double | ||
time_series_metric: gauge | ||
ignore_malformed: true | ||
- summary_counter: | ||
mapping: | ||
type: aggregate_metric_double | ||
time_series_metric: counter | ||
ignore_malformed: true | ||
- histogram_metrics: | ||
mapping: | ||
type: histogram | ||
- summary_metrics: | ||
mapping: | ||
type: aggregate_metric_double | ||
metrics: sum, value_count | ||
default_metric: value_count | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These 2 are duplicates from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/elasticsearchexporter/model.go, I could not find usage of the following dynamic templates. Thus, I think they can be removed.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will they be useful in any scenarios? If there is a chance that we need it, might be useful to keep these if a future version of es exporter need to work with 8.16 ES. Just asking if see how likely we need them. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After looking into this, I'd say it's safe to remove all 3.
So with that, I don't think we'd want to use those dynamic templates for OTel later. -> I'd be for just removing. Any thoughts? Maybe something I'm overlooking? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we take the opportunity to make this one's name consistent with the others?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me. We'd then just call it
summary
, right? This means that there will need to be changes in the ES exporter, though.cc @carsonip
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I was thinking
summary
too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed it to
summary
. @carsonip I'll wait for you to acknowledge this before I push merge, just to make sure we don't miss the change in ES exporter.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if rolling out that change is easier by temporarily adding both
summary
andsummary_metrics
in this PR, then making the change in the ES exporter, then removing thesummary_metrics
dynamic template in another ES PR.That way, there's never a situation where ES exporter@main is incompatible with ES@main, without having to coordinate to merge the ES and ES exporter PRs at the same time (which is somewhat unpredictable for the ES exporter).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack. Will rename it to
summary
.I'm not too concerned. e2e poc pins ES version and es exporter version anyway. The mains don't have to be compatible at every point of time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR: open-telemetry/opentelemetry-collector-contrib#35424