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

[8.10](backport #36406) [Metricbeat][Kubernetes] Add metricset for state_namespace #36735

Closed
wants to merge 1 commit into from

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Oct 4, 2023

This is an automatic backport of pull request #36406 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

* Add metricset.

---------

Co-authored-by: Chris Mark <[email protected]>
(cherry picked from commit 165d970)
@mergify mergify bot requested review from a team as code owners October 4, 2023 06:38
@mergify mergify bot removed the request for review from a team October 4, 2023 06:38
@mergify mergify bot added the backport label Oct 4, 2023
@mergify mergify bot requested review from gizas and gsantoro October 4, 2023 06:38
@mergify mergify bot requested review from rdner and fearful-symmetry and removed request for a team October 4, 2023 06:39
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 4, 2023
@botelastic
Copy link

botelastic bot commented Oct 4, 2023

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

@gizas
Copy link
Contributor

gizas commented Oct 4, 2023

@constanca-m as this is not a bug bur rather a new update I would say not to backport it. It would be more clear that we support it from version >8.11.x

I would say that except beats PRs we would need package updates as well

@constanca-m constanca-m closed this Oct 4, 2023
@mergify mergify bot deleted the mergify/bp/8.10/pr-36406 branch October 4, 2023 07:09
@elasticmachine
Copy link
Collaborator

💔 Tests 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-10-04T06:39:16.508+0000

  • Duration: 51 min 55 sec

Test stats 🧪

Test Results
Failed 6
Passed 3634
Skipped 328
Total 3968

Test errors 6

Expand to view the tests failures

Build&Test / metricbeat-unitTest / TestAll/kubernetes.state_namespace/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_namespace/docs.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/docs.plain file
        testdata.go:307: Expected ../../../module/kubernetes/state_namespace/_meta/testdata/docs.plain-expected.json file
        testdata.go:340: Event was not expected: {"event":{"dataset":"kubernetes.state_namespace","duration":115000,"module":"kubernetes"},"kubernetes":{"namespace":"kube-system","state_namespace":{"created":{"sec":1673879559},"status":{"active":true,"terminating":false}}},"metricset":{"name":"state_namespace","period":10000},"service":{"address":"127.0.0.1:55555","type":"kubernetes"}}
        testdata.go:340: Event was not expected: {"event":{"dataset":"kubernetes.state_namespace","duration":115000,"module":"kubernetes"},"kubernetes":{"namespace":"kube-node-lease","state_namespace":{"created":{"sec":1673879559},"status":{"active":true,"terminating":false}}},"metricset":{"name":"state_namespace","period":10000},"service":{"address":"127.0.0.1:55555","type":"kubernetes"}}
        testdata.go:340: Event was not expected: {"event":{"dataset":"kubernetes.state_namespace","duration":115000,"module":"kubernetes"},"kubernetes":{"namespace":"kube-public","state_namespace":{"created":{"sec":1673879559},"status":{"active":true,"terminating":false}}},"metricset":{"name":"state_namespace","period":10000},"service":{"address":"127.0.0.1:55555","type":"kubernetes"}}
        testdata.go:340: Event was not expected: {"event":{"dataset":"kubernetes.state_namespace","duration":115000,"module":"kubernetes"},"kubernetes":{"namespace":"default","state_namespace":{"created":{"sec":1673879561},"status":{"active":true,"terminating":false}}},"metricset":{"name":"state_namespace","period":10000},"service":{"address":"127.0.0.1:55555","type":"kubernetes"}}
        testdata.go:340: Event was not expected: {"event":{"dataset":"kubernetes.state_namespace","duration":115000,"module":"kubernetes"},"kubernetes":{"namespace":"local-path-storage","state_namespace":{"created":{"sec":1673879567},"status":{"active":true,"terminating":false}}},"metricset":{"name":"state_namespace","period":10000},"service":{"address":"127.0.0.1:55555","type":"kubernetes"}}
        testdata.go:345: Some events were missing:
        testdata.go:347: {"event":{"dataset":"kubernetes.state_namespace","duration":115000,"module":"kubernetes"},"kubernetes":{"namespace":"default","state_namespace":{"created":{"sec":1691566338},"status":{"active":true,"terminating":false}}},"metricset":{"name":"state_namespace","period":10000},"service":{"address":"127.0.0.1:55555","type":"kubernetes"}}
        testdata.go:347: {"event":{"dataset":"kubernetes.state_namespace","duration":115000,"module":"kubernetes"},"kubernetes":{"namespace":"local-path-storage","state_namespace":{"created":{"sec":1691566342},"status":{"active":true,"terminating":false}}},"metricset":{"name":"state_namespace","period":10000},"service":{"address":"127.0.0.1:55555","type":"kubernetes"}}
        testdata.go:347: {"event":{"dataset":"kubernetes.state_namespace","duration":115000,"module":"kubernetes"},"kubernetes":{"namespace":"kube-system","state_namespace":{"created":{"sec":1691566337},"status":{"active":true,"terminating":false}}},"metricset":{"name":"state_namespace","period":10000},"service":{"address":"127.0.0.1:55555","type":"kubernetes"}}
        testdata.go:347: {"event":{"dataset":"kubernetes.state_namespace","duration":115000,"module":"kubernetes"},"kubernetes":{"namespace":"kube-public","state_namespace":{"created":{"sec":1691566337},"status":{"active":true,"terminating":false}}},"metricset":{"name":"state_namespace","period":10000},"service":{"address":"127.0.0.1:55555","type":"kubernetes"}}
        testdata.go:347: {"event":{"dataset":"kubernetes.state_namespace","duration":115000,"module":"kubernetes"},"kubernetes":{"namespace":"kube-node-lease","state_namespace":{"created":{"sec":1691566337},"status":{"active":true,"terminating":false}}},"metricset":{"name":"state_namespace","period":10000},"service":{"address":"127.0.0.1:55555","type":"kubernetes"}}
    --- FAIL: TestAll/kubernetes.state_namespace/docs.plain (0.98s)
     
    

Build&Test / metricbeat-unitTest / TestAll/kubernetes.state_namespace/ksm.v2.4.2.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_namespace/ksm.v2.4.2.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/ksm.v2.4.2.plain file
        testdata.go:305: could not read file: open ../../../module/kubernetes/state_namespace/_meta/testdata/ksm.v2.4.2.plain-expected.json: no such file or directory
    --- FAIL: TestAll/kubernetes.state_namespace/ksm.v2.4.2.plain (0.74s)
     
    

Build&Test / metricbeat-unitTest / TestAll/kubernetes.state_namespace/ksm.v2.5.0.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_namespace/ksm.v2.5.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/ksm.v2.5.0.plain file
        testdata.go:305: could not read file: open ../../../module/kubernetes/state_namespace/_meta/testdata/ksm.v2.5.0.plain-expected.json: no such file or directory
    --- FAIL: TestAll/kubernetes.state_namespace/ksm.v2.5.0.plain (0.71s)
     
    

Build&Test / metricbeat-unitTest / TestAll/kubernetes.state_namespace/ksm.v2.6.0.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_namespace/ksm.v2.6.0.plain
        testdata.go:238: Testing ../../../module/kubernetes/_meta/test/ksm.v2.6.0.plain file
        testdata.go:305: could not read file: open ../../../module/kubernetes/state_namespace/_meta/testdata/ksm.v2.6.0.plain-expected.json: no such file or directory
    --- FAIL: TestAll/kubernetes.state_namespace/ksm.v2.6.0.plain (0.76s)
     
    

Build&Test / metricbeat-unitTest / TestAll/kubernetes.state_namespace – 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_namespace
    --- FAIL: TestAll/kubernetes.state_namespace (3.90s)
     
    

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
    --- FAIL: TestAll (79.91s)
     
    

Steps errors 13

Expand to view the steps failures

Show only the first 10 steps failures

metricbeat-windows-2022-windows-2022 - mage build unitTest
  • Took 5 min 15 sec . View more details here
  • Description: mage build unitTest
metricbeat-windows-2022-windows-2022 - mage build unitTest
  • Took 2 min 12 sec . View more details here
  • Description: mage build unitTest
metricbeat-windows-2022-windows-2022 - mage build unitTest
  • Took 2 min 48 sec . View more details here
  • Description: mage build unitTest
metricbeat-windows-2016-windows-2016 - Install Python
  • Took 3 min 35 sec . View more details here
  • Description: .ci/scripts/install-tools.bat
metricbeat-windows-2016-windows-2016 - Install Python
  • Took 0 min 4 sec . View more details here
  • Description: .ci/scripts/install-tools.bat
metricbeat-windows-2016-windows-2016 - Install Python
  • Took 0 min 4 sec . View more details here
  • Description: .ci/scripts/install-tools.bat
x-pack/metricbeat-windows-2016-windows-2016 - Install Python
  • Took 1 min 3 sec . View more details here
  • Description: .ci/scripts/install-tools.bat
x-pack/metricbeat-windows-2016-windows-2016 - Install Python
  • Took 0 min 2 sec . View more details here
  • Description: .ci/scripts/install-tools.bat
x-pack/metricbeat-windows-2016-windows-2016 - Install Python
  • Took 0 min 2 sec . View more details here
  • Description: .ci/scripts/install-tools.bat
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: Error 'hudson.AbortException: script returned exit code 1'

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Genuine test errors 6

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: Build&Test / metricbeat-unitTest / TestAll/kubernetes.state_namespace/docs.plain – github.com/elastic/beats/v7/metricbeat/mb/testing/data
  • Name: Build&Test / metricbeat-unitTest / TestAll/kubernetes.state_namespace/ksm.v2.4.2.plain – github.com/elastic/beats/v7/metricbeat/mb/testing/data
  • Name: Build&Test / metricbeat-unitTest / TestAll/kubernetes.state_namespace/ksm.v2.5.0.plain – github.com/elastic/beats/v7/metricbeat/mb/testing/data
  • Name: Build&Test / metricbeat-unitTest / TestAll/kubernetes.state_namespace/ksm.v2.6.0.plain – github.com/elastic/beats/v7/metricbeat/mb/testing/data
  • Name: Build&Test / metricbeat-unitTest / TestAll/kubernetes.state_namespace – github.com/elastic/beats/v7/metricbeat/mb/testing/data
  • Name: Build&Test / metricbeat-unitTest / TestAll – github.com/elastic/beats/v7/metricbeat/mb/testing/data

🤖 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!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants