From f4764a6724f6666a6a9d05058bc7aab22389e547 Mon Sep 17 00:00:00 2001 From: Jim Chen Date: Sat, 8 Jul 2023 15:50:14 +0800 Subject: [PATCH] Squashed commit of the following: (#13) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit 739e583efdc2f3c7cf1538aa2a310c428950b670 Author: Anthony Mirabella Date: Tue Jun 20 18:11:41 2023 -0400 [chore] Prepare release v0.80.0 (#23584) The following commands were run to prepare this release: - make chlog-update VERSION=v0.80.0 - sed -i.bak s/0.79.0/0.80.0/g versions.yaml - make multimod-prerelease - make multimod-sync Additionally, changes from https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/23583 were incorporated. --------- Signed-off-by: Anthony J Mirabella Co-authored-by: Alex Boten commit e988fca8490f94b46038dc1b9a24d881be2a9d3c Author: Alex Boten Date: Tue Jun 20 12:23:52 2023 -0700 [chore] update otel core (#23578) Signed-off-by: Alex Boten commit 42dbc6cd92a8f445143d60ce9b7d82d5311e1e11 Author: Mackenzie <63265430+mackjmr@users.noreply.github.com> Date: Tue Jun 20 19:51:21 2023 +0200 aerospikereceiver: Add missing units in metadata.yaml (#23572) Metric unit is required, see: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/cmd/mdatagen/metadata-schema.yaml#L72-L73. This PR adds the unit to metrics where this is missing: - aerospike.node.query.tracked commit 200778b2fdc0fe1cfee17a46a06594a35542adbe Author: Mackenzie <63265430+mackjmr@users.noreply.github.com> Date: Tue Jun 20 18:51:54 2023 +0200 [chore] [cmd/mdatagen] Remove unused (md *metadata) Unmarshal func (#23575) This func is not used. Because the receiver is the metadata struct, it would need to be called directly. This also tests field Name -- which does not exist anymore (replaced by Type). **Note:** Validation of Type will be done as part of #23424 commit b726aeed1ec7d5f58281fab558a3f08ac31ca183 Author: Mend Renovate Date: Tue Jun 20 18:49:27 2023 +0200 chore(deps): update github-actions deps to v3 (major) (#23567) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/download-artifact](https://togithub.com/actions/download-artifact) | action | major | `v2` -> `v3` | | [actions/upload-artifact](https://togithub.com/actions/upload-artifact) | action | major | `v2` -> `v3` | ---
actions/download-artifact [`v3`](https://togithub.com/actions/download-artifact/compare/v2...v3) [Compare Source](https://togithub.com/actions/download-artifact/compare/v2...v3)
actions/upload-artifact [Compare Source](https://togithub.com/actions/upload-artifact/compare/v2...v3)
--- 📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib). commit 9d38d84ff588ee85867242f68d9bc6e879320be2 Author: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com> Date: Tue Jun 20 12:13:20 2023 -0400 [testbed] Add compression end-to-end tests for SAPM (#23455) - Added gzip and zstd tests to SAPM trace test. - Modified GenerateTraces to generate more variable data to make sure it is a more fair comparison when compression is enabled (otherwise it was compressing too well and was not representative of real-world workloads). This makes easier to see the impact of added zstd compression done in https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/23257 commit 9a5f72317d1e2af34c69eae68a0b9836451958d7 Author: rubenruizdegauna Date: Tue Jun 20 07:42:56 2023 +0200 [receiver/hostmetrics] send process.cpu.utilization if enabled (#23451) Currently `process.cpu.utilization` is not sent when it is enabled if `process.cpu.time` is disabled. It should be sent independently of `process.cpu.time` commit ad2e101760c394bfd4e841fb717308ff24ebede4 Author: Mackenzie <63265430+mackjmr@users.noreply.github.com> Date: Tue Jun 20 07:21:06 2023 +0200 [receiver/redis] Add bytes unit in metadata.yaml (#23454) This PR adds the bytes unit to metrics where this is missing. unit is a required field, see https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/cmd/mdatagen/metadata-schema.yaml#L72-L73. commit d89a6e15d7ee7e119ff2b44d04edc78bb2e3bce4 Author: Bartosz Sławianowski Date: Mon Jun 19 21:13:53 2023 +0200 [receiver/k8scluster] Fix empty k8s.namespace.name in k8s.namespace.phase metrics (#23453) Kubernetes namespace is a cluster-scoped resource and doesn't seem to have populated `namespace` field in Kubernetes (at least on 1.25.x and 1.26.x). This PR changes it so the name of the namespace is simply taken from `name` field instead. commit 6ee548bccb86cfc3379816ae9428a6d07e11c16d Author: Antoine Toulme Date: Mon Jun 19 10:51:31 2023 -0700 [receiver/k8s_cluster] move node metrics to pdata (#23438) Switch k8s.node metrics to use pdata. commit 5fff1040a2844d4d435359b8108202317762593d Author: Gabriel Aszalos Date: Mon Jun 19 13:13:11 2023 +0300 {processor,exporter}/datadog: bump opentelemetry-mapping-go (#23445) This change bumps the opentelemetry-mapping-go dependency to v0.5.0 which contains the metric remapping code. As a result, it is removed from the exporter. commit b719459a0dba0dad5a1ceec5569e5f2c29c37935 Author: Antoine Toulme Date: Sat Jun 17 10:50:17 2023 -0700 [receiver/k8s_cluster] move namespace to use pdata (#23437) Switch k8s.namespace metrics to use pdata. commit b2238b9bb92468eb07d66440f8bd20296f0a7a87 Author: Dmitrii Anoshin Date: Fri Jun 16 23:08:30 2023 -0700 [receiver/k8s_cluster] Do not store unused service data in k8s API cache (#23434) To reduce RAM utilization. Resolves https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/23433 This is the last PR to reduce the memory footprint of k8s API informers. Other objects are more static and usually don't have a lot of instances in user clusters, so there is no need to reduce their size. commit 1c84fb2912908270d8997505455252c316cf2072 Author: Dominik Rosiek <58699848+sumo-drosiek@users.noreply.github.com> Date: Sat Jun 17 06:24:40 2023 +0200 feat(mysqlreceiver): deprecate `mysql. locked_connects` in favor of `mysql.connection.errors` (#23274) **Description:** deprecate `mysql.locked_accounts` in favor of `mysql.connection.errors` ``` 2023-06-12T08:29:43.306+0200 info service/telemetry.go:104 Setting up own telemetry... 2023-06-12T08:29:43.306+0200 info service/telemetry.go:127 Serving Prometheus metrics {"address": ":8888", "level": "Basic"} 2023-06-12T08:29:43.306+0200 info exporter@v0.79.0/exporter.go:275 Development component. May change in the future. {"kind": "exporter", "data_type": "metrics", "name": "logging"} 2023-06-12T08:29:43.308+0200 info service/service.go:131 Starting otelcontribcol... {"Version": "0.79.0-dev", "NumCPU": 16} 2023-06-12T08:29:43.308+0200 info extensions/extensions.go:30 Starting extensions... 2023-06-12T08:29:43.308+0200 warn mysqlreceiver@v0.79.0/scraper.go:60 `mysql.locked_connects` is deprecated and is going to be set as optional in `v0.80.0` and removed in `v0.81.0`. Please use `mysql.connection.errors` instead {"kind": "receiver", "name": "mysql", "data_type": "metrics"} 2023-06-12T08:29:43.308+0200 info service/service.go:148 Everything is ready. Begin running and processing data. ^C2023-06-12T08:29:44.055+0200 info otelcol/collector.go:227 Received signal from OS {"signal": "interrupt"} 2023-06-12T08:29:44.056+0200 info service/service.go:157 Starting shutdown... ``` --------- Signed-off-by: Dominik Rosiek Co-authored-by: Daniel Jaglowski Co-authored-by: Curtis Robert <92119472+crobert-1@users.noreply.github.com> commit c8cf7809411d62d468c0c2700a65e1e79487834b Author: Dmitrii Anoshin Date: Fri Jun 16 15:00:42 2023 -0700 [receiver/k8s_cluster] Do not store unused data in k8s API cache (part 2) (#23432) Do not store unused data for deployments, statefulsets and daemonsets in k8s API cache to reduce RAM usage. Updates https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/23433 commit 0ccde43cf3012e285e939f985ff657c1759d3745 Author: Mackenzie <63265430+mackjmr@users.noreply.github.com> Date: Fri Jun 16 21:01:32 2023 +0200 Document extension as value for stability in metadata.yaml (#23426) Currently, this is used in all extensions (e.g. [httpforwarder](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/extension/httpforwarder/metadata.yaml#L6)), but this is not documented in `metadata-schema.yaml`. commit 88699511161a271e625adb6c3db05e2bc89de838 Author: Dmitrii Anoshin Date: Fri Jun 16 11:51:00 2023 -0700 Revert "[processor/k8sattributes] Rename k8sattributes processor inte… (#23431) …rnal metrics (#23369)" This reverts commit 42bca6f787d719a4d6e6299bdd9890957d88e951. Revert it until https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/23369#issuecomment-1594276723 is resolved to avoid adding it to the next release Co-authored-by: Ziqi Zhao commit 6ad0589007f98cb9d78a330121daa38c5c088422 Author: Mackenzie <63265430+mackjmr@users.noreply.github.com> Date: Fri Jun 16 19:21:23 2023 +0200 [processor/k8sattributes] Add resource_attributes to metadata.yaml (#23213) This PR adds the resource attributes added by the k8sattributes processor to the metadata.yaml file in the resource_attributes group. Only the attributes which are added by default (see [documentation](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.79.0/processor/k8sattributesprocessor#configuration)) are marked as enabled. The default resource attributes defined in metadata.yaml are used to make the default extract::metadata list. Resource attributes are exposed through a different configuration interface. This is noted in the metadata.yaml file. commit a4585ceab69dda8b2a77178a70009e8c1bd8feb4 Author: Antoine Toulme Date: Fri Jun 16 08:57:52 2023 -0700 [chore] retry sending coverage output (#23413) commit 195ef43c8245c04e2818b258316bb6433561fdf6 Author: Antoine Toulme Date: Fri Jun 16 08:50:14 2023 -0700 [receiver/k8s_cluster] Switch k8s.deployment metrics to use pdata. (#23416) commit 0ae07ba41d8e19bf684ed3b793060299c4a2083d Author: Pablo Baeyens Date: Fri Jun 16 11:05:52 2023 +0200 [chore] Clean up CODEOWNERS (#23382) **Description:** Clean up CODEOWNERS file to remove redundant lines; add these to the ALLOWLIST. **Link to tracking Issue:** mentioned on Zoom chat at the Collector SIG commit a5cdd2fe54844d5264df7d63a13d55b5725da2ce Author: atshaw43 <108552302+atshaw43@users.noreply.github.com> Date: Fri Jun 16 00:11:17 2023 -0700 [exporter/awsxray] Add span links and messenger field translation to x-ray exporter. (#20313) Add link span link support and support for the messaging field. We are conforming to the OTel spec: - https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#specifying-links - https://github.com/open-telemetry/opentelemetry-specification/blob/main/semantic_conventions/trace/messaging.yaml#L110 commit 42bca6f787d719a4d6e6299bdd9890957d88e951 Author: Ziqi Zhao Date: Fri Jun 16 14:51:10 2023 +0800 [processor/k8sattributes] Rename k8sattributes processor internal metrics (#23369) Signed-off-by: Ziqi Zhao commit 559f19c11d343b7b7833e0038c2b38d7d9a6c0d4 Author: Antoine Toulme Date: Thu Jun 15 19:25:45 2023 -0700 [receiver/k8s_cluster] Move resourcequota to pdata (#23419) **Description:** Switch k8s.rq metrics to use pdata. commit 2e11f468dd262027924fd7fee7b88cd07271483f Author: Antoine Toulme Date: Thu Jun 15 19:25:20 2023 -0700 [receiver/k8s_cluster] Move statefulset metrics to use pdata (#23420) commit 5cfcdeb8d71d21d9a29f6525e1a0a9ccec1df6c8 Author: Dmitrii Anoshin Date: Thu Jun 15 17:59:51 2023 -0700 [receiver/k8s_cluster] Do not store unused data in the k8s API cache (#23417) This change removes unused k8s informer data from the cache to reduce RAM utilization. Tried it on a cluster with 40 nodes and 1000 pods, and it gave up to 30% reduction in RAM usage. commit 260f34f6d29a95baedd2764c432d976ec6f48b76 Author: linfn Date: Fri Jun 16 02:44:06 2023 +0800 [receiver/skywalking]: fix parentSpanId lost when crossing segments (#21799) In Skywalking, parentSpanId == -1 indicates that the span is [the first span within the current segment](https://github.com/apache/skywalking-data-collect-protocol/blob/0da9c8b3e111fb51c9f8854cae16d4519462ecfe/language-agent/Tracing.proto#L119), rather than within the entire trace. Leaving parentSpanId blank can cause the call relationship to be lost when crossing segments. commit f70980993159ec79dddf8ae1f142775c38c77f92 Author: Sam DeHaan Date: Thu Jun 15 14:42:59 2023 -0400 [receiver/mongodbatlas] Document access log requirements (#23363) Access Logs required permissions for monitoring were not documented in the receiver README. Should have been documented for https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/21182 commit 88855026b2d9f26297f7bafd6ffa13a0f26506a7 Author: Raj Nishtala <113392743+rnishtala-sumo@users.noreply.github.com> Date: Thu Jun 15 14:41:37 2023 -0400 [chore] Update codeowners for groupbyattrsprocessor (#23414) Updating CODEOWNERS for processor/groupbyattrsprocessor commit d98e12b4ee70029a8e184622ccfae442788fdb1b Author: Antoine Toulme Date: Thu Jun 15 10:21:42 2023 -0700 [chore] add websocketprocessor to otelcontribcol (#23409) commit fd526eebf9ab462e2004c6c79544aba12a7b4568 Author: Antoine Toulme Date: Thu Jun 15 10:16:33 2023 -0700 [k8sclusterreceiver] switch k8s.hpa metrics to use pdata (#23408) Rebase of #18250 with latest main. --------- Signed-off-by: Bogdan Drutu Co-authored-by: Bogdan Drutu commit e6e1e7668f1037a64a78e0f95e72681c343cfcc3 Author: Dmitrii Anoshin Date: Thu Jun 15 10:10:13 2023 -0700 [exporter/signalfx] Keep container.cpu.time metric in the translations (#23403) Do not drop `container.cpu.time` metric in the default translations so it can be enabled in the `include_metrics` config option. This is the only metric that is dropped in the translations. All other metrics are being kept. commit 65a1dea390881aad43f5252d730ece36d9c094b5 Author: Antoine Toulme Date: Thu Jun 15 08:09:39 2023 -0700 [chore][processor/websocket] try sending data a few times to fix flakiness (#23410) Try sending data a few times to fix flakiness of test. **Link to tracking Issue:** Fixes #23381 commit 9f0032e42738c8a223917ab7ff525cb8789b177d Author: Pablo Baeyens Date: Thu Jun 15 14:43:18 2023 +0200 [chore] make gotidy (#23412) Fixes main after #23257 commit ae15d8c964bc9ff37a180c441ad44f4bbbac38f7 Author: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com> Date: Thu Jun 15 07:04:14 2023 -0400 Add zstd compression to SAPM receiver and exporter (#23257) - Updated github.com/signalfx/sapm-proto to v0.13.0 - Added "compression" config setting to sapm exporter - Added tests to verify various compression settings for sapm receiver and exporter. commit c2658a70aa58ff4361b5e8b0e6e9ccd9ecd01873 Author: Mike Dame Date: Thu Jun 15 06:58:12 2023 -0400 [chore] Update GCP codeowners (#22781) Updating CODEOWNERS entries for GCP exporters commit c7462f26d637f961ece1d3549bee1e0217367516 Author: Antoine Toulme Date: Wed Jun 14 23:40:16 2023 -0700 [chore] add k8sclusterreceiver e2e test (#23386) Adds an e2e test for k8sclusterreceiver with a golden metrics file. commit 1bf2547d0bcec9870536267b45e6bd63892a8c9a Author: Andrzej Stencel Date: Wed Jun 14 22:40:06 2023 +0200 [receiver/sqlquery] add support for logs (#20730) Fixes #20284 This introduces initial support for retrieving rows from SQL databases into logs. This PR aims to provide an initial, not feature rich, but production ready implementation. The following features are available: - Use `body_column` to select the column to use to fill the Body field of the created log - Use `tracking_start_value` and `tracking_column` properties to track rows that were already ingested - Use `storage` property to persist the tracking value across collector restarts In this state and marked as "development" stability, the component can be used for experimentation and to guide future development. There are definitely more things that need to be implemented for this component to be considered "alpha" quality - like filling in other [log fields](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.21.0/specification/logs/data-model.md#log-and-event-record-definition) like Timestamp, ObservedTimestamp and others. I would like to add them in subsequent pull requests, as this pull request is already way too big. --------- Co-authored-by: Dominika Molenda Co-authored-by: Dominika Molenda <73838995+dmolenda-sumo@users.noreply.github.com> Co-authored-by: Katarzyna Kujawa <73836361+kkujawa-sumo@users.noreply.github.com> Co-authored-by: Katarzyna Kujawa commit e7608dbb79372f441722a8bc2477bdff24606177 Author: Irina Date: Wed Jun 14 19:50:04 2023 +0100 [exporter/loki] Add flags field to lokiEntry (#21733) **Description:** There is currently no way to get the [Flags](https://github.com/open-telemetry/opentelemetry-collector/blob/main/pdata/internal/data/protogen/logs/v1/logs.pb.go#L396) field from plog.LogRecord into Loki. Added Flags field to lokiEntry in this PR **Link to tracking Issue:** https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/21650 **Testing:** Added unit tests commit 50bbb9f39090f9718ee3e4bb94ce4ed3d17ef474 Author: Ben B Date: Wed Jun 14 20:42:33 2023 +0200 [bearertokenauthextension]: add frzifus as codeowner (#23384) cc @jpkrohling @pavankrish123 Signed-off-by: Benedikt Bongartz commit a4dda5bab343993bc9ea6e2e892ef016ee76a66d Author: Vastin Date: Wed Jun 14 13:12:48 2023 -0500 [exporter/awsemfexporter] add exponential histogram support (#22626) **Description:** This PR adds [exponential histogram](https://opentelemetry.io/docs/specs/otel/metrics/data-model/#exponentialhistogram) support in `awsemfexporter`. The exponential histogram metrics are exported in Embedded Metric Format (EMF) log. The Count, Sum, Max and Min are set as Statistical Set. The mid-point values and counts of exponential histogram buckets are translated into Values/Counts array of EMF log entry as well. **Testing:** The unit test is added and covers positive, zero and negative values. The integration test is performed with following OTEL collector configuration. ``` extensions: health_check: receivers: otlp: protocols: grpc: endpoint: 0.0.0.0:4317 http: endpoint: 0.0.0.0:4318 processors: batch/metrics: timeout: 60s exporters: logging: verbosity: detailed awsemf: region: 'us-east-1' namespace: "Test" dimension_rollup_option: "NoDimensionRollup" service: pipelines: metrics: receivers: [otlp] processors: [batch/metrics] exporters: [awsemf, logging] extensions: [health_check] telemetry: logs: level: "debug" ``` It generated EMF log for histogram metrics in following JSON format. Notes: It doesn't cover negative values since histograms can [only record non-negative values](https://opentelemetry.io/docs/specs/otel/metrics/api/#histogram) and will [drop negative values](https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/SdkDoubleHistogram.java#L38C7-L44). ``` "latency": { "Values": [ 309.4277237034415, 323.12725941969757, 326.64588457862067, 344.8221530867399, 520.3933272846809, 531.7884573308439, 537.579253961712, 543.4331082335607, 549.3507067990806, 555.3327437881196, 561.3799208891041, 567.4929474313465, 720.1774681373079, 0 ], "Counts": [ 1, 1, 1, 1, 1, 3, 4, 2, 2, 3, 1, 1, 1, 22 ], "Max": 720, "Min": 0, "Count": 44, "Sum": 11265 } ``` commit f66845fcd50c9b15cdd324f65776315cfc561493 Author: Ben B Date: Wed Jun 14 20:09:35 2023 +0200 [bearertokenauthextension] Implement configauth ServerAuthenticator (#22739) Closes #22737 --------- Signed-off-by: Benedikt Bongartz commit 6a83a9aa1ace244f5e490e53413f97150f789931 Author: Dominik Rosiek <58699848+sumo-drosiek@users.noreply.github.com> Date: Wed Jun 14 19:11:38 2023 +0200 [exporter/sumologic]: deprecate options which are going to be removed (#23337) Deprecate options which are going to be removed **Link to tracking Issue:** #23059 --------- Signed-off-by: Dominik Rosiek Co-authored-by: Mikołaj Świątek Co-authored-by: Alex Boten commit 3faedfc774068432ce48e1c18f48628bf0d7c422 Author: OpenTelemetry Bot <107717825+opentelemetrybot@users.noreply.github.com> Date: Wed Jun 14 09:39:22 2023 -0700 [chore] dependabot updates Wed Jun 14 15:32:47 UTC 2023 (#23380) Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /exporter/awscloudwatchlogsexporter Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /exporter/awsemfexporter Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /exporter/awsxrayexporter Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /exporter/datadogexporter Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /exporter/kafkaexporter Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /extension/observer/ecsobserver Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /internal/aws/awsutil Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /internal/aws/cwlogs Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /internal/aws/k8s Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /internal/aws/proxy Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /internal/aws/xray Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /internal/aws/xray/testdata/sampleapp Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /internal/metadataproviders Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /processor/resourcedetectionprocessor Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /receiver/awscontainerinsightreceiver Bump github.com/aws/aws-sdk-go from 1.44.281 to 1.44.282 in /receiver/awsxrayreceiver commit d9326aa5b240cee83a28d2b26f749d9c54ecdea1 Author: Alex Boten Date: Wed Jun 14 09:13:30 2023 -0700 [chore] mark components as unmaintained (#23379) These components no longer have an active code owner as a result of Signed-off-by: Alex Boten commit 8729c167157d3fe156f598d04f870525bd080d48 Author: Daniel Jaglowski Date: Wed Jun 14 09:32:35 2023 -0600 [chore] Enable exhaustive linter for several modules (#23329) Updates #23266 - receiver/nsxt - receiver/snmp - connector/count - extension/storage - pkg/stanza commit 52d87f83b5653930571a5dea68e1cc595ea5e362 Author: Evan Bradley <11745660+evan-bradley@users.noreply.github.com> Date: Wed Jun 14 11:30:51 2023 -0400 [cmd/opampsupervisor] Add OpAMP supervisor skeleton (#19143) This is a direct copy of the [supervisor example implementation](https://github.com/open-telemetry/opamp-go/tree/main/internal/examples/supervisor) in the opamp-go repository. I've made some minor changes that are largely centered around linting and making it a little less of an example. Any existing or new TODOs have a linked issue that gives some context. **Link to tracking Issue:** Implements https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/18461 Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com> --------- Co-authored-by: Evan Bradley Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com> commit 31bfef7351efaa0649b0e97a71bcbcc4626096bb Author: Alex Boten Date: Wed Jun 14 08:18:27 2023 -0700 [chore] bump go version for linting (#23346) After digging into what was causing linting time outs, it looks like golangci-lint was using up a significant amount of memory to run lint against otelcontribcol. After digging I came across this issue that mentions memory usage: golangci/golangci-lint#3565 (comment) I've tested bumping the linters to go 1.20 and so far it looks like the avg memory is lower than it was w/ go 1.19. I've also enabled verbose logging for linting to give us a bit more info when there are issues. --------- Signed-off-by: Alex Boten commit d79f3c06485076eefd6d8306c22732a24b19337c Author: Curtis Robert <92119472+crobert-1@users.noreply.github.com> Date: Wed Jun 14 08:05:56 2023 -0700 [chore] Add unmaintained components to ALLOWLIST file (#23368) As a result of issue #23246, a few components are now unmaintained. These need to be documented in the ALLOWLIST file. commit 19e2a2d48735911b84dad3a56ba238e9ffdf817e Author: Tomáš Žďára Date: Wed Jun 14 11:22:35 2023 +0200 DSET-3998 feat: export Logs resource info based on export_resource_info_on_event configuration (#23250) * DSET-3998 - export Logs resource info based on export_resource_info_on_event configuration * DSET-3998 - simplify * DSET-3998 - improve docs * Fix log exporter to set AddEvents Event timestamp (ts) field to event observed timetamp in case LogRecord doesn't contain timestamp. Even though ObservedTimestamp should always be present, we fall back to current time in case it's not. In addition to that, remove duplicate and redundant "timestamp" attribute from the AddEvents event. * Add additional assertions. * Remove dummy debug logs. * Create export-logs-resource-info-based-configuration * address PR notes - fix changelog gen * fix docs typo * fix changelog file suffix --------- Co-authored-by: Tomaz Muraus Co-authored-by: Tomaz Muraus <126863902+tomaz-s1@users.noreply.github.com> commit 5a582d9adc355dba95a4f883a5c9586cc45921a8 Author: Antoine Toulme Date: Wed Jun 14 00:31:28 2023 -0700 [exporter/splunkhec] apply multimetric metric merge for the whole batch (#23366) Apply multi-metric merge at the level of the whole batch rather than within events emitted for one metric. commit 16df49f045ec1b3daf281e303744b35bfc5e2a3e Author: Sean Marciniak <30928402+MovieStoreGuy@users.noreply.github.com> Date: Wed Jun 14 12:00:31 2023 +0930 [chore] Fix datadog receiver flakey test. (#23336) * Use random address * Bind to localhost interface commit 9f854da1ae1e10a4159b3453f0c2c0d8975e3332 Author: Mikołaj Świątek Date: Tue Jun 13 22:25:29 2023 +0000 [processor/k8sattributes] Store only necessary ReplicaSet data (#23338) commit 77d8c70bab8d5a5f01c8ac0e4c9903e28321a73b Author: OpenTelemetry Bot <107717825+opentelemetrybot@users.noreply.github.com> Date: Tue Jun 13 12:57:55 2023 -0700 [chore] dependabot updates Tue Jun 13 16:58:27 UTC 2023 (#23345) Bump github.com/Azure/go-amqp from 0.19.1 to 1.0.1 in /receiver/solacereceiver Bump github.com/ClickHouse/clickhouse-go/v2 from 2.10.0 to 2.10.1 in /exporter/clickhouseexporter Bump github.com/DataDog/agent-payload/v5 from 5.0.84 to 5.0.88 in /exporter/datadogexporter Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /exporter/awscloudwatchlogsexporter Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /exporter/awsemfexporter Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /exporter/awsxrayexporter Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /exporter/datadogexporter Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /exporter/kafkaexporter Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /extension/observer/ecsobserver Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /internal/aws/awsutil Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /internal/aws/cwlogs Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /internal/aws/k8s Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /internal/aws/proxy Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /internal/aws/xray Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /internal/aws/xray/testdata/sampleapp Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /internal/metadataproviders Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /processor/resourcedetectionprocessor Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /receiver/awscontainerinsightreceiver Bump github.com/aws/aws-sdk-go from 1.44.277 to 1.44.281 in /receiver/awsxrayreceiver Bump github.com/influxdata/influxdb-observability/common from 0.5.0 to 0.5.2 in /exporter/influxdbexporter Bump github.com/influxdata/influxdb-observability/common from 0.5.0 to 0.5.2 in /receiver/influxdbreceiver Bump github.com/influxdata/influxdb-observability/influx2otel from 0.5.0 to 0.5.2 in /receiver/influxdbreceiver Bump github.com/influxdata/influxdb-observability/otel2influx from 0.5.0 to 0.5.2 in /exporter/influxdbexporter Bump github.com/leoluk/perflib_exporter from 0.2.0 to 0.2.1 in /receiver/hostmetricsreceiver Bump github.com/signalfx/sapm-proto from 0.12.0 to 0.13.0 in /exporter/sapmexporter Bump github.com/signalfx/sapm-proto from 0.12.0 to 0.13.0 in /receiver/sapmreceiver Bump github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common from 1.0.673 to 1.0.678 in /exporter/tencentcloudlogserviceexporter Bump go.mongodb.org/atlas from 0.28.0 to 0.29.0 in /receiver/mongodbatlasreceiver Bump go.mongodb.org/mongo-driver from 1.11.4 to 1.11.7 in /receiver/mongodbreceiver Bump go.opentelemetry.io/build-tools/crosslink from 0.7.0 to 0.8.0 in /internal/tools Bump go.opentelemetry.io/collector/cmd/builder from 0.78.2 to 0.79.0 in /internal/tools Bump golang.org/x/sys from 0.8.0 to 0.9.0 in /exporter/signalfxexporter Bump golang.org/x/sys from 0.8.0 to 0.9.0 in /pkg/stanza Bump golang.org/x/sys from 0.8.0 to 0.9.0 in /pkg/winperfcounters Bump golang.org/x/sys from 0.8.0 to 0.9.0 in /receiver/hostmetricsreceiver Bump golang.org/x/sys from 0.8.0 to 0.9.0 in /receiver/windowseventlogreceiver Bump golang.org/x/text from 0.9.0 to 0.10.0 in /cmd/configschema Bump golang.org/x/text from 0.9.0 to 0.10.0 in /cmd/mdatagen Bump golang.org/x/text from 0.9.0 to 0.10.0 in /internal/coreinternal Bump golang.org/x/text from 0.9.0 to 0.10.0 in /pkg/stanza Bump golang.org/x/text from 0.9.0 to 0.10.0 in /testbed Bump google.golang.org/api from 0.125.0 to 0.127.0 in /exporter/f5cloudexporter Bump google.golang.org/api from 0.125.0 to 0.127.0 in /exporter/googlecloudpubsubexporter Bump google.golang.org/api from 0.125.0 to 0.127.0 in /receiver/googlecloudpubsubreceiver Bump google.golang.org/api from 0.125.0 to 0.127.0 in /receiver/googlecloudspannerreceiver commit 6bf41e461f13b2a0c70094f66d9117032d23b082 Author: Mackenzie <63265430+mackjmr@users.noreply.github.com> Date: Tue Jun 13 18:33:39 2023 +0200 Add metadata.yaml as a requirement (#23340) Fixes: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/20908. --------- Co-authored-by: Yang Song commit 563fd6f33635b460819a1bb1e58314226cb31dbb Author: Alex Boten Date: Tue Jun 13 09:33:00 2023 -0700 [chore] make update-otel (#23278) --------- Signed-off-by: Alex Boten commit d2c7c1f2b0c95c0c4ccfd5d0624a3d8ccf3960e5 Author: Daniel Jaglowski Date: Tue Jun 13 09:45:00 2023 -0600 [chore][fileconsumer] Add test to validate reader encoding (#23280) commit 375da69ffc3bfd01d952783c14d2b2469a9bfc76 Author: Daniel Jaglowski Date: Tue Jun 13 08:23:00 2023 -0600 [chore] Deprecate unnecessary fileconsumer API (#23281) * [chore] Deprecate unnecessary fileconsumer API * Add deprecation version and tentative removal version commit 6ac52853d1f4a339a98377318537898d03ae8f4b Author: Dewald de Jager Date: Tue Jun 13 11:20:41 2023 +0200 [cmd/mdatagen] Document metadata.yaml schema (#22962) * Start adding the status information to the metadata schema documentation * Remove cmd from the list of possible classes * Fix spelling mistake Co-authored-by: Antoine Toulme * Update the value used for the development stability status Co-authored-by: Antoine Toulme * Fix the tests after updating the example metadata file * Document how to use mdatagen and the schema of metadata.yaml * Add the stability levels for connectors * Change the receiver type so the tests pass * Update the generated documentation * Change the syntax used for string array types so that it is valid YAML --------- Co-authored-by: Antoine Toulme commit 061eb3ec4f03d8e3e7f26c120c84abd814fd881a Author: Mikołaj Świątek Date: Tue Jun 13 06:29:11 2023 +0000 [processor/k8sattributes] Only store necessary Pod data (#23272) Only store Pod data we actually use for attributes in the informer store. By default, informers store all data about K8s objects, as they're primarily intended to act as a local cache for the API Server. For our use case, most of that data is unnecessary, and it eats a significant amount of memory in larger clusters. This PR uses a transform function to remove the unnecessary data from the informer store. I've measured the gains synthetically, and we use nearly 70% less memory per stored Pod. I haven't included the benchmark function in this PR, as it's a bit complicated and hacky, and I'm not convinced there's value in adding it to the codebase permanently. commit ab42d69bb8bf734d5bcd7c40e3672a83a715d678 Author: zeno-splunk <134558926+zeno-splunk@users.noreply.github.com> Date: Mon Jun 12 22:36:54 2023 -0700 [receiver/kafkametrics] Fix metrics in kafkametricsreceiver (#4327) (#23332) Update `kafka.brokers` metric to be non-monothonic sum instead of gauge commit 9e4d50f5fa364ee10b322136a47b687e6d47bdff Author: Antoine Toulme Date: Mon Jun 12 20:28:17 2023 -0700 remove opencensus from carbonreceiver and wavefrontreceiver (#23248) Update carbonreceiver and wavefrontreceiver to use pdata directly instead of OpenCensus commit e0249e074492a53052a4f40ab9806d5fff683a7b Author: Alex Boten Date: Mon Jun 12 15:01:49 2023 -0700 [chore] forwardconnector was not listed in the modules script (#23330) this was causing check-collector-module-version to not check that this module was up to the same version as the others consistently Signed-off-by: Alex Boten commit 9d5526cf29988587a1a33b3c6e4c21cf6651f8eb Author: Daniel Jaglowski Date: Mon Jun 12 09:58:22 2023 -0600 [receiver/nginx] Bump 'receiver.nginx.emitConnectionsCurrentAsSum' featuregate to beta (#23255) commit bbea8aa489c57de0cfb1174583ecf5512bdfb9c7 Author: Trask Stalnaker Date: Mon Jun 12 08:38:45 2023 -0700 Add workflow to auto-update the JMX metrics gatherer (#23268) commit 0f8e1282b5cc7b8c1639d3117db36a5d31a3cccd Author: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Mon Jun 12 08:45:16 2023 -0600 [pkg/ottl] Update docs of functions impacted by grammar bug (#23259) Update readme commit 6d35fd7ac648b2401924a61be7fa0f95087a1d62 Author: Dominik Rosiek <58699848+sumo-drosiek@users.noreply.github.com> Date: Mon Jun 12 16:33:47 2023 +0200 [mysqlreceiver]: add `aborted`, `aborted_clients` and `locked` values to `error` property for `mysql.connection.errors` metric (#23211) Signed-off-by: Dominik Rosiek commit 88ac450bb0bd4388863ae47dea101658bd7e1c6f Author: Gabriel Aszalos Date: Mon Jun 12 17:31:02 2023 +0300 receiver/dockerstatsreceiver: add container.uptime metric (#22851) * receiver/dockerstatsreceiver: add container.uptime metric This change adds the `container.uptime` metric which indicates time elapsed (in seconds) since the container started. * Add scraper error for invalid time format * Disable by default * empty commit 694735791ba6c53e116175b17c7ceaf098c6f3c6 Author: Yang Song Date: Mon Jun 12 10:27:42 2023 -0400 [exporter/datadog] Add trace configs compute_stats_by_span_kind and peer_service_aggregation (#23240) * [exporter/datadog] Add trace configs compute_stats_by_span_kind and peer_service_aggregation * Add to changelog * Update exporter/datadogexporter/config.go Co-authored-by: Pablo Baeyens * Update .chloggen/datadogexporter-new-trace-configs.yaml Co-authored-by: Pablo Baeyens * Add subtext to changelog --------- Co-authored-by: Pablo Baeyens commit b2479140dbb6205f5f9dd013f7be715df8dbd802 Author: Raj Nishtala <113392743+rnishtala-sumo@users.noreply.github.com> Date: Mon Jun 12 10:26:18 2023 -0400 [pkg/ottl] Changed replacement string to be a path expression to a string telemetry field or a literal string (#23210) * [pkg/ottl] Changed replacement string to be a path expression to a string telemetry field or a literal string * [pkg/ottl] Changed replacement string (replace_all* functions) to be a path expression to a string telemetry field or a literal string commit 3b62a17fef1558271054ffb2c042c4d5e026e2cc Author: Daniel Jaglowski Date: Mon Jun 12 07:50:37 2023 -0600 [receiver/elasticsearch] Bump 'receiver.elasticsearch.emitNodeVersionAttr' to stable (#23254) * [receiver/elasticsearch] Bump 'receiver.elasticsearch.emitNodeVersionAttr' to stable * Update .chloggen/elastic-stable-nodevesiongate.yaml Co-authored-by: Pablo Baeyens --------- Co-authored-by: Pablo Baeyens commit 6249ae8d927ec984dab887af0efbec79659263ed Author: Dominik Rosiek <58699848+sumo-drosiek@users.noreply.github.com> Date: Mon Jun 12 13:09:13 2023 +0200 resourcedetectionprocessor: use opentelemetry-go for host id detection (#18740) * resourcedetectionprocessor: use gopsutil for host id detection Signed-off-by: Dominik Rosiek * feat: use opentelemetry sdk Signed-off-by: Dominik Rosiek --------- Signed-off-by: Dominik Rosiek commit 820510e537167f621c857caaa0109f0dad021d74 Author: Ziqi Zhao Date: Mon Jun 12 18:10:33 2023 +0800 [chore] [all] Enable exhaustive linter on golangci-lint (#23242) Enable exhaustive linter on golangci-lint Signed-off-by: Ziqi Zhao commit 752330ec48dcc3f91791615f486a8253f83c6bd0 Author: shalper2 <99686388+shalper2@users.noreply.github.com> Date: Sun Jun 11 10:44:14 2023 -0500 [receiver/webhookevent] Enable component (#23239) Graduate webhookeventreceiver component to Alpha Co-authored-by: jimchen --- .chloggen/dd-receiver-listener.yaml | 20 - .../fix-cri-o-log-format-time-layout.yaml | 16 - .chloggen/fix-parent-error-scrapping.yaml | 20 - .chloggen/fix_iis-scrape-queue-failure.yaml | 11 - .chloggen/jgm-span-dimensions.yaml | 20 - .chloggen/ottl-check-type.yaml | 20 - .chloggen/ottl-standard-functions.yaml | 20 - .chloggen/servicegraph-fix-metric-names.yaml | 18 - .../set-prom-feature-gate-back-to-aplpha.yaml | 22 - .../stanley.liu_add-telemetry-metric.yaml | 20 - .../testbed-configurable-executable.yaml | 20 - .chloggen/webhookevent_client.yaml | 16 - .chloggen/websocket-processor.yaml | 20 - .github/ALLOWLIST | 3 + .github/CODEOWNERS | 24 +- .github/ISSUE_TEMPLATE/bug_report.yaml | 1 + .github/ISSUE_TEMPLATE/feature_request.yaml | 1 + .github/ISSUE_TEMPLATE/other.yaml | 1 + .github/dependabot.yml | 10 +- .../auto-update-jmx-metrics-component.yml | 116 ++ .github/workflows/build-and-test.yml | 14 +- .github/workflows/e2e-tests.yml | 50 +- .gitignore | 1 + .golangci.yml | 203 +++ CHANGELOG.md | 102 ++ CONTRIBUTING.md | 2 + Makefile.Common | 2 +- cmd/configschema/comments_test.go | 3 +- cmd/configschema/fields_test.go | 5 - cmd/configschema/go.mod | 514 +++--- cmd/configschema/go.sum | 236 +-- cmd/mdatagen/README.md | 60 +- cmd/mdatagen/documentation.md | 2 +- cmd/mdatagen/go.mod | 24 +- cmd/mdatagen/go.sum | 49 +- .../internal/metadata/generated_config.go | 6 +- .../internal/metadata/generated_status.go | 6 +- cmd/mdatagen/loader.go | 11 - cmd/mdatagen/loader_test.go | 18 +- ...ric-metadata.yaml => metadata-schema.yaml} | 35 +- cmd/mdatagen/metadata.yaml | 9 +- cmd/opampsupervisor/.gitignore | 2 + cmd/opampsupervisor/Makefile | 1 + cmd/opampsupervisor/README.md | 24 + cmd/opampsupervisor/go.mod | 27 + cmd/opampsupervisor/go.sum | 414 +++++ cmd/opampsupervisor/main.go | 33 + cmd/opampsupervisor/specification/README.md | 469 ++++++ .../specification/extension-diagram.png | Bin 0 -> 12635 bytes .../specification/supervisor-diagram.png | Bin 0 -> 29815 bytes .../supervisor/commander/commander.go | 179 ++ .../supervisor/config/config.go | 18 + .../supervisor/healthchecker/healthchecker.go | 45 + cmd/opampsupervisor/supervisor/supervisor.go | 745 +++++++++ .../testdata/supervisor_darwin.yaml | 5 + .../testdata/supervisor_linux.yaml | 5 + .../testdata/supervisor_windows.yaml | 5 + cmd/otelcontribcol/builder-config.yaml | 372 ++--- cmd/otelcontribcol/components.go | 4 + cmd/otelcontribcol/go.mod | 535 +++--- cmd/otelcontribcol/go.sum | 240 +-- cmd/otelcontribcol/main.go | 2 +- cmd/otelcontribcol/processors_test.go | 9 + cmd/otelcontribcol/receivers_test.go | 15 + cmd/oteltestbedcol/builder-config.yaml | 70 +- cmd/oteltestbedcol/go.mod | 169 +- cmd/oteltestbedcol/go.sum | 177 +- cmd/oteltestbedcol/main.go | 2 +- cmd/telemetrygen/go.mod | 20 +- cmd/telemetrygen/go.sum | 40 +- confmap/provider/s3provider/go.mod | 4 +- confmap/provider/s3provider/go.sum | 10 +- connector/countconnector/connector.go | 3 + connector/countconnector/go.mod | 31 +- connector/countconnector/go.sum | 43 +- connector/servicegraphconnector/go.mod | 31 +- connector/servicegraphconnector/go.sum | 79 +- connector/spanmetricsconnector/go.mod | 27 +- connector/spanmetricsconnector/go.sum | 47 +- examples/demo/client/go.mod | 4 +- examples/demo/client/go.sum | 8 +- examples/demo/server/go.mod | 4 +- examples/demo/server/go.sum | 8 +- .../alibabacloudlogserviceexporter/go.mod | 32 +- .../alibabacloudlogserviceexporter/go.sum | 64 +- exporter/awscloudwatchlogsexporter/go.mod | 33 +- exporter/awscloudwatchlogsexporter/go.sum | 62 +- exporter/awsemfexporter/datapoint.go | 96 ++ exporter/awsemfexporter/datapoint_test.go | 145 ++ exporter/awsemfexporter/go.mod | 43 +- exporter/awsemfexporter/go.sum | 66 +- exporter/awsemfexporter/metric_translator.go | 11 + exporter/awskinesisexporter/go.mod | 35 +- exporter/awskinesisexporter/go.sum | 62 +- exporter/awss3exporter/go.mod | 36 +- exporter/awss3exporter/go.sum | 74 +- exporter/awsxrayexporter/go.mod | 37 +- exporter/awsxrayexporter/go.sum | 66 +- .../internal/translator/segment.go | 6 + .../internal/translator/span_links.go | 43 + .../internal/translator/span_links_test.go | 231 +++ exporter/azuredataexplorerexporter/go.mod | 32 +- exporter/azuredataexplorerexporter/go.sum | 64 +- exporter/azuremonitorexporter/go.mod | 32 +- exporter/azuremonitorexporter/go.sum | 64 +- exporter/carbonexporter/README.md | 4 +- exporter/carbonexporter/go.mod | 31 +- exporter/carbonexporter/go.sum | 62 +- .../internal/metadata/generated_status.go | 2 +- exporter/carbonexporter/metadata.yaml | 2 +- exporter/cassandraexporter/go.mod | 29 +- exporter/cassandraexporter/go.sum | 58 +- exporter/clickhouseexporter/go.mod | 33 +- exporter/clickhouseexporter/go.sum | 66 +- exporter/coralogixexporter/go.mod | 47 +- exporter/coralogixexporter/go.sum | 102 +- exporter/datadogexporter/config.go | 11 + exporter/datadogexporter/go.mod | 98 +- exporter/datadogexporter/go.sum | 155 +- .../internal/metrics/system.go | 192 --- .../internal/metrics/system_deprecated.go | 184 --- .../metrics/system_deprecated_test.go | 697 -------- .../internal/metrics/system_test.go | 653 -------- exporter/datadogexporter/metrics_exporter.go | 7 +- .../datadogexporter/metrics_exporter_test.go | 96 +- exporter/datadogexporter/traces_exporter.go | 2 + exporter/datasetexporter/README.md | 2 + exporter/datasetexporter/config.go | 22 +- exporter/datasetexporter/config_test.go | 18 +- exporter/datasetexporter/datasetexporter.go | 2 + exporter/datasetexporter/factory.go | 1 + exporter/datasetexporter/factory_test.go | 7 +- exporter/datasetexporter/go.mod | 30 +- exporter/datasetexporter/go.sum | 60 +- exporter/datasetexporter/logs_exporter.go | 35 +- .../datasetexporter/logs_exporter_test.go | 155 +- exporter/datasetexporter/testdata/config.yaml | 2 + exporter/dynatraceexporter/go.mod | 40 +- exporter/dynatraceexporter/go.sum | 76 +- exporter/elasticsearchexporter/go.mod | 35 +- exporter/elasticsearchexporter/go.sum | 66 +- exporter/f5cloudexporter/go.mod | 46 +- exporter/f5cloudexporter/go.sum | 100 +- exporter/fileexporter/go.mod | 31 +- exporter/fileexporter/go.sum | 58 +- exporter/googlecloudexporter/go.mod | 35 +- exporter/googlecloudexporter/go.sum | 74 +- exporter/googlecloudpubsubexporter/go.mod | 33 +- exporter/googlecloudpubsubexporter/go.sum | 70 +- .../googlemanagedprometheusexporter/go.mod | 42 +- .../googlemanagedprometheusexporter/go.sum | 82 +- exporter/influxdbexporter/go.mod | 42 +- exporter/influxdbexporter/go.sum | 88 +- exporter/instanaexporter/go.mod | 40 +- exporter/instanaexporter/go.sum | 80 +- exporter/jaegerexporter/go.mod | 51 +- exporter/jaegerexporter/go.sum | 106 +- exporter/jaegerthrifthttpexporter/go.mod | 42 +- exporter/jaegerthrifthttpexporter/go.sum | 80 +- exporter/kafkaexporter/go.mod | 39 +- exporter/kafkaexporter/go.sum | 74 +- exporter/loadbalancingexporter/go.mod | 57 +- exporter/loadbalancingexporter/go.sum | 1208 +++++++++++++- exporter/logicmonitorexporter/go.mod | 40 +- exporter/logicmonitorexporter/go.sum | 76 +- exporter/logzioexporter/go.mod | 42 +- exporter/logzioexporter/go.sum | 80 +- exporter/lokiexporter/go.mod | 48 +- exporter/lokiexporter/go.sum | 86 +- exporter/mezmoexporter/go.mod | 38 +- exporter/mezmoexporter/go.sum | 80 +- exporter/opencensusexporter/go.mod | 59 +- exporter/opencensusexporter/go.sum | 1145 +------------ exporter/parquetexporter/go.mod | 27 +- exporter/parquetexporter/go.sum | 58 +- exporter/prometheusexporter/go.mod | 68 +- exporter/prometheusexporter/go.sum | 119 +- exporter/prometheusremotewriteexporter/go.mod | 46 +- exporter/prometheusremotewriteexporter/go.sum | 80 +- exporter/pulsarexporter/go.mod | 42 +- exporter/pulsarexporter/go.sum | 76 +- exporter/sapmexporter/README.md | 5 + exporter/sapmexporter/config.go | 22 +- exporter/sapmexporter/config_test.go | 6 + exporter/sapmexporter/exporter_test.go | 116 ++ exporter/sapmexporter/go.mod | 41 +- exporter/sapmexporter/go.sum | 70 +- exporter/sentryexporter/go.mod | 31 +- exporter/sentryexporter/go.sum | 62 +- exporter/signalfxexporter/go.mod | 54 +- exporter/signalfxexporter/go.sum | 111 +- .../internal/translation/constants.go | 2 +- .../internal/translation/default_metrics.go | 6 +- exporter/skywalkingexporter/go.mod | 51 +- exporter/skywalkingexporter/go.sum | 106 +- exporter/splunkhecexporter/client.go | 95 +- exporter/splunkhecexporter/client_test.go | 289 +++- exporter/splunkhecexporter/go.mod | 48 +- exporter/splunkhecexporter/go.sum | 80 +- .../splunkhecexporter/metricdata_to_splunk.go | 3 +- .../testdata/hec_metric_event.json | 2 +- exporter/sumologicexporter/README.md | 73 + exporter/sumologicexporter/exporter.go | 25 + exporter/sumologicexporter/go.mod | 36 +- exporter/sumologicexporter/go.sum | 76 +- exporter/syslogexporter/go.mod | 29 +- exporter/syslogexporter/go.sum | 62 +- exporter/tanzuobservabilityexporter/go.mod | 45 +- exporter/tanzuobservabilityexporter/go.sum | 88 +- .../tencentcloudlogserviceexporter/go.mod | 34 +- .../tencentcloudlogserviceexporter/go.sum | 68 +- exporter/zipkinexporter/go.mod | 46 +- exporter/zipkinexporter/go.sum | 80 +- extension/asapauthextension/go.mod | 21 +- extension/asapauthextension/go.sum | 42 +- extension/awsproxy/go.mod | 28 +- extension/awsproxy/go.sum | 48 +- extension/basicauthextension/go.mod | 24 +- extension/basicauthextension/go.sum | 50 +- extension/bearertokenauthextension/README.md | 2 +- .../bearertokenauth.go | 23 + .../bearertokenauth_test.go | 51 + extension/bearertokenauthextension/go.mod | 21 +- extension/bearertokenauthextension/go.sum | 42 +- extension/headerssetterextension/go.mod | 21 +- extension/headerssetterextension/go.sum | 44 +- extension/healthcheckextension/go.mod | 31 +- extension/healthcheckextension/go.sum | 60 +- extension/httpforwarder/go.mod | 31 +- extension/httpforwarder/go.sum | 60 +- extension/jaegerremotesampling/go.mod | 37 +- extension/jaegerremotesampling/go.sum | 93 +- extension/oauth2clientauthextension/go.mod | 31 +- extension/oauth2clientauthextension/go.sum | 64 +- extension/observer/dockerobserver/go.mod | 25 +- extension/observer/dockerobserver/go.sum | 38 +- extension/observer/ecsobserver/go.mod | 21 +- extension/observer/ecsobserver/go.sum | 42 +- extension/observer/ecstaskobserver/go.mod | 35 +- extension/observer/ecstaskobserver/go.sum | 60 +- extension/observer/hostobserver/go.mod | 21 +- extension/observer/hostobserver/go.sum | 37 +- extension/observer/k8sobserver/go.mod | 25 +- extension/observer/k8sobserver/go.sum | 42 +- extension/oidcauthextension/go.mod | 23 +- extension/oidcauthextension/go.sum | 48 +- extension/pprofextension/go.mod | 22 +- extension/pprofextension/go.sum | 40 +- extension/sigv4authextension/go.mod | 20 +- extension/sigv4authextension/go.sum | 40 +- extension/storage/dbstorage/extension.go | 2 + extension/storage/filestorage/extension.go | 2 + extension/storage/go.mod | 21 +- extension/storage/go.sum | 42 +- go.mod | 512 +++--- go.sum | 236 +-- internal/aws/awsutil/go.mod | 4 +- internal/aws/awsutil/go.sum | 8 +- internal/aws/containerinsight/go.mod | 12 +- internal/aws/containerinsight/go.sum | 24 +- internal/aws/cwlogs/go.mod | 20 +- internal/aws/cwlogs/go.sum | 40 +- internal/aws/ecsutil/go.mod | 31 +- internal/aws/ecsutil/go.sum | 60 +- internal/aws/k8s/go.mod | 6 +- internal/aws/k8s/go.sum | 12 +- internal/aws/proxy/go.mod | 13 +- internal/aws/proxy/go.sum | 21 +- internal/aws/xray/go.mod | 22 +- internal/aws/xray/go.sum | 40 +- internal/aws/xray/testdata/sampleapp/go.mod | 6 +- internal/aws/xray/testdata/sampleapp/go.sum | 12 +- .../aws/xray/testdata/sampleserver/go.mod | 6 +- .../aws/xray/testdata/sampleserver/go.sum | 12 +- internal/aws/xray/tracesegment.go | 16 +- internal/buildscripts/modules | 14 + internal/common/go.mod | 2 +- internal/common/go.sum | 4 +- internal/components/components.go | 2 + internal/coreinternal/go.mod | 29 +- internal/coreinternal/go.sum | 50 +- internal/docker/go.mod | 2 +- internal/docker/go.sum | 4 +- internal/filter/go.mod | 26 +- internal/filter/go.sum | 40 +- internal/k8sconfig/go.mod | 4 +- internal/k8sconfig/go.sum | 8 +- internal/k8stest/go.mod | 4 +- internal/k8stest/go.sum | 8 +- internal/kubelet/go.mod | 15 +- internal/kubelet/go.sum | 22 +- internal/metadataproviders/go.mod | 12 +- internal/metadataproviders/go.sum | 35 +- internal/metadataproviders/system/metadata.go | 26 +- internal/sharedcomponent/go.mod | 18 +- internal/sharedcomponent/go.sum | 36 +- internal/splunk/go.mod | 29 +- internal/splunk/go.sum | 62 +- internal/tools/go.mod | 8 +- internal/tools/go.sum | 18 +- pkg/batchperresourceattr/go.mod | 12 +- pkg/batchperresourceattr/go.sum | 26 +- pkg/batchpersignal/go.mod | 12 +- pkg/batchpersignal/go.sum | 24 +- pkg/ottl/go.mod | 20 +- pkg/ottl/go.sum | 36 +- pkg/ottl/ottlfuncs/README.md | 28 +- .../ottlfuncs/func_replace_all_matches.go | 14 +- .../func_replace_all_matches_test.go | 40 +- .../ottlfuncs/func_replace_all_patterns.go | 18 +- .../func_replace_all_patterns_test.go | 156 +- pkg/ottl/ottlfuncs/func_replace_match.go | 14 +- pkg/ottl/ottlfuncs/func_replace_match_test.go | 40 +- pkg/ottl/ottlfuncs/func_replace_pattern.go | 14 +- .../ottlfuncs/func_replace_pattern_test.go | 84 +- pkg/pdatatest/go.mod | 14 +- pkg/pdatatest/go.sum | 20 +- pkg/pdatatest/internal/util.go | 8 + pkg/pdatatest/pmetrictest/options.go | 32 + pkg/pdatautil/go.mod | 12 +- pkg/pdatautil/go.sum | 24 +- pkg/resourcetotelemetry/go.mod | 24 +- pkg/resourcetotelemetry/go.sum | 44 +- pkg/stanza/entry/field.go | 2 + pkg/stanza/fileconsumer/finder.go | 2 + pkg/stanza/fileconsumer/fingerprint.go | 9 +- pkg/stanza/fileconsumer/reader.go | 2 + pkg/stanza/fileconsumer/reader_test.go | 53 + pkg/stanza/fileconsumer/scanner.go | 4 + pkg/stanza/go.mod | 33 +- pkg/stanza/go.sum | 62 +- pkg/stanza/operator/input/windows/security.go | 8 +- pkg/translator/jaeger/go.mod | 14 +- pkg/translator/jaeger/go.sum | 24 +- pkg/translator/loki/encode.go | 7 + pkg/translator/loki/encode_test.go | 20 + pkg/translator/loki/go.mod | 22 +- pkg/translator/loki/go.sum | 28 +- pkg/translator/opencensus/go.mod | 18 +- pkg/translator/opencensus/go.sum | 24 +- pkg/translator/prometheus/go.mod | 16 +- pkg/translator/prometheus/go.sum | 28 +- pkg/translator/prometheusremotewrite/go.mod | 18 +- pkg/translator/prometheusremotewrite/go.sum | 28 +- pkg/translator/signalfx/go.mod | 16 +- pkg/translator/signalfx/go.sum | 20 +- pkg/translator/zipkin/go.mod | 14 +- pkg/translator/zipkin/go.sum | 24 +- pkg/winperfcounters/go.mod | 2 +- pkg/winperfcounters/go.sum | 4 +- processor/attributesprocessor/go.mod | 34 +- processor/attributesprocessor/go.sum | 48 +- processor/cumulativetodeltaprocessor/go.mod | 26 +- processor/cumulativetodeltaprocessor/go.sum | 44 +- processor/datadogprocessor/go.mod | 32 +- processor/datadogprocessor/go.sum | 67 +- processor/deltatorateprocessor/go.mod | 22 +- processor/deltatorateprocessor/go.sum | 44 +- processor/filterprocessor/go.mod | 32 +- processor/filterprocessor/go.sum | 48 +- processor/groupbyattrsprocessor/go.mod | 28 +- processor/groupbyattrsprocessor/go.sum | 56 +- processor/groupbytraceprocessor/go.mod | 28 +- processor/groupbytraceprocessor/go.sum | 56 +- processor/k8sattributesprocessor/go.mod | 59 +- processor/k8sattributesprocessor/go.sum | 1267 +++++++++++++- .../internal/kube/client.go | 135 ++ .../internal/kube/client_test.go | 23 +- .../internal/kube/kube.go | 23 + .../internal/metadata/generated_config.go | 101 ++ .../metadata/generated_config_test.go | 94 ++ .../internal/metadata/testdata/config.yaml | 89 + .../k8sattributesprocessor/metadata.yaml | 87 + processor/k8sattributesprocessor/options.go | 83 +- .../k8sattributesprocessor/options_test.go | 15 + processor/logstransformprocessor/go.mod | 35 +- processor/logstransformprocessor/go.sum | 58 +- processor/metricsgenerationprocessor/go.mod | 22 +- processor/metricsgenerationprocessor/go.sum | 44 +- processor/metricstransformprocessor/go.mod | 28 +- processor/metricstransformprocessor/go.sum | 44 +- .../probabilisticsamplerprocessor/go.mod | 38 +- .../probabilisticsamplerprocessor/go.sum | 74 +- processor/redactionprocessor/go.mod | 22 +- processor/redactionprocessor/go.sum | 44 +- processor/resourcedetectionprocessor/go.mod | 48 +- processor/resourcedetectionprocessor/go.sum | 84 +- .../internal/system/system.go | 4 +- .../internal/system/system_test.go | 2 +- processor/resourceprocessor/go.mod | 28 +- processor/resourceprocessor/go.sum | 44 +- processor/routingprocessor/go.mod | 52 +- processor/routingprocessor/go.sum | 1443 +++++++++++++++- processor/schemaprocessor/go.mod | 32 +- processor/schemaprocessor/go.sum | 64 +- processor/servicegraphprocessor/go.mod | 55 +- processor/servicegraphprocessor/go.sum | 1208 +++++++++++++- processor/spanmetricsprocessor/go.mod | 52 +- processor/spanmetricsprocessor/go.sum | 1449 ++++++++++++++++- processor/spanprocessor/go.mod | 34 +- processor/spanprocessor/go.sum | 48 +- processor/tailsamplingprocessor/go.mod | 32 +- processor/tailsamplingprocessor/go.sum | 56 +- processor/transformprocessor/go.mod | 26 +- processor/transformprocessor/go.sum | 44 +- processor/websocketprocessor/go.mod | 34 +- processor/websocketprocessor/go.sum | 64 +- processor/websocketprocessor/server_test.go | 13 +- receiver/activedirectorydsreceiver/go.mod | 34 +- receiver/activedirectorydsreceiver/go.sum | 56 +- receiver/aerospikereceiver/documentation.md | 2 +- receiver/aerospikereceiver/go.mod | 34 +- receiver/aerospikereceiver/go.sum | 60 +- .../internal/metadata/generated_metrics.go | 2 +- .../metadata/generated_metrics_test.go | 2 +- receiver/aerospikereceiver/metadata.yaml | 1 + .../testdata/integration/expected.yaml | 630 +++---- receiver/apachereceiver/go.mod | 42 +- receiver/apachereceiver/go.sum | 76 +- receiver/apachesparkreceiver/go.mod | 42 +- receiver/apachesparkreceiver/go.sum | 76 +- receiver/awscloudwatchmetricsreceiver/go.mod | 22 +- receiver/awscloudwatchmetricsreceiver/go.sum | 45 +- receiver/awscloudwatchreceiver/go.mod | 30 +- receiver/awscloudwatchreceiver/go.sum | 49 +- receiver/awscontainerinsightreceiver/go.mod | 51 +- receiver/awscontainerinsightreceiver/go.sum | 75 +- .../awsecscontainermetricsreceiver/go.mod | 39 +- .../awsecscontainermetricsreceiver/go.sum | 70 +- receiver/awsfirehosereceiver/go.mod | 35 +- receiver/awsfirehosereceiver/go.sum | 70 +- receiver/awsxrayreceiver/go.mod | 51 +- receiver/awsxrayreceiver/go.sum | 74 +- receiver/azureblobreceiver/go.mod | 40 +- receiver/azureblobreceiver/go.sum | 78 +- receiver/azureeventhubreceiver/go.mod | 48 +- receiver/azureeventhubreceiver/go.sum | 78 +- receiver/azuremonitorreceiver/go.mod | 34 +- receiver/azuremonitorreceiver/go.sum | 60 +- receiver/bigipreceiver/go.mod | 42 +- receiver/bigipreceiver/go.sum | 76 +- receiver/carbonreceiver/README.md | 4 +- receiver/carbonreceiver/go.mod | 47 +- receiver/carbonreceiver/go.sum | 70 +- .../internal/metadata/generated_status.go | 2 +- receiver/carbonreceiver/metadata.yaml | 2 +- receiver/carbonreceiver/protocol/parser.go | 38 +- .../protocol/path_parser_helper.go | 69 +- .../protocol/plaintext_parser.go | 14 +- .../protocol/plaintext_parser_test.go | 200 +-- .../carbonreceiver/protocol/regex_parser.go | 20 +- .../protocol/regex_parser_test.go | 69 +- receiver/carbonreceiver/receiver_test.go | 10 +- .../carbonreceiver/transport/server_test.go | 6 +- .../carbonreceiver/transport/tcp_server.go | 11 +- .../carbonreceiver/transport/udp_server.go | 13 +- receiver/chronyreceiver/go.mod | 26 +- receiver/chronyreceiver/go.sum | 56 +- receiver/cloudflarereceiver/go.mod | 32 +- receiver/cloudflarereceiver/go.sum | 49 +- receiver/cloudfoundryreceiver/go.mod | 36 +- receiver/cloudfoundryreceiver/go.sum | 76 +- receiver/collectdreceiver/go.mod | 31 +- receiver/collectdreceiver/go.sum | 51 +- receiver/couchdbreceiver/go.mod | 42 +- receiver/couchdbreceiver/go.sum | 76 +- receiver/datadogreceiver/go.mod | 40 +- receiver/datadogreceiver/go.sum | 80 +- receiver/dockerstatsreceiver/documentation.md | 8 + receiver/dockerstatsreceiver/go.mod | 36 +- receiver/dockerstatsreceiver/go.sum | 60 +- .../internal/metadata/generated_config.go | 4 + .../metadata/generated_config_test.go | 2 + .../internal/metadata/generated_metrics.go | 57 + .../metadata/generated_metrics_test.go | 15 + .../internal/metadata/testdata/config.yaml | 4 + receiver/dockerstatsreceiver/metadata.yaml | 8 + receiver/dockerstatsreceiver/receiver.go | 24 +- receiver/dockerstatsreceiver/receiver_test.go | 50 +- .../mock/cgroups_v2/expected_metrics.yaml | 7 + .../mock/no_pids_stats/expected_metrics.yaml | 7 + .../mock/pids_stats_max/expected_metrics.yaml | 7 + .../single_container/expected_metrics.yaml | 7 + .../mock/two_containers/expected_metrics.yaml | 14 + receiver/elasticsearchreceiver/go.mod | 42 +- receiver/elasticsearchreceiver/go.sum | 76 +- receiver/elasticsearchreceiver/scraper.go | 54 +- .../elasticsearchreceiver/scraper_test.go | 8 - receiver/expvarreceiver/go.mod | 42 +- receiver/expvarreceiver/go.sum | 76 +- receiver/filelogreceiver/go.mod | 33 +- receiver/filelogreceiver/go.sum | 58 +- receiver/filereceiver/go.mod | 22 +- receiver/filereceiver/go.sum | 45 +- receiver/filestatsreceiver/go.mod | 26 +- receiver/filestatsreceiver/go.sum | 56 +- receiver/flinkmetricsreceiver/go.mod | 42 +- receiver/flinkmetricsreceiver/go.sum | 76 +- receiver/fluentforwardreceiver/go.mod | 30 +- receiver/fluentforwardreceiver/go.sum | 56 +- receiver/googlecloudpubsubreceiver/go.mod | 33 +- receiver/googlecloudpubsubreceiver/go.sum | 70 +- receiver/googlecloudspannerreceiver/go.mod | 38 +- receiver/googlecloudspannerreceiver/go.sum | 80 +- receiver/haproxyreceiver/go.mod | 36 +- receiver/haproxyreceiver/go.sum | 76 +- receiver/hostmetricsreceiver/go.mod | 38 +- receiver/hostmetricsreceiver/go.sum | 74 +- .../scraper/processscraper/process_scraper.go | 16 +- .../processscraper/process_scraper_test.go | 82 + receiver/httpcheckreceiver/go.mod | 42 +- receiver/httpcheckreceiver/go.sum | 76 +- receiver/iisreceiver/go.mod | 34 +- receiver/iisreceiver/go.sum | 56 +- receiver/influxdbreceiver/go.mod | 43 +- receiver/influxdbreceiver/go.sum | 78 +- receiver/jaegerreceiver/go.mod | 54 +- receiver/jaegerreceiver/go.sum | 108 +- receiver/jmxreceiver/go.mod | 58 +- receiver/jmxreceiver/go.sum | 1442 +++++++++++++++- receiver/journaldreceiver/go.mod | 31 +- receiver/journaldreceiver/go.sum | 58 +- receiver/k8sclusterreceiver/e2e_test.go | 129 ++ receiver/k8sclusterreceiver/go.mod | 85 +- receiver/k8sclusterreceiver/go.sum | 142 +- .../k8sclusterreceiver/informer_transform.go | 43 + .../informer_transform_test.go | 141 ++ .../internal/collection/collector.go | 29 +- .../internal/collection/collector_test.go | 22 +- .../internal/constants/constants.go | 2 - .../internal/demonset/daemonsets.go | 14 + .../internal/demonset/daemonsets_test.go | 74 + .../internal/deployment/deployments.go | 47 +- .../internal/deployment/deployments_test.go | 130 +- .../internal/deployment/doc.go | 6 + .../internal/deployment/documentation.md | 38 + .../internal/metadata/generated_config.go | 84 + .../metadata/generated_config_test.go | 74 + .../internal/metadata/generated_metrics.go | 272 ++++ .../metadata/generated_metrics_test.go | 146 ++ .../internal/metadata/testdata/config.yaml | 31 + .../internal/deployment/metadata.yaml | 39 + .../deployment/testdata/expected.yaml | 37 + .../k8sclusterreceiver/internal/hpa/doc.go | 9 + .../internal/hpa/documentation.md | 53 + .../k8sclusterreceiver/internal/hpa/hpa.go | 140 +- .../internal/hpa/hpa_test.go | 42 +- .../hpa/internal/metadata/generated_config.go | 88 + .../metadata/generated_config_test.go | 76 + .../internal/metadata/generated_metrics.go | 377 +++++ .../metadata/generated_metrics_test.go | 171 ++ .../internal/metadata/testdata/config.yaml | 35 + .../internal/hpa/metadata.yaml | 48 + .../k8sclusterreceiver/internal/jobs/jobs.go | 17 + .../internal/jobs/jobs_test.go | 70 + .../internal/metadata/metadata.go | 18 + .../internal/metadata/metadata_test.go | 39 + .../internal/namespace/doc.go | 6 + .../internal/namespace/documentation.md | 29 + .../internal/metadata/generated_config.go | 76 + .../metadata/generated_config_test.go | 70 + .../internal/metadata/generated_metrics.go | 206 +++ .../metadata/generated_metrics_test.go | 123 ++ .../internal/metadata/testdata/config.yaml | 23 + .../internal/namespace/metadata.yaml | 27 + .../internal/namespace/namespaces.go | 47 +- .../internal/namespace/namespaces_test.go | 37 +- .../internal/namespace/testdata/expected.yaml | 24 + .../k8sclusterreceiver/internal/node/doc.go | 6 + .../internal/node/documentation.md | 93 ++ .../internal/metadata/generated_config.go | 108 ++ .../metadata/generated_config_test.go | 86 + .../internal/metadata/generated_metrics.go | 662 ++++++++ .../metadata/generated_metrics_test.go | 251 +++ .../internal/metadata/testdata/config.yaml | 55 + .../internal/node/metadata.yaml | 75 + .../k8sclusterreceiver/internal/node/nodes.go | 116 +- .../internal/node/nodes_test.go | 135 +- .../internal/node/testdata/expected.yaml | 48 + .../k8sclusterreceiver/internal/pod/pods.go | 65 +- .../internal/pod/pods_test.go | 133 ++ .../internal/replicaset/replicasets.go | 14 + .../internal/replicaset/replicasets_test.go | 69 + .../internal/resourcequota/doc.go | 6 + .../internal/resourcequota/documentation.md | 50 + .../internal/metadata/generated_config.go | 84 + .../metadata/generated_config_test.go | 74 + .../internal/metadata/generated_metrics.go | 276 ++++ .../metadata/generated_metrics_test.go | 152 ++ .../internal/metadata/testdata/config.yaml | 31 + .../internal/resourcequota/metadata.yaml | 49 + .../internal/resourcequota/resourcequotas.go | 91 +- .../resourcequota/resourcequotas_test.go | 36 +- .../resourcequota/testdata/expected.yaml | 41 + .../internal/service/service.go | 40 + .../internal/service/service_test.go | 55 + .../internal/statefulset/doc.go | 6 + .../internal/statefulset/documentation.md | 54 + .../internal/metadata/generated_config.go | 92 ++ .../metadata/generated_config_test.go | 78 + .../internal/metadata/generated_metrics.go | 386 +++++ .../metadata/generated_metrics_test.go | 178 ++ .../internal/metadata/testdata/config.yaml | 39 + .../internal/statefulset/metadata.yaml | 53 + .../internal/statefulset/statefulsets.go | 103 +- .../internal/statefulset/statefulsets_test.go | 119 +- .../internal/testutils/metrics.go | 21 + receiver/k8sclusterreceiver/receiver.go | 2 +- .../testdata/e2e/collector/clusterrole.yaml | 63 + .../e2e/collector/clusterrolebinding.yaml | 12 + .../testdata/e2e/collector/configmap.yaml | 30 + .../testdata/e2e/collector/deployment.yaml | 57 + .../testdata/e2e/collector/service.yaml | 16 + .../e2e/collector/serviceaccount.yaml | 5 + .../testdata/e2e/expected.yaml | 1254 ++++++++++++++ receiver/k8sclusterreceiver/watcher.go | 13 +- receiver/k8sclusterreceiver/watcher_test.go | 3 +- receiver/k8seventsreceiver/go.mod | 32 +- receiver/k8seventsreceiver/go.sum | 64 +- receiver/k8sobjectsreceiver/go.mod | 32 +- receiver/k8sobjectsreceiver/go.sum | 64 +- .../broker_scraper_test.go | 2 +- .../kafkametricsreceiver/documentation.md | 6 +- receiver/kafkametricsreceiver/go.mod | 45 +- receiver/kafkametricsreceiver/go.sum | 74 +- .../internal/metadata/generated_metrics.go | 12 +- .../metadata/generated_metrics_test.go | 8 +- receiver/kafkametricsreceiver/metadata.yaml | 12 +- .../testdata/integration/expected.yaml | 3 +- receiver/kafkareceiver/go.mod | 43 +- receiver/kafkareceiver/go.sum | 74 +- receiver/kubeletstatsreceiver/go.mod | 39 +- receiver/kubeletstatsreceiver/go.sum | 70 +- receiver/lokireceiver/go.mod | 65 +- receiver/lokireceiver/go.sum | 111 +- receiver/memcachedreceiver/go.mod | 33 +- receiver/memcachedreceiver/go.sum | 58 +- receiver/mongodbatlasreceiver/README.md | 2 + receiver/mongodbatlasreceiver/go.mod | 41 +- receiver/mongodbatlasreceiver/go.sum | 66 +- receiver/mongodbreceiver/go.mod | 39 +- receiver/mongodbreceiver/go.sum | 70 +- receiver/mysqlreceiver/documentation.md | 4 +- receiver/mysqlreceiver/go.mod | 33 +- receiver/mysqlreceiver/go.sum | 58 +- .../internal/metadata/generated_metrics.go | 14 +- .../metadata/generated_metrics_test.go | 2 +- receiver/mysqlreceiver/metadata.yaml | 4 +- receiver/mysqlreceiver/scraper.go | 20 +- .../testdata/integration/expected.yaml | 2 +- .../testdata/scraper/expected.yaml | 23 +- receiver/nginxreceiver/documentation.md | 14 +- receiver/nginxreceiver/factory.go | 2 +- receiver/nginxreceiver/go.mod | 42 +- receiver/nginxreceiver/go.sum | 76 +- .../internal/metadata/generated_metrics.go | 30 +- .../metadata/generated_metrics_test.go | 18 +- .../internal/metadata/temporary_metrics.go | 8 +- receiver/nginxreceiver/metadata.yaml | 14 +- receiver/nginxreceiver/scraper.go | 14 +- receiver/nginxreceiver/scraper_test.go | 22 +- .../testdata/integration/expected.yaml | 4 +- .../testdata/scraper/expected.yaml | 5 +- ...> expected_with_connections_as_gauge.yaml} | 5 +- receiver/nsxtreceiver/client.go | 28 +- receiver/nsxtreceiver/go.mod | 42 +- receiver/nsxtreceiver/go.sum | 76 +- receiver/nsxtreceiver/scraper_test.go | 34 +- receiver/opencensusreceiver/go.mod | 57 +- receiver/opencensusreceiver/go.sum | 102 +- .../opencensusreceiver/opencensus_test.go | 2 +- receiver/oracledbreceiver/go.mod | 26 +- receiver/oracledbreceiver/go.sum | 56 +- receiver/otlpjsonfilereceiver/go.mod | 31 +- receiver/otlpjsonfilereceiver/go.sum | 58 +- receiver/podmanreceiver/go.mod | 30 +- receiver/podmanreceiver/go.sum | 66 +- receiver/postgresqlreceiver/go.mod | 35 +- receiver/postgresqlreceiver/go.sum | 62 +- receiver/prometheusexecreceiver/go.mod | 54 +- receiver/prometheusexecreceiver/go.sum | 109 +- receiver/prometheusreceiver/go.mod | 71 +- receiver/prometheusreceiver/go.sum | 124 +- receiver/pulsarreceiver/go.mod | 38 +- receiver/pulsarreceiver/go.sum | 65 +- receiver/purefareceiver/go.mod | 66 +- receiver/purefareceiver/go.sum | 119 +- receiver/purefbreceiver/go.mod | 66 +- receiver/purefbreceiver/go.sum | 119 +- receiver/rabbitmqreceiver/go.mod | 42 +- receiver/rabbitmqreceiver/go.sum | 76 +- receiver/receivercreator/go.mod | 42 +- receiver/receivercreator/go.sum | 70 +- receiver/redisreceiver/documentation.md | 8 +- receiver/redisreceiver/go.mod | 35 +- receiver/redisreceiver/go.sum | 62 +- .../internal/metadata/generated_metrics.go | 8 +- .../metadata/generated_metrics_test.go | 8 +- receiver/redisreceiver/metadata.yaml | 8 +- .../testdata/integration/expected.yaml | 138 +- receiver/riakreceiver/go.mod | 42 +- receiver/riakreceiver/go.sum | 76 +- receiver/saphanareceiver/go.mod | 37 +- receiver/saphanareceiver/go.sum | 64 +- receiver/sapmreceiver/go.mod | 48 +- receiver/sapmreceiver/go.sum | 84 +- receiver/sapmreceiver/trace_receiver_test.go | 114 +- receiver/signalfxreceiver/go.mod | 60 +- receiver/signalfxreceiver/go.sum | 111 +- .../examples/federation/prom-counter/go.mod | 2 +- .../examples/federation/prom-counter/go.sum | 4 +- receiver/simpleprometheusreceiver/go.mod | 64 +- receiver/simpleprometheusreceiver/go.sum | 119 +- receiver/skywalkingreceiver/go.mod | 50 +- receiver/skywalkingreceiver/go.sum | 108 +- .../trace/skywalkingproto_to_traces.go | 6 +- .../trace/skywalkingproto_to_traces_test.go | 35 + receiver/snmpreceiver/client.go | 2 +- receiver/snmpreceiver/go.mod | 40 +- receiver/snmpreceiver/go.sum | 70 +- receiver/snmpreceiver/otel_metric_helper.go | 6 +- receiver/snowflakereceiver/go.mod | 36 +- receiver/snowflakereceiver/go.sum | 64 +- receiver/solacereceiver/go.mod | 26 +- receiver/solacereceiver/go.sum | 53 +- receiver/splunkenterprisereceiver/go.mod | 18 +- receiver/splunkenterprisereceiver/go.sum | 36 +- receiver/splunkhecreceiver/go.mod | 54 +- receiver/splunkhecreceiver/go.sum | 80 +- receiver/sqlqueryreceiver/README.md | 100 +- receiver/sqlqueryreceiver/config.go | 35 +- receiver/sqlqueryreceiver/config_test.go | 35 +- receiver/sqlqueryreceiver/db_client.go | 6 +- receiver/sqlqueryreceiver/db_client_test.go | 10 +- receiver/sqlqueryreceiver/factory.go | 3 +- receiver/sqlqueryreceiver/factory_test.go | 7 + receiver/sqlqueryreceiver/go.mod | 48 +- receiver/sqlqueryreceiver/go.sum | 70 +- receiver/sqlqueryreceiver/integration_test.go | 324 +++- .../internal/metadata/generated_status.go | 1 + receiver/sqlqueryreceiver/logs_receiver.go | 314 ++++ receiver/sqlqueryreceiver/metadata.yaml | 1 + receiver/sqlqueryreceiver/receiver.go | 17 +- receiver/sqlqueryreceiver/receiver_test.go | 30 +- receiver/sqlqueryreceiver/row_scanner.go | 4 + receiver/sqlqueryreceiver/scraper.go | 7 +- ... config-invalid-missing-logs-metrics.yaml} | 0 .../config-logs-missing-body-column.yaml | 8 + .../testdata/config-logs.yaml | 10 + .../testdata/integration/mysql/init.sql | 15 + .../testdata/integration/oracle/init.sql | 19 + .../testdata/integration/postgresql/init.sql | 16 + receiver/sqlserverreceiver/go.mod | 34 +- receiver/sqlserverreceiver/go.sum | 56 +- receiver/sshcheckreceiver/go.mod | 36 +- receiver/sshcheckreceiver/go.sum | 66 +- receiver/statsdreceiver/go.mod | 35 +- receiver/statsdreceiver/go.sum | 64 +- receiver/syslogreceiver/go.mod | 33 +- receiver/syslogreceiver/go.sum | 62 +- receiver/tcplogreceiver/go.mod | 33 +- receiver/tcplogreceiver/go.sum | 62 +- receiver/udplogreceiver/go.mod | 31 +- receiver/udplogreceiver/go.sum | 58 +- receiver/vcenterreceiver/go.mod | 34 +- receiver/vcenterreceiver/go.sum | 60 +- receiver/wavefrontreceiver/README.md | 4 +- receiver/wavefrontreceiver/go.mod | 43 +- receiver/wavefrontreceiver/go.sum | 62 +- .../internal/metadata/generated_status.go | 2 +- receiver/wavefrontreceiver/metadata.yaml | 2 +- receiver/wavefrontreceiver/receiver_test.go | 106 +- .../wavefrontreceiver/wavefront_parser.go | 95 +- .../wavefront_parser_test.go | 340 ++-- receiver/webhookeventreceiver/README.md | 32 +- receiver/webhookeventreceiver/go.mod | 36 +- receiver/webhookeventreceiver/go.sum | 76 +- .../internal/metadata/generated_status.go | 2 +- receiver/webhookeventreceiver/metadata.yaml | 4 +- receiver/webhookeventreceiver/receiver.go | 5 + receiver/windowseventlogreceiver/go.mod | 31 +- receiver/windowseventlogreceiver/go.sum | 58 +- receiver/windowsperfcountersreceiver/go.mod | 34 +- receiver/windowsperfcountersreceiver/go.sum | 56 +- receiver/zipkinreceiver/go.mod | 42 +- receiver/zipkinreceiver/go.sum | 80 +- receiver/zookeeperreceiver/go.mod | 35 +- receiver/zookeeperreceiver/go.sum | 58 +- testbed/datareceivers/sapm.go | 16 +- testbed/datasenders/sapm.go | 13 +- testbed/go.mod | 149 +- testbed/go.sum | 177 +- .../mockawsxrayreceiver/go.mod | 28 +- .../mockawsxrayreceiver/go.sum | 60 +- .../mockdatadogagentexporter/go.mod | 36 +- .../mockdatadogagentexporter/go.sum | 76 +- testbed/stabilitytests/trace_test.go | 4 +- testbed/testbed/data_providers.go | 4 +- testbed/tests/trace_test.go | 22 +- versions.yaml | 3 +- 800 files changed, 37321 insertions(+), 15873 deletions(-) delete mode 100755 .chloggen/dd-receiver-listener.yaml delete mode 100644 .chloggen/fix-cri-o-log-format-time-layout.yaml delete mode 100644 .chloggen/fix-parent-error-scrapping.yaml delete mode 100755 .chloggen/fix_iis-scrape-queue-failure.yaml delete mode 100755 .chloggen/jgm-span-dimensions.yaml delete mode 100755 .chloggen/ottl-check-type.yaml delete mode 100755 .chloggen/ottl-standard-functions.yaml delete mode 100755 .chloggen/servicegraph-fix-metric-names.yaml delete mode 100644 .chloggen/set-prom-feature-gate-back-to-aplpha.yaml delete mode 100755 .chloggen/stanley.liu_add-telemetry-metric.yaml delete mode 100755 .chloggen/testbed-configurable-executable.yaml delete mode 100755 .chloggen/webhookevent_client.yaml delete mode 100644 .chloggen/websocket-processor.yaml create mode 100644 .github/workflows/auto-update-jmx-metrics-component.yml rename cmd/mdatagen/{metric-metadata.yaml => metadata-schema.yaml} (61%) create mode 100644 cmd/opampsupervisor/.gitignore create mode 100644 cmd/opampsupervisor/Makefile create mode 100644 cmd/opampsupervisor/README.md create mode 100644 cmd/opampsupervisor/go.mod create mode 100644 cmd/opampsupervisor/go.sum create mode 100644 cmd/opampsupervisor/main.go create mode 100644 cmd/opampsupervisor/specification/README.md create mode 100644 cmd/opampsupervisor/specification/extension-diagram.png create mode 100644 cmd/opampsupervisor/specification/supervisor-diagram.png create mode 100644 cmd/opampsupervisor/supervisor/commander/commander.go create mode 100644 cmd/opampsupervisor/supervisor/config/config.go create mode 100644 cmd/opampsupervisor/supervisor/healthchecker/healthchecker.go create mode 100644 cmd/opampsupervisor/supervisor/supervisor.go create mode 100644 cmd/opampsupervisor/testdata/supervisor_darwin.yaml create mode 100644 cmd/opampsupervisor/testdata/supervisor_linux.yaml create mode 100644 cmd/opampsupervisor/testdata/supervisor_windows.yaml create mode 100644 exporter/awsxrayexporter/internal/translator/span_links.go create mode 100644 exporter/awsxrayexporter/internal/translator/span_links_test.go delete mode 100644 exporter/datadogexporter/internal/metrics/system.go delete mode 100644 exporter/datadogexporter/internal/metrics/system_deprecated.go delete mode 100644 exporter/datadogexporter/internal/metrics/system_deprecated_test.go delete mode 100644 exporter/datadogexporter/internal/metrics/system_test.go create mode 100644 processor/k8sattributesprocessor/internal/metadata/generated_config.go create mode 100644 processor/k8sattributesprocessor/internal/metadata/generated_config_test.go create mode 100644 processor/k8sattributesprocessor/internal/metadata/testdata/config.yaml create mode 100644 receiver/k8sclusterreceiver/e2e_test.go create mode 100644 receiver/k8sclusterreceiver/informer_transform.go create mode 100644 receiver/k8sclusterreceiver/informer_transform_test.go create mode 100644 receiver/k8sclusterreceiver/internal/deployment/doc.go create mode 100644 receiver/k8sclusterreceiver/internal/deployment/documentation.md create mode 100644 receiver/k8sclusterreceiver/internal/deployment/internal/metadata/generated_config.go create mode 100644 receiver/k8sclusterreceiver/internal/deployment/internal/metadata/generated_config_test.go create mode 100644 receiver/k8sclusterreceiver/internal/deployment/internal/metadata/generated_metrics.go create mode 100644 receiver/k8sclusterreceiver/internal/deployment/internal/metadata/generated_metrics_test.go create mode 100644 receiver/k8sclusterreceiver/internal/deployment/internal/metadata/testdata/config.yaml create mode 100644 receiver/k8sclusterreceiver/internal/deployment/metadata.yaml create mode 100644 receiver/k8sclusterreceiver/internal/deployment/testdata/expected.yaml create mode 100644 receiver/k8sclusterreceiver/internal/hpa/doc.go create mode 100644 receiver/k8sclusterreceiver/internal/hpa/documentation.md create mode 100644 receiver/k8sclusterreceiver/internal/hpa/internal/metadata/generated_config.go create mode 100644 receiver/k8sclusterreceiver/internal/hpa/internal/metadata/generated_config_test.go create mode 100644 receiver/k8sclusterreceiver/internal/hpa/internal/metadata/generated_metrics.go create mode 100644 receiver/k8sclusterreceiver/internal/hpa/internal/metadata/generated_metrics_test.go create mode 100644 receiver/k8sclusterreceiver/internal/hpa/internal/metadata/testdata/config.yaml create mode 100644 receiver/k8sclusterreceiver/internal/hpa/metadata.yaml create mode 100644 receiver/k8sclusterreceiver/internal/namespace/doc.go create mode 100644 receiver/k8sclusterreceiver/internal/namespace/documentation.md create mode 100644 receiver/k8sclusterreceiver/internal/namespace/internal/metadata/generated_config.go create mode 100644 receiver/k8sclusterreceiver/internal/namespace/internal/metadata/generated_config_test.go create mode 100644 receiver/k8sclusterreceiver/internal/namespace/internal/metadata/generated_metrics.go create mode 100644 receiver/k8sclusterreceiver/internal/namespace/internal/metadata/generated_metrics_test.go create mode 100644 receiver/k8sclusterreceiver/internal/namespace/internal/metadata/testdata/config.yaml create mode 100644 receiver/k8sclusterreceiver/internal/namespace/metadata.yaml create mode 100644 receiver/k8sclusterreceiver/internal/namespace/testdata/expected.yaml create mode 100644 receiver/k8sclusterreceiver/internal/node/doc.go create mode 100644 receiver/k8sclusterreceiver/internal/node/documentation.md create mode 100644 receiver/k8sclusterreceiver/internal/node/internal/metadata/generated_config.go create mode 100644 receiver/k8sclusterreceiver/internal/node/internal/metadata/generated_config_test.go create mode 100644 receiver/k8sclusterreceiver/internal/node/internal/metadata/generated_metrics.go create mode 100644 receiver/k8sclusterreceiver/internal/node/internal/metadata/generated_metrics_test.go create mode 100644 receiver/k8sclusterreceiver/internal/node/internal/metadata/testdata/config.yaml create mode 100644 receiver/k8sclusterreceiver/internal/node/metadata.yaml create mode 100644 receiver/k8sclusterreceiver/internal/node/testdata/expected.yaml create mode 100644 receiver/k8sclusterreceiver/internal/resourcequota/doc.go create mode 100644 receiver/k8sclusterreceiver/internal/resourcequota/documentation.md create mode 100644 receiver/k8sclusterreceiver/internal/resourcequota/internal/metadata/generated_config.go create mode 100644 receiver/k8sclusterreceiver/internal/resourcequota/internal/metadata/generated_config_test.go create mode 100644 receiver/k8sclusterreceiver/internal/resourcequota/internal/metadata/generated_metrics.go create mode 100644 receiver/k8sclusterreceiver/internal/resourcequota/internal/metadata/generated_metrics_test.go create mode 100644 receiver/k8sclusterreceiver/internal/resourcequota/internal/metadata/testdata/config.yaml create mode 100644 receiver/k8sclusterreceiver/internal/resourcequota/metadata.yaml create mode 100644 receiver/k8sclusterreceiver/internal/resourcequota/testdata/expected.yaml create mode 100644 receiver/k8sclusterreceiver/internal/service/service.go create mode 100644 receiver/k8sclusterreceiver/internal/service/service_test.go create mode 100644 receiver/k8sclusterreceiver/internal/statefulset/doc.go create mode 100644 receiver/k8sclusterreceiver/internal/statefulset/documentation.md create mode 100644 receiver/k8sclusterreceiver/internal/statefulset/internal/metadata/generated_config.go create mode 100644 receiver/k8sclusterreceiver/internal/statefulset/internal/metadata/generated_config_test.go create mode 100644 receiver/k8sclusterreceiver/internal/statefulset/internal/metadata/generated_metrics.go create mode 100644 receiver/k8sclusterreceiver/internal/statefulset/internal/metadata/generated_metrics_test.go create mode 100644 receiver/k8sclusterreceiver/internal/statefulset/internal/metadata/testdata/config.yaml create mode 100644 receiver/k8sclusterreceiver/internal/statefulset/metadata.yaml create mode 100644 receiver/k8sclusterreceiver/testdata/e2e/collector/clusterrole.yaml create mode 100644 receiver/k8sclusterreceiver/testdata/e2e/collector/clusterrolebinding.yaml create mode 100644 receiver/k8sclusterreceiver/testdata/e2e/collector/configmap.yaml create mode 100644 receiver/k8sclusterreceiver/testdata/e2e/collector/deployment.yaml create mode 100644 receiver/k8sclusterreceiver/testdata/e2e/collector/service.yaml create mode 100644 receiver/k8sclusterreceiver/testdata/e2e/collector/serviceaccount.yaml create mode 100644 receiver/k8sclusterreceiver/testdata/e2e/expected.yaml rename receiver/nginxreceiver/testdata/scraper/{expected_with_connections_as_sum.yaml => expected_with_connections_as_gauge.yaml} (97%) create mode 100644 receiver/sqlqueryreceiver/logs_receiver.go rename receiver/sqlqueryreceiver/testdata/{config-invalid-missing-metrics.yaml => config-invalid-missing-logs-metrics.yaml} (100%) create mode 100644 receiver/sqlqueryreceiver/testdata/config-logs-missing-body-column.yaml create mode 100644 receiver/sqlqueryreceiver/testdata/config-logs.yaml diff --git a/.chloggen/dd-receiver-listener.yaml b/.chloggen/dd-receiver-listener.yaml deleted file mode 100755 index 646e5b836394..000000000000 --- a/.chloggen/dd-receiver-listener.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# Use this changelog template to create an entry for release notes. -# If your change doesn't affect end users, such as a test fix or a tooling change, -# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. - -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: 'bug_fix' - -# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) -component: datadogreceiver - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: "add client context to the traces received by datadogreceiver" - -# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. -issues: [22991] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: diff --git a/.chloggen/fix-cri-o-log-format-time-layout.yaml b/.chloggen/fix-cri-o-log-format-time-layout.yaml deleted file mode 100644 index c56e7d6c6673..000000000000 --- a/.chloggen/fix-cri-o-log-format-time-layout.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: bug_fix - -# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) -component: otel-collector - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Fix cri-o log format time layout - -# One or more tracking issues related to the change -issues: [23027] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: diff --git a/.chloggen/fix-parent-error-scrapping.yaml b/.chloggen/fix-parent-error-scrapping.yaml deleted file mode 100644 index f117e8560c0d..000000000000 --- a/.chloggen/fix-parent-error-scrapping.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# Use this changelog template to create an entry for release notes. -# If your change doesn't affect end users, such as a test fix or a tooling change, -# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. - -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: bug_fix - -# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) -component: processor/hostmetrics - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Fix issue where receiver fails to read parent-process information for some processes on Windows - -# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. -issues: [14679] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: diff --git a/.chloggen/fix_iis-scrape-queue-failure.yaml b/.chloggen/fix_iis-scrape-queue-failure.yaml deleted file mode 100755 index 31dddf2f31c1..000000000000 --- a/.chloggen/fix_iis-scrape-queue-failure.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: bug_fix - -# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) -component: iisreceiver - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Removes error message on every scrape where no items are present in the queue. - -# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. -issues: [14575] diff --git a/.chloggen/jgm-span-dimensions.yaml b/.chloggen/jgm-span-dimensions.yaml deleted file mode 100755 index 868eba7f8825..000000000000 --- a/.chloggen/jgm-span-dimensions.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# Use this changelog template to create an entry for release notes. -# If your change doesn't affect end users, such as a test fix or a tooling change, -# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. - -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: enhancement - -# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) -component: influxdbexporter - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Add configurable span dimensions - -# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. -issues: [23230] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: diff --git a/.chloggen/ottl-check-type.yaml b/.chloggen/ottl-check-type.yaml deleted file mode 100755 index 0560f2c2a2b1..000000000000 --- a/.chloggen/ottl-check-type.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# Use this changelog template to create an entry for release notes. -# If your change doesn't affect end users, such as a test fix or a tooling change, -# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. - -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: enhancement - -# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) -component: pkg/ottl - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Add new `IsString` and `IsMap` functions to facilitate type checking. - -# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. -issues: [22750] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: Especially useful for checking log body type before parsing. diff --git a/.chloggen/ottl-standard-functions.yaml b/.chloggen/ottl-standard-functions.yaml deleted file mode 100755 index e10518d2feec..000000000000 --- a/.chloggen/ottl-standard-functions.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# Use this changelog template to create an entry for release notes. -# If your change doesn't affect end users, such as a test fix or a tooling change, -# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. - -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: enhancement - -# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) -component: pkg/ottl - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Adds `StandardFuncs` and `StandardConverters` to facilitate function map generation. - -# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. -issues: [23190] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: This change means that new functions added to ottlfuncs get automatically added to Cotnrib components that use OTTL diff --git a/.chloggen/servicegraph-fix-metric-names.yaml b/.chloggen/servicegraph-fix-metric-names.yaml deleted file mode 100755 index 25afd8fabca7..000000000000 --- a/.chloggen/servicegraph-fix-metric-names.yaml +++ /dev/null @@ -1,18 +0,0 @@ -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: breaking - -# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) -component: servicegraphprocessor - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Change metric names to match the spec - -# One or more tracking issues related to the change -issues: [18743, 16578] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: Latency metric `traces_service_graph_request_duration_seconds` are deprecated in favor of server and client metrics | - `traces_service_graph_server_request_seconds` and `traces_service_graph_client_request_seconds` | - respectively. Use the feature gate `processor.servicegraph.legacyLatencyMetricNames` to enable the old metric names. diff --git a/.chloggen/set-prom-feature-gate-back-to-aplpha.yaml b/.chloggen/set-prom-feature-gate-back-to-aplpha.yaml deleted file mode 100644 index 65f641e7bffd..000000000000 --- a/.chloggen/set-prom-feature-gate-back-to-aplpha.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: breaking - -# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) -component: prometheusreceiver, prometheusexporter, prometheusremotewrite - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Disable `pkg.translator.prometheus.NormalizeName` feature gate by default - -# One or more tracking issues related to the change -issues: [23208] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: | - The feature gate `pkg.translator.prometheus.NormalizeName` was enabled prematurely while translation - on the prometheus receiver was incomplete. To address this, the feature gate has been reverted back to alpha status. - This will remain the case until the translation on the receiver side aligns with the translation on the exporter side, - or until it is replaced with a configuration option or completely removed. To maintain the current behavior, you can - enable the feature gate using the `--feature-gates=pkg.translator.prometheus.NormalizeName` command argument. - However, please note that the translation in the prometheus receiver is a subject to future changes. diff --git a/.chloggen/stanley.liu_add-telemetry-metric.yaml b/.chloggen/stanley.liu_add-telemetry-metric.yaml deleted file mode 100755 index 16e21afa4df4..000000000000 --- a/.chloggen/stanley.liu_add-telemetry-metric.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# Use this changelog template to create an entry for release notes. -# If your change doesn't affect end users, such as a test fix or a tooling change, -# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. - -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: enhancement - -# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) -component: exporter/datadog - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Adds metric otel.datadog_exporter.runtime_metrics.running to track when the Datadog Exporter receives a payload containing runtime metrics. - -# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. -issues: [23138] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: diff --git a/.chloggen/testbed-configurable-executable.yaml b/.chloggen/testbed-configurable-executable.yaml deleted file mode 100755 index 1a938cdc6f3e..000000000000 --- a/.chloggen/testbed-configurable-executable.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# Use this changelog template to create an entry for release notes. -# If your change doesn't affect end users, such as a test fix or a tooling change, -# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. - -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: enhancement - -# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) -component: testbed - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Add `WithAgentExePath`, which allows setting the path of the Collector executable. - -# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. -issues: [23258] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: diff --git a/.chloggen/webhookevent_client.yaml b/.chloggen/webhookevent_client.yaml deleted file mode 100755 index b760332ffca4..000000000000 --- a/.chloggen/webhookevent_client.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: 'enhancement' - -# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) -component: webhookeventreceiver - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: "first pass implementing the components internals." - -# One or more tracking issues related to the change -issues: [18101] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: diff --git a/.chloggen/websocket-processor.yaml b/.chloggen/websocket-processor.yaml deleted file mode 100644 index fc9a13dc83f0..000000000000 --- a/.chloggen/websocket-processor.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# Use this changelog template to create an entry for release notes. -# If your change doesn't affect end users, such as a test fix or a tooling change, -# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. - -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: new_component - -# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) -component: websocketprocessor - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Implementation of websocket processor - -# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. -issues: [19633] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: diff --git a/.github/ALLOWLIST b/.github/ALLOWLIST index 91e88d651a87..6eeba5a34610 100644 --- a/.github/ALLOWLIST +++ b/.github/ALLOWLIST @@ -23,3 +23,6 @@ internal/common ## DEPRECATED components ## UNMAINTAINED components +exporter/carbonexporter/ +receiver/carbonreceiver/ +receiver/wavefrontreceiver/ diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e3d9fbc9a183..9b7892e3eec6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -22,6 +22,7 @@ cmd/configschema/ @open-telemetry/collector-contrib-approvers @mx-psi @dmitryax @pmcollins cmd/mdatagen/ @open-telemetry/collector-contrib-approvers @dmitryax +cmd/opampsupervisor/ @open-telemetry/collector-contrib-approvers @evan-bradley @atoulme @tigrannajaryan cmd/otelcontribcol/ @open-telemetry/collector-contrib-approvers cmd/oteltestbedcol/ @open-telemetry/collector-contrib-approvers cmd/telemetrygen/ @open-telemetry/collector-contrib-approvers @mx-psi @codeboten @@ -42,7 +43,6 @@ exporter/awss3exporter/ @open-telemetry/collect exporter/awsxrayexporter/ @open-telemetry/collector-contrib-approvers @wangzlei @srprash exporter/azuremonitorexporter/ @open-telemetry/collector-contrib-approvers @pcwiese exporter/azuredataexplorerexporter/ @open-telemetry/collector-contrib-approvers @asaharan @ag-ramachandran -exporter/carbonexporter/ @open-telemetry/collector-contrib-approvers exporter/clickhouseexporter/ @open-telemetry/collector-contrib-approvers @hanjm @dmitryax @Frapschen exporter/cassandraexporter/ @open-telemetry/collector-contrib-approvers @atoulme @emreyalvac exporter/coralogixexporter/ @open-telemetry/collector-contrib-approvers @oded-dd @povilasv @matej-g @@ -52,8 +52,8 @@ exporter/dynatraceexporter/ @open-telemetry/collect exporter/elasticsearchexporter/ @open-telemetry/collector-contrib-approvers @JaredTan95 exporter/f5cloudexporter/ @open-telemetry/collector-contrib-approvers @gramidt exporter/fileexporter/ @open-telemetry/collector-contrib-approvers @atingchen -exporter/googlecloudexporter/ @open-telemetry/collector-contrib-approvers @aabmass @dashpole @jsuereth @punya @tbarker25 @damemi -exporter/googlemanagedprometheusexporter/ @open-telemetry/collector-contrib-approvers @aabmass @dashpole @jsuereth @punya @tbarker25 @damemi +exporter/googlecloudexporter/ @open-telemetry/collector-contrib-approvers @aabmass @dashpole @jsuereth @punya @tbarker25 @damemi @psx95 +exporter/googlemanagedprometheusexporter/ @open-telemetry/collector-contrib-approvers @aabmass @dashpole @jsuereth @punya @tbarker25 @damemi @psx95 exporter/googlecloudpubsubexporter/ @open-telemetry/collector-contrib-approvers @alexvanboxel exporter/influxdbexporter/ @open-telemetry/collector-contrib-approvers @jacobmarble exporter/instanaexporter/ @open-telemetry/collector-contrib-approvers @jpkrohling @hickeyma @@ -84,7 +84,7 @@ exporter/zipkinexporter/ @open-telemetry/collect extension/asapauthextension/ @open-telemetry/collector-contrib-approvers @jamesmoessis @MovieStoreGuy extension/awsproxy/ @open-telemetry/collector-contrib-approvers @Aneurysm9 @mxiamxia extension/basicauthextension/ @open-telemetry/collector-contrib-approvers @jpkrohling @svrakitin -extension/bearertokenauthextension/ @open-telemetry/collector-contrib-approvers @jpkrohling @pavankrish123 +extension/bearertokenauthextension/ @open-telemetry/collector-contrib-approvers @jpkrohling @pavankrish123 @frzifus extension/headerssetterextension/ @open-telemetry/collector-contrib-approvers @jpkrohling @kovrus extension/healthcheckextension/ @open-telemetry/collector-contrib-approvers @jpkrohling extension/httpforwarder/ @open-telemetry/collector-contrib-approvers @atoulme @rmfitzpatrick @@ -136,7 +136,7 @@ processor/cumulativetodeltaprocessor/ @open-telemetry/collect processor/datadogprocessor/ @open-telemetry/collector-contrib-approvers @mx-psi @gbbr @dineshg13 processor/deltatorateprocessor/ @open-telemetry/collector-contrib-approvers @Aneurysm9 processor/filterprocessor/ @open-telemetry/collector-contrib-approvers @TylerHelmuth @boostchicken -processor/groupbyattrsprocessor/ @open-telemetry/collector-contrib-approvers +processor/groupbyattrsprocessor/ @open-telemetry/collector-contrib-approvers @rnishtala-sumo processor/groupbytraceprocessor/ @open-telemetry/collector-contrib-approvers @jpkrohling processor/k8sattributesprocessor/ @open-telemetry/collector-contrib-approvers @dmitryax @rmfitzpatrick @fatsheep9146 processor/logstransformprocessor/ @open-telemetry/collector-contrib-approvers @djaglowski @dehaansa @@ -172,7 +172,6 @@ receiver/awsxrayreceiver/ @open-telemetry/collect receiver/azureblobreceiver/ @open-telemetry/collector-contrib-approvers @eedorenko @mx-psi receiver/azuremonitorreceiver/ @open-telemetry/collector-contrib-approvers @altuner @codeboten receiver/bigipreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski @StefanKurek -receiver/carbonreceiver/ @open-telemetry/collector-contrib-approvers receiver/chronyreceiver/ @open-telemetry/collector-contrib-approvers @MovieStoreGuy @jamesmoessis receiver/cloudflarereceiver/ @open-telemetry/collector-contrib-approvers @dehaansa @djaglowski receiver/cloudfoundryreceiver/ @open-telemetry/collector-contrib-approvers @agoallikmaa @pellared @crobert-1 @@ -183,7 +182,7 @@ receiver/dockerstatsreceiver/ @open-telemetry/collect receiver/elasticsearchreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski @binaryfissiongames receiver/expvarreceiver/ @open-telemetry/collector-contrib-approvers @jamesmoessis @MovieStoreGuy receiver/filelogreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski -receiver/filereceiver/ @open-telemetry/collector-contrib-approvers @pmcollins @djaglowski +receiver/filereceiver/ @open-telemetry/collector-contrib-approvers @pmcollins @djaglowski receiver/filestatsreceiver/ @open-telemetry/collector-contrib-approvers @atoulme receiver/flinkmetricsreceiver/ @open-telemetry/collector-contrib-approvers @jonathanwamsley @djaglowski receiver/fluentforwardreceiver/ @open-telemetry/collector-contrib-approvers @dmitryax @@ -236,13 +235,12 @@ receiver/splunkhecreceiver/ @open-telemetry/collect receiver/snowflakereceiver/ @open-telemetry/collector-contrib-approvers @dmitryax @shalper2 receiver/sqlqueryreceiver/ @open-telemetry/collector-contrib-approvers @dmitryax @pmcollins receiver/sqlserverreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski @StefanKurek -receiver/sshcheckreceiver/ @open-telemetry/collector-contrib-approvers @nslaughter @codeboten +receiver/sshcheckreceiver/ @open-telemetry/collector-contrib-approvers @nslaughter @codeboten receiver/statsdreceiver/ @open-telemetry/collector-contrib-approvers @jmacd @dmitryax receiver/syslogreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski receiver/tcplogreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski receiver/udplogreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski receiver/vcenterreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski @schmikei -receiver/wavefrontreceiver/ @open-telemetry/collector-contrib-approvers receiver/webhookeventreceiver/ @open-telemetry/collector-contrib-approvers @atoulme @shalper2 receiver/windowseventlogreceiver/ @open-telemetry/collector-contrib-approvers @djaglowski @armstrmi receiver/windowsperfcountersreceiver/ @open-telemetry/collector-contrib-approvers @dashpole @@ -252,3 +250,11 @@ receiver/zookeeperreceiver/ @open-telemetry/collect testbed/ @open-telemetry/collector-contrib-approvers @open-telemetry/collector-approvers testbed/mockdatareceivers/mockawsxrayreceiver/ @open-telemetry/collector-contrib-approvers @wangzlei @srprash testbed/mockdatasenders/mockdatadogagentexporter/ @open-telemetry/collector-contrib-approvers @boostchicken + + +## UNMAINTAINED components +## The Github issue template generation code needs this to generate the corresponding labels. + +exporter/carbonexporter/ @open-telemetry/collector-contrib-approvers +receiver/carbonreceiver/ @open-telemetry/collector-contrib-approvers +receiver/wavefrontreceiver/ @open-telemetry/collector-contrib-approvers diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 4107accc67e5..68316bc0df41 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -20,6 +20,7 @@ body: # Start Collector components list - cmd/configschema - cmd/mdatagen + - cmd/opampsupervisor - cmd/otelcontribcol - cmd/oteltestbedcol - cmd/telemetrygen diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml index 9680ffa19da9..1c9d4773bc55 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -14,6 +14,7 @@ body: # Start Collector components list - cmd/configschema - cmd/mdatagen + - cmd/opampsupervisor - cmd/otelcontribcol - cmd/oteltestbedcol - cmd/telemetrygen diff --git a/.github/ISSUE_TEMPLATE/other.yaml b/.github/ISSUE_TEMPLATE/other.yaml index 1746a9f0c376..3c6069627cc0 100644 --- a/.github/ISSUE_TEMPLATE/other.yaml +++ b/.github/ISSUE_TEMPLATE/other.yaml @@ -14,6 +14,7 @@ body: # Start Collector components list - cmd/configschema - cmd/mdatagen + - cmd/opampsupervisor - cmd/otelcontribcol - cmd/oteltestbedcol - cmd/telemetrygen diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3d76b7033704..472a1cb63107 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -17,6 +17,11 @@ updates: schedule: interval: "weekly" day: "wednesday" + - package-ecosystem: "gomod" + directory: "/cmd/opampsupervisor" + schedule: + interval: "weekly" + day: "wednesday" - package-ecosystem: "gomod" directory: "/cmd/otelcontribcol" schedule: @@ -1097,8 +1102,3 @@ updates: schedule: interval: "weekly" day: "wednesday" - - package-ecosystem: "gomod" - directory: "/receiver/tcplogreceiver" - schedule: - interval: "weekly" - day: "wednesday" diff --git a/.github/workflows/auto-update-jmx-metrics-component.yml b/.github/workflows/auto-update-jmx-metrics-component.yml new file mode 100644 index 000000000000..357898e9502d --- /dev/null +++ b/.github/workflows/auto-update-jmx-metrics-component.yml @@ -0,0 +1,116 @@ +name: Auto-update JMX metrics component + +on: + schedule: + # Daily at 01:30 (UTC) + - cron: '30 1 * * *' + workflow_dispatch: + +jobs: + check-versions: + runs-on: ubuntu-latest + outputs: + latest-version: ${{ steps.check-versions.outputs.latest-version }} + already-added: ${{ steps.check-versions.outputs.already-added }} + already-opened: ${{ steps.check-versions.outputs.already-opened }} + steps: + - uses: actions/checkout@v3 + + - id: check-versions + name: Check versions + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + latest_version=$(gh release view \ + --repo open-telemetry/opentelemetry-java-contrib \ + --json tagName \ + --jq .tagName \ + | sed 's/^v//') + + # jmx metric gatherer is currently alpha + latest_version=$latest_version-alpha + + if grep -Pzo "version: \"$latest_version\",\s*jar:\s*\"JMX metrics gatherer\"" receiver/jmxreceiver/supported_jars.go; then + already_added=true + fi + + matches=$(gh pr list \ + --author opentelemetrybot \ + --state open \ + --search "in:title \"Add JMX metrics gatherer version $latest_version\"") + if [ ! -z "$matches" ] + then + already_opened=true + fi + + echo "latest-version=$latest_version" >> $GITHUB_OUTPUT + echo "already-added=$already_added" >> $GITHUB_OUTPUT + echo "already-opened=$already_opened" >> $GITHUB_OUTPUT + + update-jmx-metrics-component: + runs-on: ubuntu-latest + if: | + needs.check-versions.outputs.already-added != 'true' && + needs.check-versions.outputs.already-opened != 'true' + needs: + - check-versions + steps: + - uses: actions/checkout@v3 + + - name: Update version + env: + VERSION: ${{ needs.check-versions.outputs.latest-version }} + run: | + if [[ ! $VERSION =~ -alpha$ ]]; then + echo currently expecting jmx metrics version to end with "-alpha" + exit 1 + fi + + version=${VERSION//-alpha/} + hash=$(curl -L https://github.com/open-telemetry/opentelemetry-java-contrib/releases/download/v$version/opentelemetry-jmx-metrics.jar \ + | sha256sum \ + | cut -d ' ' -f 1) + + # NOTE there are intentional tab characters in the line below + sed -i "/^var jmxMetricsGathererVersions/a \ \"$hash\": {\n version: \"$VERSION\",\n jar: \"JMX metrics gatherer\",\n }," receiver/jmxreceiver/supported_jars.go + git diff + + - name: Use CLA approved github bot + run: | + git config user.name opentelemetrybot + git config user.email 107717825+opentelemetrybot@users.noreply.github.com + + - name: Create pull request against main + env: + VERSION: ${{ needs.check-versions.outputs.latest-version }} + # not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows + GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} + run: | + message="Add JMX metrics gatherer version $VERSION" + body="Add JMX metrics gatherer version \`$VERSION\`. + + cc @open-telemetry/java-contrib-approvers + " + branch="opentelemetrybot/add-jmx-metrics-gatherer-${VERSION}" + + git checkout -b $branch + git commit -a -m "$message" + git push --set-upstream origin $branch + url=$(gh pr create --title "$message" \ + --body "$body" \ + --base main) + + pull_request_number=${url//*\//} + + # see the template for change log entry file at blob/main/.chloggen/TEMPLATE.yaml + cat > .chloggen/add-jmx-metrics-gatherer-$VERSION.yaml << EOF + change_type: enhancement + component: jmxreceiver + note: Add the JMX metrics gatherer version $VERSION to the supported jars hash list + issues: [ $pull_request_number ] + EOF + + git add .chloggen/add-jmx-metrics-gatherer-$VERSION.yaml + + git commit -m "Add change log entry" + git push diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index e3da90e0747c..f6758913ffde 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -78,7 +78,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: "1.20" cache: false - name: Cache Go id: go-cache @@ -292,10 +292,14 @@ jobs: with: name: coverage-artifacts - name: Upload coverage report - uses: codecov/codecov-action@v3 - with: - fail_ci_if_error: true - verbose: true + uses: Wandalen/wretry.action@v1.0.36 + with: + action: codecov/codecov-action@v3 + with: | + fail_ci_if_error: true + verbose: true + attempt_limit: 5 + attempt_delay: 10000 integration-tests: runs-on: ubuntu-latest diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index c53204e9e415..121f1e000781 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -9,6 +9,37 @@ on: pull_request: jobs: + docker-build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: 1.19 + cache: false + - name: Cache Go + id: go-cache + uses: actions/cache@v3 + with: + path: | + ~/go/bin + ~/go/pkg/mod + key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} + - name: Install dependencies + if: steps.go-cache.outputs.cache-hit != 'true' + run: make -j2 gomoddownload + - name: Build Docker Image + run: | + make docker-otelcontribcol + - name: export image to tar + run: | + docker save otelcontribcol:latest > /tmp/otelcontribcol.tar + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: otelcontribcol + path: /tmp/otelcontribcol.tar kubernetes-test: env: KUBECONFIG: /tmp/kube-config-otelcol-e2e-testing @@ -16,6 +47,7 @@ jobs: matrix: k8s-version: ["v1.26.0", "v1.25.3", "v1.24.7", "v1.23.13"] runs-on: ubuntu-latest + needs: docker-build steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 @@ -33,19 +65,29 @@ jobs: - name: Install dependencies if: steps.go-cache.outputs.cache-hit != 'true' run: make -j2 gomoddownload - - name: Build Docker Image - run: | - make docker-otelcontribcol - name: Create kind cluster uses: helm/kind-action@v1.7.0 with: node_image: kindest/node:${{ matrix.k8s-version }} kubectl_version: ${{ matrix.k8s-version }} cluster_name: kind + - name: Download artifact + uses: actions/download-artifact@v3 + with: + name: otelcontribcol + path: /tmp + - name: Load Docker image + run: | + docker load --input /tmp/otelcontribcol.tar - name: Kind load image run: | kind load docker-image otelcontribcol:latest --name kind - - name: run e2e tests + - name: run k8sclusterreceiver e2e tests + run: | + cd receiver/k8sclusterreceiver + go test -v --tags=e2e + - name: run k8sattributesprocessor e2e tests run: | cd processor/k8sattributesprocessor go test -v --tags=e2e + diff --git a/.gitignore b/.gitignore index 7518e3156227..fd937a38f1b4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ local/ +vendor/ # GoLand IDEA /.idea/ diff --git a/.golangci.yml b/.golangci.yml index 317fa392ecf6..0f6457b67cc2 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -129,6 +129,7 @@ linters: - errcheck - errorlint - exportloopref + - exhaustive - gci - gocritic - gofmt @@ -153,3 +154,205 @@ issues: - text: "G402:" linters: - gosec + # Following exclude-rules are used to exclude the existing components which do not pass exhaustive lint, + # in order to enable the exhaustive lint check. + # We should not add more exclude-rules. + # The progress of solving existing exclude-rules will be tracked in https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/23266 + - path: awscontainerinsightreceiver + linters: + - exhaustive + - path: azureeventhubreceiver + linters: + - exhaustive + - path: filereceiver + linters: + - exhaustive + - path: fluentforwardreceiver + linters: + - exhaustive + - path: googlecloudpubsubreceiver + linters: + - exhaustive + - path: googlecloudspannerreceiver + linters: + - exhaustive + - path: k8sclusterreceiver + linters: + - exhaustive + - path: kubeletstatsreceiver + linters: + - exhaustive + - path: podmanreceiver + linters: + - exhaustive + - path: prometheusreceiver + linters: + - exhaustive + - path: receivercreator + linters: + - exhaustive + - path: statsdreceiver + linters: + - exhaustive + - path: attributesprocessor + linters: + - exhaustive + - path: cumulativetodeltaprocessor + linters: + - exhaustive + - path: deltatorateprocessor + linters: + - exhaustive + - path: groupbyattrsprocessor + linters: + - exhaustive + - path: filterprocessor + linters: + - exhaustive + - path: metricsgenerationprocessor + linters: + - exhaustive + - path: metricstransformprocessor + linters: + - exhaustive + - path: probabilisticsamplerprocessor + linters: + - exhaustive + - path: servicegraphprocessor + linters: + - exhaustive + - path: spanprocessor + linters: + - exhaustive + - path: resourcedetectionprocessor + linters: + - exhaustive + - path: tailsamplingprocessor + linters: + - exhaustive + - path: transformprocessor + linters: + - exhaustive + - path: alibabacloudlogserviceexporter + linters: + - exhaustive + - path: awsemfexporter + linters: + - exhaustive + - path: awsxrayexporter + linters: + - exhaustive + - path: azuremonitorexporter + linters: + - exhaustive + - path: azuredataexplorerexporter + linters: + - exhaustive + - path: carbonexporter + linters: + - exhaustive + - path: coralogixexporter + linters: + - exhaustive + - path: clickhouseexporter + linters: + - exhaustive + - path: datasetexporter + linters: + - exhaustive + - path: dynatraceexporter + linters: + - exhaustive + - path: elasticsearchexporter + linters: + - exhaustive + - path: datadogexporter + linters: + - exhaustive + - path: googlecloudpubsubexporter + linters: + - exhaustive + - path: instanaexporter + linters: + - exhaustive + - path: jaegerthrifthttpexporter + linters: + - exhaustive + - path: logzioexporter + linters: + - exhaustive + - path: sentryexporter + linters: + - exhaustive + - path: prometheusexporter + linters: + - exhaustive + - path: prometheusremotewriteexporter + linters: + - exhaustive + - path: sumologicexporter + linters: + - exhaustive + - path: skywalkingexporter + linters: + - exhaustive + - path: splunkhecexporter + linters: + - exhaustive + - path: signalfxexporter + linters: + - exhaustive + - path: tanzuobservabilityexporter + linters: + - exhaustive + - path: k8sobserver + linters: + - exhaustive + - path: containerinsight + linters: + - exhaustive + - path: filter + linters: + - exhaustive + - path: coreinternal + linters: + - exhaustive + - path: k8sconfig + linters: + - exhaustive + - path: pdatatest + linters: + - exhaustive + - path: ottl + linters: + - exhaustive + - path: resourcetotelemetry + linters: + - exhaustive + - path: jaeger + linters: + - exhaustive + - path: prometheus + linters: + - exhaustive + - path: loki + linters: + - exhaustive + - path: opencensus + linters: + - exhaustive + - path: signalfx + linters: + - exhaustive + - path: zipkin + linters: + - exhaustive + - path: mdatagen + linters: + - exhaustive + - path: configschema + linters: + - exhaustive + - path: testbed + linters: + - exhaustive \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 05ee72ada8fc..ffb5c54eb2d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,108 @@ +## v0.80.0 + +### 🛑 Breaking changes 🛑 + +- `redisreceiver`: Updates metric unit from no unit to Bytes. (#23454) + Affected metrics can be found below. + - redis.clients.max_input_buffer + - redis.clients.max_output_buffer + - redis.replication.backlog_first_byte_offset + - redis.replication.offset + +- `elasticsearchreceiver`: Bump 'receiver.elasticsearch.emitNodeVersionAttr' to stable (#16847) + All node metrics are now enriched with the node version resource attribute. +- `nginxreceiver`: Bump 'receiver.nginx.emitConnectionsCurrentAsSum' featuregate to beta (enabled by default) (#4326) +- `servicegraphprocessor`: Change metric names to match the spec (#18743, #16578) + Latency metric `traces_service_graph_request_duration_seconds` are deprecated in favor of server and client metrics | `traces_service_graph_server_request_seconds` and `traces_service_graph_client_request_seconds` | respectively. Use the feature gate `processor.servicegraph.legacyLatencyMetricNames` to enable the old metric names. +- `prometheusreceiver, prometheusexporter, prometheusremotewrite`: Disable `pkg.translator.prometheus.NormalizeName` feature gate by default (#23208) + The feature gate `pkg.translator.prometheus.NormalizeName` was enabled prematurely while translation + on the prometheus receiver was incomplete. To address this, the feature gate has been reverted back to alpha status. + This will remain the case until the translation on the receiver side aligns with the translation on the exporter side, + or until it is replaced with a configuration option or completely removed. To maintain the current behavior, you can + enable the feature gate using the `--feature-gates=pkg.translator.prometheus.NormalizeName` command argument. + However, please note that the translation in the prometheus receiver is a subject to future changes. + + +### 🚩 Deprecations 🚩 + +- `mysqlreceiver`: deprecate `mysql.locked_connects` in favor of `mysql.connection.errors` (#14138) +- `sumologicexporter`: deprecating options which are going to be removed (#23059) + The following options are going to be deprecated and removed in the future: + + - `metric_format: {carbon2, graphite}` (leaving only `prometheus`) + - `metadata_attributes: []` + - `graphite_template: