-
Notifications
You must be signed in to change notification settings - Fork 94
Config v2.0 #1351
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
MrAlias
wants to merge
28
commits into
open-telemetry:main
Choose a base branch
from
MrAlias:config-v2
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
Config v2.0 #1351
Changes from 22 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
44ffdd3
WIP on OBI config version 2.0
MrAlias 67a67cb
Remove spec from principles
MrAlias 3e2fb1d
Remove section header in principles.md
MrAlias 3aab1f0
Refactor v2 conf draft
MrAlias 0430f7a
Rename redefinition-draft.md to config-v2.md
MrAlias 2461625
Split migration into own doc
MrAlias 62ca25b
Shuffle docs layout
MrAlias 1fac13b
Update OBI jsonschema to OTel best-practices
MrAlias 394a1eb
Add a schema validation tool
MrAlias 6b17e81
Fix lint
MrAlias 4781b9c
Fix lint
MrAlias 09a6e3e
Move provider/exporter conf to operations
MrAlias dc74084
Rename startup_dump to format in logging
MrAlias 9ef79b7
Tighten up operations schema
MrAlias 9c6310b
Stricter selection match schema
MrAlias c575a5d
Move log trace annotation to new correlation prop
MrAlias 2b02566
Move lang injection conf to own `runtimes` section
MrAlias dd28d69
Update v2 conf overview doc
MrAlias a670098
Add license headers
MrAlias b3f7605
Doc extension of OTel conf spec
MrAlias 45a686a
Merge branch 'main' into config-v2
MrAlias a8e3d9f
Fix bare link lint issue
MrAlias a9bb18c
Update devdocs/config/version-2.0/migration.md
MrAlias 6db190d
Apply suggestions from code review
MrAlias 8c77956
Add custom sampler
MrAlias 7bffb4c
Address per-workload override and k8s enricher feedback
MrAlias 7d055ad
Restructure extensions.obi into capture + daemon + standalone sections
MrAlias 842e765
Document design decisions and decision processes for v2 config redesign
MrAlias 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
371 changes: 371 additions & 0 deletions
371
devdocs/config/version-2.0/.verify/default-config-current.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,371 @@ | ||
| ebpf: | ||
| bpf_debug: false | ||
| wakeup_len: 500 | ||
| batch_length: 100 | ||
| batch_timeout: 1s | ||
| track_request_headers: false | ||
| http_request_timeout: 0s | ||
| context_propagation: disabled | ||
| override_bpfloop_enabled: false | ||
| traffic_control_backend: auto | ||
| disable_black_box_cp: false | ||
| high_request_volume: false | ||
| heuristic_sql_detect: false | ||
| instrument_cuda: auto | ||
| protocol_debug_print: false | ||
| redis_db_cache: | ||
| enabled: false | ||
| max_size: 1000 | ||
| buffer_sizes: | ||
| http: 0 | ||
| mysql: 0 | ||
| kafka: 0 | ||
| postgres: 0 | ||
| mysql_prepared_statements_cache_size: 1024 | ||
| postgres_prepared_statements_cache_size: 1024 | ||
| kafka_topic_uuid_cache_size: 1024 | ||
| mongo_requests_cache_size: 1024 | ||
| payload_extraction: | ||
| http: | ||
| graphql: | ||
| enabled: false | ||
| elasticsearch: | ||
| enabled: false | ||
| aws: | ||
| enabled: false | ||
| sqlpp: | ||
| enabled: false | ||
| endpoint_patterns: | ||
| - /query/service | ||
| max_transaction_time: 5m0s | ||
| dns_request_timeout: 5s | ||
| log_enricher: | ||
| services: [] | ||
| cache_ttl: 30m0s | ||
| cache_size: 128 | ||
| async_writer_workers: 8 | ||
| async_writer_channel_len: 500 | ||
| couchbase_db_cache_size: 1024 | ||
| bpf_fs_path: /sys/fs/bpf/ | ||
| network: | ||
| enable: false | ||
| source: socket_filter | ||
| agent_ip: "" | ||
| agent_ip_iface: external | ||
| agent_ip_type: any | ||
| interfaces: [] | ||
| exclude_interfaces: | ||
| - lo | ||
| protocols: [] | ||
| exclude_protocols: [] | ||
| cache_max_flows: 5000 | ||
| cache_active_timeout: 5s | ||
| deduper: first_come | ||
| deduper_fc_ttl: 0s | ||
| direction: both | ||
| sampling: 0 | ||
| listen_interfaces: watch | ||
| listen_poll_period: 10s | ||
| geo_ip: | ||
| ipinfo: | ||
| path: "" | ||
| maxmind: | ||
| country_path: "" | ||
| asn_path: "" | ||
| cache_len: 512 | ||
| cache_expiry: 1h0m0s | ||
| reverse_dns: | ||
| type: none | ||
| cache_len: 256 | ||
| cache_expiry: 1h0m0s | ||
| print_flows: false | ||
| cidrs: [] | ||
| filter: | ||
| application: {} | ||
| network: {} | ||
| attributes: | ||
| kubernetes: | ||
| enable: autodetect | ||
| cluster_name: "" | ||
| kubeconfig_path: "" | ||
| informers_sync_timeout: 30s | ||
| informers_resync_period: 30m0s | ||
| drop_external: false | ||
| disable_informers: [] | ||
| meta_cache_address: "" | ||
| meta_restrict_local_node: false | ||
| meta_source_labels: | ||
| service_name: "" | ||
| service_namespace: "" | ||
| resource_labels: | ||
| service.name: | ||
| - app.kubernetes.io/name | ||
| service.namespace: | ||
| - app.kubernetes.io/part-of | ||
| service.version: | ||
| - app.kubernetes.io/version | ||
| service_name_template: "" | ||
| instance_id: | ||
| dns: true | ||
| override_hostname: "" | ||
| select: {} | ||
| host_id: | ||
| override: "" | ||
| extra_group_attributes: {} | ||
| rename_unresolved_hosts: unresolved | ||
| rename_unresolved_hosts_outgoing: outgoing | ||
| rename_unresolved_hosts_incoming: incoming | ||
| metric_span_names_limit: 100 | ||
| routes: | ||
| unmatched: heuristic | ||
| patterns: [] | ||
| ignored_patterns: [] | ||
| ignore_mode: "" | ||
| wildcard_char: '*' | ||
| max_path_segment_cardinality: 10 | ||
| name_resolver: | ||
| sources: | ||
| - k8s | ||
| cache_len: 1024 | ||
| cache_expiry: 5m0s | ||
| otel_metrics_export: | ||
| allow_service_graph_self_references: false | ||
| buckets: | ||
| duration_histogram: | ||
| - 0 | ||
| - 0.005 | ||
| - 0.01 | ||
| - 0.025 | ||
| - 0.05 | ||
| - 0.075 | ||
| - 0.1 | ||
| - 0.25 | ||
| - 0.5 | ||
| - 0.75 | ||
| - 1 | ||
| - 2.5 | ||
| - 5 | ||
| - 7.5 | ||
| - 10 | ||
| request_size_histogram: | ||
| - 0 | ||
| - 32 | ||
| - 64 | ||
| - 128 | ||
| - 256 | ||
| - 512 | ||
| - 1024 | ||
| - 2048 | ||
| - 4096 | ||
| - 8192 | ||
| response_size_histogram: | ||
| - 0 | ||
| - 32 | ||
| - 64 | ||
| - 128 | ||
| - 256 | ||
| - 512 | ||
| - 1024 | ||
| - 2048 | ||
| - 4096 | ||
| - 8192 | ||
| endpoint: '***' | ||
| extra_span_resource_attributes: [] | ||
| features: 0 | ||
| histogram_aggregation: explicit_bucket_histogram | ||
| insecure_skip_verify: false | ||
| instrumentations: | ||
| - '*' | ||
| interval: 0s | ||
| otel_sdk_log_level: "" | ||
| protocol: "" | ||
| reporters_cache_len: 256 | ||
| ttl: 5m0s | ||
| otel_traces_export: | ||
| backoff_initial_interval: 0s | ||
| backoff_max_elapsed_time: 0s | ||
| backoff_max_interval: 0s | ||
| batch_timeout: 15s | ||
| endpoint: '***' | ||
| insecure_skip_verify: false | ||
| instrumentations: | ||
| - http | ||
| - grpc | ||
| - sql | ||
| - redis | ||
| - kafka | ||
| - mqtt | ||
| - mongo | ||
| - couchbase | ||
| max_queue_size: 4096 | ||
| otel_sdk_log_level: "" | ||
| protocol: "" | ||
| reporters_cache_len: 256 | ||
| sampler: | ||
| name: "" | ||
| arg: "" | ||
| prometheus_export: | ||
| port: 0 | ||
| path: /metrics | ||
| disable_build_info: false | ||
| features: 0 | ||
| instrumentations: | ||
| - '*' | ||
| buckets: | ||
| duration_histogram: | ||
| - 0 | ||
| - 0.005 | ||
| - 0.01 | ||
| - 0.025 | ||
| - 0.05 | ||
| - 0.075 | ||
| - 0.1 | ||
| - 0.25 | ||
| - 0.5 | ||
| - 0.75 | ||
| - 1 | ||
| - 2.5 | ||
| - 5 | ||
| - 7.5 | ||
| - 10 | ||
| request_size_histogram: | ||
| - 0 | ||
| - 32 | ||
| - 64 | ||
| - 128 | ||
| - 256 | ||
| - 512 | ||
| - 1024 | ||
| - 2048 | ||
| - 4096 | ||
| - 8192 | ||
| response_size_histogram: | ||
| - 0 | ||
| - 32 | ||
| - 64 | ||
| - 128 | ||
| - 256 | ||
| - 512 | ||
| - 1024 | ||
| - 2048 | ||
| - 4096 | ||
| - 8192 | ||
| ttl: 5m0s | ||
| service_cache_size: 10000 | ||
| allow_service_graph_self_references: false | ||
| extra_resource_attributes: [] | ||
| extra_span_resource_attributes: [] | ||
| trace_printer: disabled | ||
| executable_path: "" | ||
| autotargetexe: "" | ||
| open_port: "" | ||
| autotargetlanguage: "" | ||
| target_pids: "" | ||
| service_name: "" | ||
| service_namespace: "" | ||
| metrics: | ||
| features: 8 | ||
| discovery: | ||
| services: [] | ||
| exclude_services: [] | ||
| default_exclude_services: | ||
|
MrAlias marked this conversation as resolved.
|
||
| - name: "" | ||
| namespace: "" | ||
| open_ports: "" | ||
| target_pids: [] | ||
| exe_path: (?:^|/)(obi$|otelcol[^/]*$) | ||
| languages: "" | ||
| exe_path_regexp: "" | ||
| k8s_pod_labels: {} | ||
| k8s_pod_annotations: {} | ||
| containers_only: false | ||
| exports: null | ||
| sampler: null | ||
| routes: null | ||
| metrics: | ||
| features: 0 | ||
| - name: "" | ||
| namespace: "" | ||
| open_ports: "" | ||
| target_pids: [] | ||
| exe_path: "" | ||
| languages: "" | ||
| exe_path_regexp: "" | ||
| k8s_pod_labels: {} | ||
| k8s_pod_annotations: {} | ||
| containers_only: false | ||
| exports: null | ||
| sampler: null | ||
| routes: null | ||
| metrics: | ||
| features: 0 | ||
| k8s_namespace: ^kube-system$|^kube-node-lease$|^local-path-storage$|^cert-manager$|^monitoring$|^gke-connect$|^gke-gmp-system$|^gke-managed-cim$|^gke-managed-filestorecsi$|^gke-managed-metrics-server$|^gke-managed-system$|^gke-system$|^gke-managed-volumepopulator$|^gatekeeper-system | ||
| instrument: [] | ||
| exclude_instrument: [] | ||
| default_exclude_instrument: | ||
| - name: "" | ||
| namespace: "" | ||
| open_ports: "" | ||
| languages: "" | ||
| target_pids: [] | ||
| exe_path: '{*/obi,obi,*otelcol,*otelcol-contrib,*otelcol-contrib[!/]*}' | ||
| k8s_pod_labels: {} | ||
| k8s_pod_annotations: {} | ||
| containers_only: false | ||
| exports: null | ||
| sampler: null | ||
| routes: null | ||
| metrics: | ||
| features: 0 | ||
| - name: "" | ||
| namespace: "" | ||
| open_ports: "" | ||
| languages: "" | ||
| target_pids: [] | ||
| exe_path: "" | ||
| k8s_pod_labels: {} | ||
| k8s_pod_annotations: {} | ||
| containers_only: false | ||
| exports: null | ||
| sampler: null | ||
| routes: null | ||
| metrics: | ||
| features: 0 | ||
| k8s_namespace: '{kube-system,kube-node-lease,local-path-storage,cert-manager,monitoring,gke-connect,gke-gmp-system,gke-managed-cim,gke-managed-filestorecsi,gke-managed-metrics-server,gke-managed-system,gke-system,gke-managed-volumepopulator,gatekeeper-system}' | ||
| poll_interval: 0s | ||
| skip_go_specific_tracers: false | ||
| bpf_pid_filter_off: false | ||
| exclude_otel_instrumented_services: true | ||
| default_otlp_grpc_port: 4317 | ||
| min_process_age: 5s | ||
| exclude_otel_instrumented_services_span_metrics: false | ||
| route_harvester_timeout: 10s | ||
| disabled_route_harvesters: [] | ||
| route_harvester_advanced: | ||
| java_harvest_delay: 1m0s | ||
| excluded_linux_system_paths: | ||
| - /lib/systemd/ | ||
| - /usr/lib/systemd/ | ||
| - /usr/libexec/ | ||
| - /sbin/ | ||
| - /usr/sbin/ | ||
| log_level: INFO | ||
| shutdown_timeout: 10s | ||
| enforce_sys_caps: false | ||
| channel_buffer_len: 50 | ||
| channel_send_timeout: 1m0s | ||
| channel_send_timeout_panic: false | ||
| profile_port: 0 | ||
| internal_metrics: | ||
| prometheus: | ||
| path: /internal/metrics | ||
| exporter: disabled | ||
| bpf_metric_scrape_interval: 15s | ||
| log_config: "" | ||
| nodejs: | ||
| enabled: true | ||
| javaagent: | ||
| enabled: true | ||
| debug: false | ||
| debug_instrumentation: false | ||
| attach_timeout: 10s | ||
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,24 @@ | ||
| // Copyright The OpenTelemetry Authors | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| package main | ||
|
|
||
| import ( | ||
| "log" | ||
| "os" | ||
|
|
||
| "gopkg.in/yaml.v3" | ||
|
|
||
| "go.opentelemetry.io/obi/pkg/obi" | ||
| ) | ||
|
|
||
| func main() { | ||
| encoder := yaml.NewEncoder(os.Stdout) | ||
|
|
||
| if err := encoder.Encode(obi.DefaultConfig); err != nil { | ||
| log.Fatalf("Error encoding YAML to stdout: %v", err) | ||
| } | ||
| if err := encoder.Close(); err != nil { | ||
| log.Fatalf("Error closing encoder: %v", err) | ||
| } | ||
| } |
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.