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

Update otelopscol Submodule #1485

Merged
merged 7 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions apps/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ func (r MetricsReceiverMySql) Pipelines(_ context.Context) []otel.ReceiverPipeli
"mysql.index.io.wait.time": map[string]interface{}{
"enabled": false,
},
"mysql.locked_connects": map[string]interface{}{
"enabled": false,
},
"mysql.mysqlx_connections": map[string]interface{}{
"enabled": false,
},
Expand Down
13 changes: 7 additions & 6 deletions confgenerator/confgenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ func googleCloudExporter(userAgent string, instrumentationLabels bool) otel.Comp
return otel.Component{
Type: "googlecloud",
Config: map[string]interface{}{
// (b/233372619) Due to a constraint in the Monarch API for retrying successful data points,
// leaving this enabled is causing adverse effects for some customers. Google OpenTelemetry team
// recommends disabling this.
"retry_on_failure": map[string]interface{}{
"enabled": false,
},
"user_agent": userAgent,
"metric": map[string]interface{}{
// Receivers are responsible for sending fully-qualified metric names.
Expand Down Expand Up @@ -68,6 +62,8 @@ func googleManagedPrometheusExporter(userAgent string) otel.Component {
// (b/233372619) Due to a constraint in the Monarch API for retrying successful data points,
// leaving this enabled is causing adverse effects for some customers. Google OpenTelemetry team
// recommends disabling this.
// (b/308675258) Need to update the `googlemanagedprometheus` exporter in otelopscol to deprecate this
// option
"retry_on_failure": map[string]interface{}{
"enabled": false,
},
Expand All @@ -81,6 +77,11 @@ func googleManagedPrometheusExporter(userAgent string) otel.Component {
// OTLP Gauge metrics ingested by the Ops Agent, that have this key will also be treated as untyped prometheus metrics
// if it is being exported to GMP. As such, this knob can be set to true.
"untyped_double_export": true,
// The exporter has the config option addMetricSuffixes with default value true. It will add Prometheus
// style suffixes to metric names, e.g., `_total` for a counter; set to false to collect metrics as is
"metric": map[string]interface{}{
"add_metric_suffixes": false,
},
},
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
2 changes: 0 additions & 2 deletions confgenerator/testdata/goldens/builtin/golden/linux/otel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlecloud/otel:
metric:
Expand All @@ -16,10 +14,10 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlemanagedprometheus:
metric:
add_metric_suffixes: false
retry_on_failure:
enabled: false
untyped_double_export: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlecloud/otel:
metric:
Expand All @@ -16,10 +14,10 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlemanagedprometheus:
metric:
add_metric_suffixes: false
retry_on_failure:
enabled: false
untyped_double_export: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
googlecloud/otel:
metric:
Expand All @@ -16,10 +14,10 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
googlemanagedprometheus:
metric:
add_metric_suffixes: false
retry_on_failure:
enabled: false
untyped_double_export: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
googlecloud/otel:
metric:
Expand All @@ -16,10 +14,10 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
googlemanagedprometheus:
metric:
add_metric_suffixes: false
retry_on_failure:
enabled: false
untyped_double_export: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlecloud/otel:
metric:
Expand All @@ -16,8 +14,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlecloud/otel:
metric:
Expand All @@ -16,8 +14,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
googlecloud/otel:
metric:
Expand All @@ -16,8 +14,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
googlecloud/otel:
metric:
Expand All @@ -16,8 +14,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=windows;ShortName=win_platform;ShortVersion=win_platform_version)
processors:
agentmetrics/hostmetrics_0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlecloud/otel:
metric:
Expand All @@ -16,10 +14,10 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlemanagedprometheus:
metric:
add_metric_suffixes: false
retry_on_failure:
enabled: false
untyped_double_export: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlecloud/otel:
metric:
Expand All @@ -16,10 +14,10 @@ exporters:
resource_filters: []
service_resource_labels: false
skip_create_descriptor: true
retry_on_failure:
enabled: false
user_agent: Google-Cloud-Ops-Agent-Metrics/latest (BuildDistro=build_distro;Platform=linux;ShortName=linux_platform;ShortVersion=linux_platform_version)
googlemanagedprometheus:
metric:
add_metric_suffixes: false
retry_on_failure:
enabled: false
untyped_double_export: true
Expand Down
Loading
Loading