Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade elastic-agent-autodiscover dependency; use InitDefaults() to init default configuration #37458

Conversation

tetianakravchenko
Copy link
Contributor

@tetianakravchenko tetianakravchenko commented Dec 19, 2023

Proposed commit message

  • WHAT:
    • Upgrade elastic-agent-autodiscover dependency;
    • implement InitDefaults() for kubeAnnotatorConfig
    • add missing enriching parameters
  • WHY:
    • elastic-agent-autodiscover v0.6.6 includes this fix, that was causing unexpected behavior of add_resource_metadata configuration.
    • use InitDefaults from go-ucfg to ensure that the default config is always used before unpacking configuration, similar to Fix NewContainerMetadataEnricher to use default config for kubernetes module. #16857
    • add missing enriching parameters to demonstrate that parameters such as include_labels, etc can be used on the metricset configuration level

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

AddResourceMetadata is used for 3 different components:

  • autodiscover
    config:
templates:
            - config:
                - module: kubernetes
                  hosts: ["kube-state-metrics:8080"]
                  period: 10s
                  add_resource_metadata:
                    namespace:
                      include_labels: ["labelName"]
                    node:
                      include_labels: ["nodeLabel"]
                    deployment: true
                    cronjob: true
                  metricsets:
                    - state_node
                    - state_deployment
                    - ...
Screenshot 2023-12-19 at 10 53 18
  • k8s module
    config:
kubernetes.yml: |-
    - module: kubernetes
      add_resource_metadata:
        namespace:
          include_labels: ["labelName"]
        deployment: true
        cronjob: true
      metricsets:
        - node
        - system
        - pod
        - container
        - volume
Screenshot 2023-12-19 at 10 46 03
  • processor
    filebeat config:
filebeat.inputs:
    - type: container
      paths:
        - /var/log/containers/*.log
      processors:
        - add_kubernetes_metadata:
            add_resource_metadata:
              namespace:
                include_labels: ["labelName"]
            host: ${NODE_NAME}
            matchers:
            - logs_path:
                logs_path: "/var/log/containers/"
Screenshot 2023-12-19 at 11 01 09

metricbeat - this processor does not work:

  • on the top level of the configuration
  • on the module level
    TODO: update documentation and remove this processor from the metricbeat

Screenshots

Logs

…metadata config - elastic/elastic-agent-autodiscover#72

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Dec 19, 2023
@botelastic
Copy link

botelastic bot commented Dec 19, 2023

This pull request doesn't have a Team:<team> label.

Copy link
Contributor

mergify bot commented Dec 19, 2023

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @tetianakravchenko? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v8./d.0 is the label to automatically backport to the 8./d branch. /d is the digit

go.mod Outdated
@@ -405,7 +405,7 @@ replace (
github.com/docker/go-plugins-helpers => github.com/elastic/go-plugins-helpers v0.0.0-20200207104224-bdf17607b79f
github.com/dop251/goja => github.com/andrewkroh/goja v0.0.0-20190128172624-dd2ac4456e20
github.com/dop251/goja_nodejs => github.com/dop251/goja_nodejs v0.0.0-20171011081505-adff31b136e6

github.com/elastic/elastic-agent-autodiscover => /Users/tetianakravchenko/go/src/github.com/elastic/elastic-agent-autodiscover
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: replace with elastic/elastic-agent-autodiscover#72 when released

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder: We need the same for elastic-agent repo: https://github.com/elastic/elastic-agent/blob/main/go.mod#L15

Scope: "node",
AddResourceMetadata: metadata.GetDefaultResourceMetadataConfig(),
}
func (c *kubeAnnotatorConfig) InitDefaults() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elasticmachine
Copy link
Collaborator

💔 Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-12-19T09:54:33.693+0000

  • Duration: 95 min 52 sec

Test stats 🧪

Test Results
Failed 0
Passed 320
Skipped 5
Total 325

Steps errors 205

Expand to view the steps failures

Show only the first 10 steps failures

x-pack/winlogbeat-build-windows-2019 - mage build unitTest
  • Took 1 min 46 sec . View more details here
  • Description: mage build unitTest
x-pack/winlogbeat-build-windows-2019 - mage build unitTest
  • Took 0 min 27 sec . View more details here
  • Description: mage build unitTest
x-pack/winlogbeat-build-windows-2019 - mage build unitTest
  • Took 1 min 32 sec . View more details here
  • Description: mage build unitTest
x-pack/winlogbeat-windows-2022-windows-2022 - mage build unitTest
  • Took 1 min 37 sec . View more details here
  • Description: mage build unitTest
x-pack/winlogbeat-windows-2022-windows-2022 - mage build unitTest
  • Took 0 min 22 sec . View more details here
  • Description: mage build unitTest
x-pack/winlogbeat-windows-2022-windows-2022 - mage build unitTest
  • Took 0 min 30 sec . View more details here
  • Description: mage build unitTest
x-pack/winlogbeat-windows-2016-windows-2016 - mage build unitTest
  • Took 1 min 40 sec . View more details here
  • Description: mage build unitTest
x-pack/winlogbeat-windows-2016-windows-2016 - mage build unitTest
  • Took 0 min 29 sec . View more details here
  • Description: mage build unitTest
x-pack/winlogbeat-windows-2016-windows-2016 - mage build unitTest
  • Took 0 min 26 sec . View more details here
  • Description: mage build unitTest
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: Error 'hudson.AbortException: script returned exit code 1'

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
@elasticmachine
Copy link
Collaborator

❕ Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Start Time: 2023-12-20T10:30:12.608+0000

  • Duration: 33 min 39 sec

Test stats 🧪

Test Results
Failed 9
Passed 5210
Skipped 65
Total 5284

Test errors 9

Expand to view the tests failures

Build&Test / filebeat-windows-2022-windows-2022 / [empty] – TEST-go-unit.xml
  • no error details
  • Expand to view the stacktrace

     Test report file C:\Users\jenkins\workspace\PR-37458-2-5f5b537a-de64-48a7-8682-7163413c06f6\src\github.com\elastic\beats\build\filebeat\build\TEST-go-unit.xml was length 0 
    

Build&Test / x-pack/metricbeat-unitTest / [empty] – TEST-go-unit.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/PR-37458-2-db3c0bde-19db-4171-99f1-2c658ea50817/src/github.com/elastic/beats/build/x-pack/metricbeat/build/TEST-go-unit.xml was length 0 
    

Build&Test / x-pack/filebeat-goIntegTest / [empty] – TEST-go-integration.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/PR-37458-2-500d6624-d3d8-4d5e-bcae-2e6d74a35279/src/github.com/elastic/beats/build/x-pack/filebeat/build/TEST-go-integration.xml was length 0 
    

Build&Test / x-pack/libbeat-unitTest / [empty] – TEST-go-unit.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/PR-37458-2-b17e2f0f-96e4-401b-95db-23e9175faace/src/github.com/elastic/beats/build/x-pack/libbeat/build/TEST-go-unit.xml was length 0 
    

Build&Test / x-pack/filebeat-unitTest / [empty] – TEST-go-unit.xml
  • no error details
  • Expand to view the stacktrace

     Test report file /var/lib/jenkins/workspace/PR-37458-2-a32859dc-6ba4-4b87-915b-2128ddb97388/src/github.com/elastic/beats/build/x-pack/filebeat/build/TEST-go-unit.xml was length 0 
    

Build&Test / metricbeat-unitTest / TestAll – github.com/elastic/beats/v7/metricbeat/mb/testing/data
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestAll
    === RUN   TestAll/apache.status
    --- PASS: TestAll/apache.status (0.77s)
    === RUN   TestAll/apache.status/docs.plain
        testdata.go:238: Testing ../../../module/apache/status/_meta/testdata/docs.plain file
        testdata.go:307: Expected ../../../module/apache/status/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/apache.status/docs.plain (0.77s)
    === RUN   TestAll/ceph.mgr_cluster_disk
    --- PASS: TestAll/ceph.mgr_cluster_disk (1.53s)
    === RUN   TestAll/ceph.mgr_cluster_disk/failed.json
        testdata.go:238: Testing ../../../module/ceph/mgr_cluster_disk/_meta/testdata/failed.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_cluster_disk/_meta/testdata/failed.json-expected.json file
    --- PASS: TestAll/ceph.mgr_cluster_disk/failed.json (0.86s)
    === RUN   TestAll/ceph.mgr_cluster_disk/sample.json
        testdata.go:238: Testing ../../../module/ceph/mgr_cluster_disk/_meta/testdata/sample.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_cluster_disk/_meta/testdata/sample.json-expected.json file
    --- PASS: TestAll/ceph.mgr_cluster_disk/sample.json (0.67s)
    === RUN   TestAll/ceph.mgr_osd_perf
    --- PASS: TestAll/ceph.mgr_osd_perf (1.62s)
    === RUN   TestAll/ceph.mgr_osd_perf/failed.json
        testdata.go:238: Testing ../../../module/ceph/mgr_osd_perf/_meta/testdata/failed.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_osd_perf/_meta/testdata/failed.json-expected.json file
    --- PASS: TestAll/ceph.mgr_osd_perf/failed.json (0.73s)
    === RUN   TestAll/ceph.mgr_osd_perf/sample.json
        testdata.go:238: Testing ../../../module/ceph/mgr_osd_perf/_meta/testdata/sample.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_osd_perf/_meta/testdata/sample.json-expected.json file
    --- PASS: TestAll/ceph.mgr_osd_perf/sample.json (0.89s)
    === RUN   TestAll/ceph.mgr_osd_pool_stats
    --- PASS: TestAll/ceph.mgr_osd_pool_stats (1.51s)
    === RUN   TestAll/ceph.mgr_osd_pool_stats/failed.json
        testdata.go:238: Testing ../../../module/ceph/mgr_osd_pool_stats/_meta/testdata/failed.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_osd_pool_stats/_meta/testdata/failed.json-expected.json file
    --- PASS: TestAll/ceph.mgr_osd_pool_stats/failed.json (0.84s)
    === RUN   TestAll/ceph.mgr_osd_pool_stats/sample.json
        testdata.go:238: Testing ../../../module/ceph/mgr_osd_pool_stats/_meta/testdata/sample.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_osd_pool_stats/_meta/testdata/sample.json-expected.json file
    --- PASS: TestAll/ceph.mgr_osd_pool_stats/sample.json (0.66s)
    === RUN   TestAll/ceph.mgr_osd_tree
    --- PASS: TestAll/ceph.mgr_osd_tree (1.45s)
    === RUN   TestAll/ceph.mgr_osd_tree/failed.json
        testdata.go:238: Testing ../../../module/ceph/mgr_osd_tree/_meta/testdata/failed.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_osd_tree/_meta/testdata/failed.json-expected.json file
    --- PASS: TestAll/ceph.mgr_osd_tree/failed.json (0.82s)
    === RUN   TestAll/ceph.mgr_osd_tree/sample.json
        testdata.go:238: Testing ../../../module/ceph/mgr_osd_tree/_meta/testdata/sample.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_osd_tree/_meta/testdata/sample.json-expected.json file
    --- PASS: TestAll/ceph.mgr_osd_tree/sample.json (0.62s)
    === RUN   TestAll/ceph.mgr_pool_disk
    --- PASS: TestAll/ceph.mgr_pool_disk (1.36s)
    === RUN   TestAll/ceph.mgr_pool_disk/failed.json
        testdata.go:238: Testing ../../../module/ceph/mgr_pool_disk/_meta/testdata/failed.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_pool_disk/_meta/testdata/failed.json-expected.json file
    --- PASS: TestAll/ceph.mgr_pool_disk/failed.json (0.68s)
    === RUN   TestAll/ceph.mgr_pool_disk/sample.json
        testdata.go:238: Testing ../../../module/ceph/mgr_pool_disk/_meta/testdata/sample.json file
        testdata.go:307: Expected ../../../module/ceph/mgr_pool_disk/_meta/testdata/sample.json-expected.json file
    --- PASS: TestAll/ceph.mgr_pool_disk/sample.json (0.68s)
    === RUN   TestAll/ceph.monitor_health
    --- PASS: TestAll/ceph.monitor_health (0.69s)
    === RUN   TestAll/ceph.monitor_health/docs.json
        testdata.go:238: Testing ../../../module/ceph/monitor_health/_meta/testdata/docs.json file
        testdata.go:307: Expected ../../../module/ceph/monitor_health/_meta/testdata/docs.json-expected.json file
    --- PASS: TestAll/ceph.monitor_health/docs.json (0.69s)
    === RUN   TestAll/couchbase.cluster
    --- PASS: TestAll/couchbase.cluster (1.27s)
    === RUN   TestAll/couchbase.cluster/4.5.1.json
        testdata.go:238: Testing ../../../module/couchbase/cluster/_meta/testdata/4.5.1.json file
        testdata.go:307: Expected ../../../module/couchbase/cluster/_meta/testdata/4.5.1.json-expected.json file
    --- PASS: TestAll/couchbase.cluster/4.5.1.json (0.68s)
    === RUN   TestAll/couchbase.cluster/docs.json
        testdata.go:238: Testing ../../../module/couchbase/cluster/_meta/testdata/docs.json file
        testdata.go:307: Expected ../../../module/couchbase/cluster/_meta/testdata/docs.json-expected.json file
    --- PASS: TestAll/couchbase.cluster/docs.json (0.59s)
    === RUN   TestAll/couchbase.node
    --- PASS: TestAll/couchbase.node (1.16s)
    === RUN   TestAll/couchbase.node/4.5.1.json
        testdata.go:238: Testing ../../../module/couchbase/node/_meta/testdata/4.5.1.json file
        testdata.go:307: Expected ../../../module/couchbase/node/_meta/testdata/4.5.1.json-expected.json file
    --- PASS: TestAll/couchbase.node/4.5.1.json (0.56s)
    === RUN   TestAll/couchbase.node/docs.json
        testdata.go:238: Testing ../../../module/couchbase/node/_meta/testdata/docs.json file
        testdata.go:307: Expected ../../../module/couchbase/node/_meta/testdata/docs.json-expected.json file
    --- PASS: TestAll/couchbase.node/docs.json (0.60s)
    === RUN   TestAll/dropwizard.collector
    --- PASS: TestAll/dropwizard.collector (0.61s)
    === RUN   TestAll/dropwizard.collector/docs.json
        testdata.go:238: Testing ../../../module/dropwizard/collector/_meta/testdata/docs.json file
        testdata.go:307: Expected ../../../module/dropwizard/collector/_meta/testdata/docs.json-expected.json file
    --- PASS: TestAll/dropwizard.collector/docs.json (0.61s)
    === RUN   TestAll/etcd.metrics
    --- PASS: TestAll/etcd.metrics (0.63s)
    === RUN   TestAll/etcd.metrics/metrics.plain
        testdata.go:238: Testing ../../../module/etcd/metrics/_meta/testdata/metrics.plain file
        testdata.go:307: Expected ../../../module/etcd/metrics/_meta/testdata/metrics.plain-expected.json file
    --- PASS: TestAll/etcd.metrics/metrics.plain (0.63s)
    === RUN   TestAll/http.json
    --- PASS: TestAll/http.json (0.69s)
    === RUN   TestAll/http.json/docs.json
        testdata.go:238: Testing ../../../module/http/json/_meta/testdata/docs.json file
        testdata.go:307: Expected ../../../module/http/json/_meta/testdata/docs.json-expected.json file
    --- PASS: TestAll/http.json/docs.json (0.69s)
    === RUN   TestAll/kibana.status
    --- PASS: TestAll/kibana.status (1.41s)
    === RUN   TestAll/kibana.status/7.0.0.json
        testdata.go:238: Testing ../../../module/kibana/status/_meta/testdata/7.0.0.json file
        testdata.go:307: Expected ../../../module/kibana/status/_meta/testdata/7.0.0.json-expected.json file
    --- PASS: TestAll/kibana.status/7.0.0.json (0.73s)
    === RUN   TestAll/kibana.status/docs.json
        testdata.go:238: Testing ../../../module/kibana/status/_meta/testdata/docs.json file
        testdata.go:307: Expected ../../../module/kibana/status/_meta/testdata/docs.json-expected.json file
    --- PASS: TestAll/kibana.status/docs.json (0.68s)
    === RUN   TestAll/kubernetes.apiserver
    --- PASS: TestAll/kubernetes.apiserver (1.96s)
    === RUN   TestAll/kubernetes.apiserver/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/apiserver/_meta/testdata/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/apiserver/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.apiserver/docs.plain (1.96s)
    === RUN   TestAll/kubernetes.controllermanager
    --- PASS: TestAll/kubernetes.controllermanager (1.07s)
    === RUN   TestAll/kubernetes.controllermanager/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/controllermanager/_meta/testdata/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/controllermanager/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.controllermanager/docs.plain (1.07s)
    === RUN   TestAll/kubernetes.proxy
    --- PASS: TestAll/kubernetes.proxy (0.89s)
    === RUN   TestAll/kubernetes.proxy/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/proxy/_meta/testdata/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/proxy/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.proxy/docs.plain (0.89s)
    === RUN   TestAll/kubernetes.scheduler
    --- PASS: TestAll/kubernetes.scheduler (0.78s)
    === RUN   TestAll/kubernetes.scheduler/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/scheduler/_meta/testdata/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/scheduler/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.scheduler/docs.plain (0.77s)
    === RUN   TestAll/kubernetes.state_container
    --- PASS: TestAll/kubernetes.state_container (2.82s)
    === RUN   TestAll/kubernetes.state_container/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_container/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_container/docs.plain (0.81s)
    === RUN   TestAll/kubernetes.state_container/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_container/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_container/ksm.v2.10.0.plain (0.75s)
    === RUN   TestAll/kubernetes.state_container/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_container/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_container/ksm.v2.8.2.plain (0.70s)
    === RUN   TestAll/kubernetes.state_container/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_container/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_container/ksm.v2.9.2.plain (0.56s)
    === RUN   TestAll/kubernetes.state_cronjob
    --- PASS: TestAll/kubernetes.state_cronjob (2.15s)
    === RUN   TestAll/kubernetes.state_cronjob/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_cronjob/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_cronjob/docs.plain (0.52s)
    === RUN   TestAll/kubernetes.state_cronjob/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_cronjob/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_cronjob/ksm.v2.10.0.plain (0.50s)
    === RUN   TestAll/kubernetes.state_cronjob/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_cronjob/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_cronjob/ksm.v2.8.2.plain (0.65s)
    === RUN   TestAll/kubernetes.state_cronjob/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_cronjob/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_cronjob/ksm.v2.9.2.plain (0.48s)
    === RUN   TestAll/kubernetes.state_daemonset
    --- PASS: TestAll/kubernetes.state_daemonset (2.76s)
    === RUN   TestAll/kubernetes.state_daemonset/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_daemonset/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_daemonset/docs.plain (0.67s)
    === RUN   TestAll/kubernetes.state_daemonset/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_daemonset/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_daemonset/ksm.v2.10.0.plain (0.67s)
    === RUN   TestAll/kubernetes.state_daemonset/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_daemonset/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_daemonset/ksm.v2.8.2.plain (0.73s)
    === RUN   TestAll/kubernetes.state_daemonset/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_daemonset/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_daemonset/ksm.v2.9.2.plain (0.69s)
    === RUN   TestAll/kubernetes.state_deployment
    --- PASS: TestAll/kubernetes.state_deployment (2.47s)
    === RUN   TestAll/kubernetes.state_deployment/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_deployment/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_deployment/docs.plain (0.78s)
    === RUN   TestAll/kubernetes.state_deployment/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_deployment/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_deployment/ksm.v2.10.0.plain (0.68s)
    === RUN   TestAll/kubernetes.state_deployment/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_deployment/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_deployment/ksm.v2.8.2.plain (0.49s)
    === RUN   TestAll/kubernetes.state_deployment/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_deployment/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_deployment/ksm.v2.9.2.plain (0.52s)
    === RUN   TestAll/kubernetes.state_job
    --- PASS: TestAll/kubernetes.state_job (2.61s)
    === RUN   TestAll/kubernetes.state_job/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_job/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_job/docs.plain (0.48s)
    === RUN   TestAll/kubernetes.state_job/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_job/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_job/ksm.v2.10.0.plain (0.52s)
    === RUN   TestAll/kubernetes.state_job/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_job/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_job/ksm.v2.8.2.plain (0.76s)
    === RUN   TestAll/kubernetes.state_job/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_job/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_job/ksm.v2.9.2.plain (0.85s)
    === RUN   TestAll/kubernetes.state_namespace
    --- PASS: TestAll/kubernetes.state_namespace (3.46s)
    === RUN   TestAll/kubernetes.state_namespace/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_namespace/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_namespace/docs.plain (0.75s)
    === RUN   TestAll/kubernetes.state_namespace/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_namespace/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_namespace/ksm.v2.10.0.plain (1.04s)
    === RUN   TestAll/kubernetes.state_namespace/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_namespace/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_namespace/ksm.v2.8.2.plain (0.82s)
    === RUN   TestAll/kubernetes.state_namespace/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_namespace/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_namespace/ksm.v2.9.2.plain (0.85s)
    === RUN   TestAll/kubernetes.state_node
    --- PASS: TestAll/kubernetes.state_node (3.34s)
    === RUN   TestAll/kubernetes.state_node/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_node/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_node/docs.plain (0.79s)
    === RUN   TestAll/kubernetes.state_node/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_node/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_node/ksm.v2.10.0.plain (0.83s)
    === RUN   TestAll/kubernetes.state_node/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_node/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_node/ksm.v2.8.2.plain (0.87s)
    === RUN   TestAll/kubernetes.state_node/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_node/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_node/ksm.v2.9.2.plain (0.84s)
    === RUN   TestAll/kubernetes.state_persistentvolume
    --- PASS: TestAll/kubernetes.state_persistentvolume (3.41s)
    === RUN   TestAll/kubernetes.state_persistentvolume/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_persistentvolume/_meta/testdata/docs.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_persistentvolume/docs.plain (0.84s)
    === RUN   TestAll/kubernetes.state_persistentvolume/ksm.v2.10.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.10.0.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_persistentvolume/_meta/testdata/ksm.v2.10.0.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_persistentvolume/ksm.v2.10.0.plain (0.82s)
    === RUN   TestAll/kubernetes.state_persistentvolume/ksm.v2.8.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.8.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_persistentvolume/_meta/testdata/ksm.v2.8.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_persistentvolume/ksm.v2.8.2.plain (0.95s)
    === RUN   TestAll/kubernetes.state_persistentvolume/ksm.v2.9.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/ksm.v2.9.2.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_persistentvolume/_meta/testdata/ksm.v2.9.2.plain-expected.json file
    --- PASS: TestAll/kubernetes.state_persistentvolume/ksm.v2.9.2.plain (0.79s)
    === RUN   TestAll/kubernetes.state_persistentvolumeclaim
    === RUN   TestAll/kubernetes.state_persistentvolumeclaim/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
     
    

Build&Test / metricbeat-unitTest / TestAll/kubernetes.state_persistentvolumeclaim – github.com/elastic/beats/v7/metricbeat/mb/testing/data
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestAll/kubernetes.state_persistentvolumeclaim
     
    

Build&Test / metricbeat-unitTest / TestAll/kubernetes.state_persistentvolumeclaim/docs.plain – github.com/elastic/beats/v7/metricbeat/mb/testing/data
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestAll/kubernetes.state_persistentvolumeclaim/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/KSM/docs.plain file
     
    

Build&Test / metricbeat-unitTest / TestEventMappingV2_0 – github.com/elastic/beats/v7/metricbeat/module/kubernetes/apiserver
    Expand to view the error details

     Failed 
    

    Expand to view the stacktrace

     === RUN   TestEventMappingV2_0
        ptest.go:55: Testing ./_meta/test/metrics.2.0 file
     
    

Steps errors 1

Expand to view the steps failures

Error signal
  • Took 0 min 0 sec . View more details here
  • Description: Error 'org.jenkinsci.plugins.workflow.steps.FlowInterruptedException'

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-12-20T10:53:11.323+0000

  • Duration: 177 min 52 sec

Test stats 🧪

Test Results
Failed 0
Passed 28150
Skipped 1866
Total 30016

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@tetianakravchenko tetianakravchenko marked this pull request as ready for review December 20, 2023 13:51
@tetianakravchenko tetianakravchenko requested review from a team as code owners December 20, 2023 13:51
@@ -161,13 +161,7 @@ func NewResourceMetadataEnricher(
return &nilEnricher{}
}

// GetPodMetaGen requires cfg of type Config
commonMetaConfig := metadata.Config{}
if err := base.Module().UnpackConfig(&commonMetaConfig); err != nil {
Copy link
Contributor Author

@tetianakravchenko tetianakravchenko Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might miss smth here, but I am not sure why it was used here. cfg is used later to pass it to metadata.GetPodMetaGen, metadata.NewServiceMetadataGenerator and metadata.NewNamespaceAwareResourceMetadataGenerator, as result we get the default metadata.Config:
Screenshot 2023-12-20 at 15 22 48

All those functions are using cfg in NewResourceMetadataGenerator - where in the end happens the same

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MichaelKatsoulis as discussed - I've reverted this change and added missing metadata enrichment parameters to the configs 0215971

@MichaelKatsoulis
Copy link
Contributor

@tetianakravchenko can you update the description with what is the motivation of this PR changes. Was it driven from an issue or another PR ?

@tetianakravchenko
Copy link
Contributor Author

@MichaelKatsoulis done, main reason - elastic/elastic-agent#3636

…a configuration on the metricset level

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
@tetianakravchenko tetianakravchenko requested a review from a team as a code owner December 22, 2023 12:00
return &nilEnricher{}
}
cfg, _ := conf.NewConfigFrom(&commonMetaConfig)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you just moved the cfg creation higher in the code?

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
@elasticmachine
Copy link
Collaborator

❕ Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Start Time: 2023-12-22T12:00:34.786+0000

  • Duration: 121 min 56 sec

Test stats 🧪

Test Results
Failed 0
Passed 27716
Skipped 1866
Total 29582

Steps errors 1

Expand to view the steps failures

Error signal
  • Took 0 min 0 sec . View more details here
  • Description: Error 'org.jenkinsci.plugins.workflow.steps.FlowInterruptedException'

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

Copy link
Member

@cmacknz cmacknz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding approval for files owned by the Elastic Agent team.

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Duration: 184 min 5 sec

❕ Flaky test report

No test was executed to be analysed.

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@tetianakravchenko tetianakravchenko merged commit 8c4a40f into elastic:main Dec 27, 2023
125 checks passed
mergify bot pushed a commit that referenced this pull request Dec 27, 2023
…init default configuration (#37458)

* use InitDefaults(); elastic-agent-autodiscover: fix default resource metadata config - elastic/elastic-agent-autodiscover#72

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* revert unintended changes

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* upgrade elastic-agent-autodiscover lib to v0.6.6

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* run make update; fix linter issues

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* revert changes related to the 'commonMetaConfig'; add missing metadata configuration on the metricset level

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* x-pack/metricbeat: run make update

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

---------

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
(cherry picked from commit 8c4a40f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
mergify bot pushed a commit that referenced this pull request Dec 27, 2023
…init default configuration (#37458)

* use InitDefaults(); elastic-agent-autodiscover: fix default resource metadata config - elastic/elastic-agent-autodiscover#72

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* revert unintended changes

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* upgrade elastic-agent-autodiscover lib to v0.6.6

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* run make update; fix linter issues

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* revert changes related to the 'commonMetaConfig'; add missing metadata configuration on the metricset level

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* x-pack/metricbeat: run make update

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

---------

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
(cherry picked from commit 8c4a40f)

# Conflicts:
#	go.sum
tetianakravchenko added a commit that referenced this pull request Dec 28, 2023
…; use InitDefaults() to init default configuration (#37512)

* Upgrade elastic-agent-autodiscover dependency; use InitDefaults() to init default configuration (#37458)

* use InitDefaults(); elastic-agent-autodiscover: fix default resource metadata config - elastic/elastic-agent-autodiscover#72

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* revert unintended changes

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* upgrade elastic-agent-autodiscover lib to v0.6.6

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* run make update; fix linter issues

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* revert changes related to the 'commonMetaConfig'; add missing metadata configuration on the metricset level

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* x-pack/metricbeat: run make update

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

---------

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
(cherry picked from commit 8c4a40f)

# Conflicts:
#	go.sum

* fix merge conflicts

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* Revert "fix merge conflicts"

This reverts commit 88c08fc.

* fix conflicts only in the go.sum

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

---------

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Co-authored-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
tetianakravchenko added a commit that referenced this pull request Jan 2, 2024
…; use InitDefaults() to init default configuration (#37511)

* Upgrade elastic-agent-autodiscover dependency; use InitDefaults() to init default configuration (#37458)

* use InitDefaults(); elastic-agent-autodiscover: fix default resource metadata config - elastic/elastic-agent-autodiscover#72

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* revert unintended changes

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* upgrade elastic-agent-autodiscover lib to v0.6.6

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* run make update; fix linter issues

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* revert changes related to the 'commonMetaConfig'; add missing metadata configuration on the metricset level

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* x-pack/metricbeat: run make update

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

---------

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
(cherry picked from commit 8c4a40f)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum

* fix conflicts

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* update indirect dependencies

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* Revert "update indirect dependencies"

This reverts commit 7cd0de8.

* revert accidently removed garble_macho_executable binary

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

---------

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Co-authored-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Scholar-Li pushed a commit to Scholar-Li/beats that referenced this pull request Feb 5, 2024
…init default configuration (elastic#37458)

* use InitDefaults(); elastic-agent-autodiscover: fix default resource metadata config - elastic/elastic-agent-autodiscover#72

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* revert unintended changes

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* upgrade elastic-agent-autodiscover lib to v0.6.6

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* run make update; fix linter issues

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* revert changes related to the 'commonMetaConfig'; add missing metadata configuration on the metricset level

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

* x-pack/metricbeat: run make update

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>

---------

Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v8.11.0 Automated backport with mergify backport-v8.12.0 Automated backport with mergify needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants