-
Notifications
You must be signed in to change notification settings - Fork 854
feat(telemetry): add prefix support for opentelemetry metrics #9720
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
Open
gray-oni
wants to merge
10
commits into
envoyproxy:main
Choose a base branch
from
gray-oni:feat/issue-6859
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
114c302
feat(telemetry): add prefix support for opentelemetry metrics
a918a24
put prefix value in quotes
4c909bc
add release note
53fd26e
add e2e test
af7fc2f
regenerate manifests
9044fc6
fix linter
c1dd320
resolve & merge main
5f487a8
e2e test adjustments
3b7fd17
Merge branch 'main' into feat/issue-6859
zirain 30810b9
Merge branch 'main' into feat/issue-6859
zirain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
146 changes: 146 additions & 0 deletions
146
internal/xds/bootstrap/testdata/render/otel-metrics-prefix.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,146 @@ | ||
| admin: | ||
| access_log: | ||
| - name: envoy.access_loggers.file | ||
| typed_config: | ||
| "@type": type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog | ||
| path: /dev/null | ||
| address: | ||
| socket_address: | ||
| address: 127.0.0.1 | ||
| port_value: 19000 | ||
| cluster_manager: | ||
| local_cluster_name: local_cluster | ||
| node: | ||
| locality: | ||
| zone: $(ENVOY_SERVICE_ZONE) | ||
| deferredStatOptions: | ||
| enableDeferredCreationStats: true | ||
| stats_config: | ||
| use_all_default_tags: true | ||
| stats_tags: | ||
| - regex: \.zone(\.(([^\.]+)\.)) | ||
| tag_name: from_zone | ||
| - regex: \.zone\.[^\.]+\.(([^\.]+)\.) | ||
| tag_name: to_zone | ||
| - regex: "^cluster(\\..+\\.(.+))\\.total_match_count$" | ||
| tag_name: socket_match_name | ||
| - regex: "circuit_breakers\\.((.+?)\\.).+" | ||
| tag_name: priority | ||
| layered_runtime: | ||
| layers: | ||
| - name: global_config | ||
| static_layer: | ||
| envoy.reloadable_features.oauth2_legacy_cbc_decrypt_compat: false | ||
| envoy.reloadable_features.oauth2_use_gcm_encryption: true | ||
| re2.max_program_size.error_level: 4294967295 | ||
| re2.max_program_size.warn_level: 1000 | ||
| dynamic_resources: | ||
| ads_config: | ||
| api_type: DELTA_GRPC | ||
| transport_api_version: V3 | ||
| grpc_services: | ||
| - envoy_grpc: | ||
| cluster_name: xds_cluster | ||
| set_node_on_first_message_only: true | ||
| lds_config: | ||
| ads: {} | ||
| initial_fetch_timeout: 0s | ||
| resource_api_version: V3 | ||
| cds_config: | ||
| ads: {} | ||
| initial_fetch_timeout: 0s | ||
| resource_api_version: V3 | ||
| stats_sinks: | ||
| - name: "envoy.stat_sinks.open_telemetry" | ||
| typed_config: | ||
| "@type": type.googleapis.com/envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig | ||
| grpc_service: | ||
| envoy_grpc: | ||
| cluster_name: otel_metric_sink_0 | ||
| report_histograms_as_deltas: true | ||
| prefix: 'envoy' | ||
| static_resources: | ||
| clusters: | ||
| - name: otel_metric_sink_0 | ||
| connect_timeout: 0.250s | ||
| type: STRICT_DNS | ||
| typed_extension_protocol_options: | ||
| envoy.extensions.upstreams.http.v3.HttpProtocolOptions: | ||
| "@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions" | ||
| explicit_http_config: | ||
| http2_protocol_options: {} | ||
| lb_policy: ROUND_ROBIN | ||
| load_assignment: | ||
| cluster_name: otel_metric_sink_0 | ||
| endpoints: | ||
| - lb_endpoints: | ||
| - endpoint: | ||
| address: | ||
| socket_address: | ||
| address: otel-collector.monitoring.svc | ||
| port_value: 4317 | ||
| - connect_timeout: 10s | ||
| eds_cluster_config: | ||
| eds_config: | ||
| ads: {} | ||
| resource_api_version: 'V3' | ||
| service_name: local_cluster | ||
| load_balancing_policy: | ||
| policies: | ||
| - typed_extension_config: | ||
| name: 'envoy.load_balancing_policies.least_request' | ||
| typed_config: | ||
| '@type': 'type.googleapis.com/envoy.extensions.load_balancing_policies.least_request.v3.LeastRequest' | ||
| locality_lb_config: | ||
| zone_aware_lb_config: | ||
| min_cluster_size: '1' | ||
| name: local_cluster | ||
| type: EDS | ||
| - connect_timeout: 10s | ||
| load_assignment: | ||
| cluster_name: xds_cluster | ||
| endpoints: | ||
| - load_balancing_weight: 1 | ||
| lb_endpoints: | ||
| - load_balancing_weight: 1 | ||
| endpoint: | ||
| address: | ||
| socket_address: | ||
| address: envoy-gateway | ||
| port_value: 18000 | ||
| typed_extension_protocol_options: | ||
| envoy.extensions.upstreams.http.v3.HttpProtocolOptions: | ||
| "@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions" | ||
| explicit_http_config: | ||
| http2_protocol_options: | ||
| connection_keepalive: | ||
| interval: 30s | ||
| timeout: 5s | ||
| name: xds_cluster | ||
| type: STRICT_DNS | ||
| transport_socket: | ||
| name: envoy.transport_sockets.tls | ||
| typed_config: | ||
| "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext | ||
| common_tls_context: | ||
| tls_params: | ||
| tls_maximum_protocol_version: TLSv1_3 | ||
| tls_certificate_sds_secret_configs: | ||
| - name: xds_certificate | ||
| sds_config: | ||
| path_config_source: | ||
| path: /sds/xds-certificate.json | ||
| resource_api_version: V3 | ||
| validation_context_sds_secret_config: | ||
| name: xds_trusted_ca | ||
| sds_config: | ||
| path_config_source: | ||
| path: /sds/xds-trusted-ca.json | ||
| resource_api_version: V3 | ||
| overload_manager: | ||
| refresh_interval: 0.25s | ||
| resource_monitors: | ||
| - name: "envoy.resource_monitors.global_downstream_max_connections" | ||
| typed_config: | ||
| "@type": type.googleapis.com/envoy.extensions.resource_monitors.downstream_connections.v3.DownstreamConnectionsConfig | ||
| max_active_downstream_connections: 50000 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.