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

Cherry-pick #19977 to 7.x: Move file metrics to dataset endpoint #20148

Merged
merged 1 commit into from
Jul 23, 2020

Conversation

urso
Copy link

@urso urso commented Jul 22, 2020

Cherry-pick of PR #19977 to 7.x branch. Original message:

Breaking change

What does this PR do?

The filemetrics are on the stats endpoint. It ideally is supposed to be on /dataset similar to metricbeat. This PR moves them to the right endpoint

Why is it important?

We use stats endpoint to collect metrics. These file metrics make the endpoint to verbose.

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.

@urso urso added [zube]: In Review backport Team:Services (Deprecated) Label for the former Integrations-Services team labels Jul 22, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 22, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-services (Team:Services)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 22, 2020
@elasticmachine
Copy link
Collaborator

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20148 opened]

  • Start Time: 2020-07-22T15:17:10.102+0000

  • Duration: 61 min 22 sec

Test stats 🧪

Test Results
Failed 0
Passed 2600
Skipped 550
Total 3150

Steps errors

Expand to view the steps failures

  • Name: Notifies GitHub of the status of a Pull Request

    • Description: The supplied credentials are invalid to login

    • Duration: 0 min 0 sec

    • Start Time: 2020-07-22T15:41:47.453+0000

    • log

  • Name: Notifies GitHub of the status of a Pull Request

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-07-22T15:41:47.541+0000

    • log

  • Name: Notifies GitHub of the status of a Pull Request

    • Description: The supplied credentials are invalid to login

    • Duration: 0 min 0 sec

    • Start Time: 2020-07-22T15:41:47.930+0000

    • log

  • Name: Notifies GitHub of the status of a Pull Request

    • Description:

    • Duration: 0 min 0 sec

    • Start Time: 2020-07-22T15:41:48.008+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-07-22T16:17:43.980Z] Recording test results
[2020-07-22T16:17:44.437Z] Stashed 2 file(s)
[2020-07-22T16:17:44.507Z] Archiving artifacts
[2020-07-22T16:17:45.665Z] + python .ci/scripts/search_system_tests.py
[2020-07-22T16:17:45.894Z] [INFO] system-tests='build/filebeat/build/system-tests'. If no empty then let's create a tarball
[2020-07-22T16:17:46.724Z] + tar --version
[2020-07-22T16:17:47.716Z] + tar --exclude=filebeat--system-tests-darwin.tgz -czf filebeat--system-tests-darwin.tgz build/filebeat/build/system-tests
[2020-07-22T16:17:48.923Z] Archiving artifacts
[2020-07-22T16:17:50.625Z] + .ci/scripts/report-codecov.sh auditbeat filebeat heartbeat journalbeat libbeat metricbeat packetbeat winlogbeat
[2020-07-22T16:17:50.626Z] + CODECOV_URL=https://codecov.io/bash
[2020-07-22T16:17:50.626Z] + '[' -e /usr/local/bin/bash_standard_lib.sh ']'
[2020-07-22T16:17:50.626Z] + curl -sSLo codecov https://codecov.io/bash
[2020-07-22T16:17:50.626Z] + for i in '"$@"'
[2020-07-22T16:17:50.626Z] + FILE=auditbeat/build/coverage/full.cov
[2020-07-22T16:17:50.626Z] + '[' -f auditbeat/build/coverage/full.cov ']'
[2020-07-22T16:17:50.626Z] + for i in '"$@"'
[2020-07-22T16:17:50.626Z] + FILE=filebeat/build/coverage/full.cov
[2020-07-22T16:17:50.626Z] + '[' -f filebeat/build/coverage/full.cov ']'
[2020-07-22T16:17:50.626Z] + for i in '"$@"'
[2020-07-22T16:17:50.626Z] + FILE=heartbeat/build/coverage/full.cov
[2020-07-22T16:17:50.626Z] + '[' -f heartbeat/build/coverage/full.cov ']'
[2020-07-22T16:17:50.626Z] + for i in '"$@"'
[2020-07-22T16:17:50.626Z] + FILE=journalbeat/build/coverage/full.cov
[2020-07-22T16:17:50.626Z] + '[' -f journalbeat/build/coverage/full.cov ']'
[2020-07-22T16:17:50.626Z] + for i in '"$@"'
[2020-07-22T16:17:50.626Z] + FILE=libbeat/build/coverage/full.cov
[2020-07-22T16:17:50.626Z] + '[' -f libbeat/build/coverage/full.cov ']'
[2020-07-22T16:17:50.626Z] + for i in '"$@"'
[2020-07-22T16:17:50.626Z] + FILE=metricbeat/build/coverage/full.cov
[2020-07-22T16:17:50.626Z] + '[' -f metricbeat/build/coverage/full.cov ']'
[2020-07-22T16:17:50.626Z] + for i in '"$@"'
[2020-07-22T16:17:50.626Z] + FILE=packetbeat/build/coverage/full.cov
[2020-07-22T16:17:50.626Z] + '[' -f packetbeat/build/coverage/full.cov ']'
[2020-07-22T16:17:50.626Z] + for i in '"$@"'
[2020-07-22T16:17:50.626Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-07-22T16:17:50.626Z] + '[' -f winlogbeat/build/coverage/full.cov ']'
[2020-07-22T16:17:52.093Z] Post stage
[2020-07-22T16:17:52.110Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20148/src/github.com/elastic/beats
[2020-07-22T16:17:53.016Z] Starting "default"...
[2020-07-22T16:17:53.016Z] Machine "default" is already running.
[2020-07-22T16:17:55.219Z] Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.99.101:2376": dial tcp 192.168.99.101:2376: connect: connection refused
[2020-07-22T16:17:55.219Z] You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
[2020-07-22T16:17:55.219Z] Be advised that this will trigger a Docker daemon restart which might stop running containers.
[2020-07-22T16:17:55.219Z] 
[2020-07-22T16:17:55.219Z] Client: Docker Engine - Community
[2020-07-22T16:17:55.219Z]  Version:           19.03.1
[2020-07-22T16:17:55.219Z]  API version:       1.40
[2020-07-22T16:17:55.219Z]  Go version:        go1.12.5
[2020-07-22T16:17:55.219Z]  Git commit:        74b1e89
[2020-07-22T16:17:55.219Z]  Built:             Thu Jul 25 21:18:17 2019
[2020-07-22T16:17:55.219Z]  OS/Arch:           darwin/amd64
[2020-07-22T16:17:55.219Z]  Experimental:      false
[2020-07-22T16:17:55.219Z] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[2020-07-22T16:17:55.219Z] It requires Docker daemon to be installed and running
[2020-07-22T16:18:08.198Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20148/src/github.com/elastic/beats
[2020-07-22T16:18:08.539Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-07-22T16:18:08.562Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20148/src/github.com/elastic/beats/Lint
[2020-07-22T16:18:08.738Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20148/src/github.com/elastic/beats/Filebeat-Windows
[2020-07-22T16:18:08.910Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20148/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-07-22T16:18:09.077Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20148/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-07-22T16:18:09.244Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20148/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-07-22T16:18:09.698Z] + cat
[2020-07-22T16:18:09.699Z] + /usr/local/bin/runbld ./runbld-script
[2020-07-22T16:18:09.699Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-07-22T16:18:16.427Z] runbld>>> runbld started
[2020-07-22T16:18:16.427Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-07-22T16:18:18.364Z] runbld>>> The following profiles matched the job 'Beats/beats/PR-20148' in order of occurrence in the config (last value wins).
[2020-07-22T16:18:19.307Z] runbld>>> Debug logging enabled.
[2020-07-22T16:18:19.307Z] runbld>>> Storing result
[2020-07-22T16:18:19.568Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-07-22T16:18:19.568Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200722161819-ABAA4189
[2020-07-22T16:18:19.569Z] runbld>>> Adding system facts.
[2020-07-22T16:18:20.965Z] runbld>>> Adding vcs info for the latest commit:  adb919094c6427c1af91ad3d68dfacc45444b7b5
[2020-07-22T16:18:20.965Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-07-22T16:18:20.965Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-07-22T16:18:20.965Z] Processing JUnit reports with runbld...
[2020-07-22T16:18:20.965Z] + echo 'Processing JUnit reports with runbld...'
[2020-07-22T16:18:21.226Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-07-22T16:18:21.226Z] runbld>>> DURATION: 31ms
[2020-07-22T16:18:21.226Z] runbld>>> STDOUT: 40 bytes
[2020-07-22T16:18:21.226Z] runbld>>> STDERR: 49 bytes
[2020-07-22T16:18:21.226Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-07-22T16:18:21.226Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20148/src/github.com/elastic/beats
[2020-07-22T16:18:22.178Z] runbld>>> Storing build metadata: 
[2020-07-22T16:18:22.178Z] runbld>>> Adding test report.
[2020-07-22T16:18:22.178Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20148/src/github.com/elastic/beats
[2020-07-22T16:18:23.130Z] runbld>>> Found 8 test output files
[2020-07-22T16:18:23.754Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 3150 Skipped: 534
[2020-07-22T16:18:24.018Z] runbld>>> Storing result
[2020-07-22T16:18:24.018Z] runbld>>> FAILURES: 0
[2020-07-22T16:18:24.279Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-07-22T16:18:24.279Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200722161819-ABAA4189
[2020-07-22T16:18:24.279Z] runbld>>> Email notification disabled by environment variable.
[2020-07-22T16:18:24.279Z] runbld>>> Slack notification disabled by environment variable.
[2020-07-22T16:18:31.171Z] Running on worker-395930 in /var/lib/jenkins/workspace/Beats_beats_PR-20148
[2020-07-22T16:18:31.419Z] [INFO] getVaultSecret: Getting secrets
[2020-07-22T16:18:31.507Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-07-22T16:18:33.771Z] + chmod 755 generate-build-data.sh
[2020-07-22T16:18:33.771Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20148/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20148/runs/1 FAILURE 3682260
[2020-07-22T16:18:33.771Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20148/runs/1/steps/?limit=10000 -o steps-info.json

@urso urso merged commit 91b0ba3 into elastic:7.x Jul 23, 2020
@urso urso deleted the backport_19977_7.x branch July 23, 2020 13:05
@zube zube bot removed the [zube]: Done label Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Services (Deprecated) Label for the former Integrations-Services team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants