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

Move service config under stackdriver.metrics and simplify metric_types #18691

Merged
merged 10 commits into from
Jun 4, 2020
Merged

Move service config under stackdriver.metrics and simplify metric_types #18691

merged 10 commits into from
Jun 4, 2020

Conversation

kaiyan-sheng
Copy link
Contributor

@kaiyan-sheng kaiyan-sheng commented May 21, 2020

What does this PR do?

This PR is to move service config parameter from under stackdriver to under stackdriver.metrics. Service name used to only be used for checking metadata. Now it's also been used to construct the full metric_type string to make google cloud API call list.timeseries.

For example, if service=compute and metric_type is given in config as instance/cpu/usage_time, then the full metric.type will be compute/googleapi.com/instance/cpu/usage_time.

This PR also removed the stackdriver config layer. Now instead of stackdriver.metrics, configs are directly under metrics.

Before:

- module: googlecloud
  metricsets:
    - stackdriver
  project_id: "your project id"
  credentials_file_path: "your JSON credentials file path"
  exclude_labels: false
  period: 1m
  stackdriver:
    service: compute
    metrics:
      - aligner: ALIGN_NONE
        metric_types:
          - "compute.googleapis.com/instance/cpu/reserved_cores"
          - "compute.googleapis.com/instance/cpu/usage_time"
          - "compute.googleapis.com/instance/cpu/utilization"
          - "compute.googleapis.com/instance/uptime"

After:

- module: googlecloud
  metricsets:
    - stackdriver
  project_id: "your project id"
  credentials_file_path: "your JSON credentials file path"
  exclude_labels: false
  period: 1m
  metrics:
    - aligner: ALIGN_NONE
      service: compute
      metric_types:
        - "instance/cpu/reserved_cores"
        - "instance/cpu/usage_time"
        - "instance/cpu/utilization"
        - "instance/uptime"

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.

How to test this PR locally

  1. Enable googlecloud metricset: ./metricbeat modules enable googlecloud
  2. Change modules.d/googlecloud.yml to below:
- module: googlecloud
  metricsets:
    - stackdriver
  project_id: elastic-observability
  credentials_file_path: "/Users/kaiyansheng/Downloads/elastic-observability-d17781618202.json"
  exclude_labels: false
  period: 1m
  metrics:
    - aligner: ALIGN_NONE
      service: compute
      metric_types:
        - "instance/cpu/reserved_cores"
        - "instance/cpu/usage_time"
        - "instance/cpu/utilization"
        - "instance/uptime"
  1. Metrics googlecloud.stackdriver.instance.cpu.reserved_cores.value, googlecloud.stackdriver.instance.cpu.usage_time.value, googlecloud.stackdriver.instance.cpu.utilization.value and googlecloud.stackdriver.instance.uptime.value should be collected.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 21, 2020
@kaiyan-sheng kaiyan-sheng self-assigned this May 21, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented May 21, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Started by user kaiyan-sheng, Replayed #4]

  • Start Time: 2020-05-21T21:25:23.121+0000

  • Duration: 61 min 37 sec

Test stats 🧪

Test Results
Failed 0
Passed 3529
Skipped 811
Total 4340

Steps errors

Expand to view the steps failures

  • Name: Mage goIntegTest
    • Description: mage goIntegTest

    • Duration: 1 min 8 sec

    • Start Time: 2020-05-21T21:47:38.136+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-05-21T22:22:44.664Z] + [ -f libbeat/build/coverage/full.cov ]
[2020-05-21T22:22:44.664Z] + FILE=metricbeat/build/coverage/full.cov
[2020-05-21T22:22:44.664Z] + [ -f metricbeat/build/coverage/full.cov ]
[2020-05-21T22:22:44.664Z] + FILE=packetbeat/build/coverage/full.cov
[2020-05-21T22:22:44.664Z] + [ -f packetbeat/build/coverage/full.cov ]
[2020-05-21T22:22:44.664Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-05-21T22:22:44.664Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-05-21T22:22:44.664Z] + FILE=journalbeat/build/coverage/full.cov
[2020-05-21T22:22:44.664Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-05-21T22:22:47.930Z] + for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat
[2020-05-21T22:22:47.930Z] + FILE=auditbeat/build/coverage/full.cov
[2020-05-21T22:22:47.930Z] + '[' -f auditbeat/build/coverage/full.cov ']'
[2020-05-21T22:22:47.930Z] + for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat
[2020-05-21T22:22:47.930Z] + FILE=filebeat/build/coverage/full.cov
[2020-05-21T22:22:47.930Z] + '[' -f filebeat/build/coverage/full.cov ']'
[2020-05-21T22:22:47.930Z] + for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat
[2020-05-21T22:22:47.930Z] + FILE=heartbeat/build/coverage/full.cov
[2020-05-21T22:22:47.930Z] + '[' -f heartbeat/build/coverage/full.cov ']'
[2020-05-21T22:22:47.930Z] + for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat
[2020-05-21T22:22:47.930Z] + FILE=libbeat/build/coverage/full.cov
[2020-05-21T22:22:47.930Z] + '[' -f libbeat/build/coverage/full.cov ']'
[2020-05-21T22:22:47.930Z] + for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat
[2020-05-21T22:22:47.930Z] + FILE=metricbeat/build/coverage/full.cov
[2020-05-21T22:22:47.930Z] + '[' -f metricbeat/build/coverage/full.cov ']'
[2020-05-21T22:22:47.930Z] + for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat
[2020-05-21T22:22:47.930Z] + FILE=packetbeat/build/coverage/full.cov
[2020-05-21T22:22:47.930Z] + '[' -f packetbeat/build/coverage/full.cov ']'
[2020-05-21T22:22:47.930Z] + for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat
[2020-05-21T22:22:47.930Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-05-21T22:22:47.930Z] + '[' -f winlogbeat/build/coverage/full.cov ']'
[2020-05-21T22:22:47.930Z] + for i in auditbeat filebeat heartbeat libbeat metricbeat packetbeat winlogbeat journalbeat
[2020-05-21T22:22:47.930Z] + FILE=journalbeat/build/coverage/full.cov
[2020-05-21T22:22:47.930Z] + '[' -f journalbeat/build/coverage/full.cov ']'
[2020-05-21T22:22:49.056Z] Post stage
[2020-05-21T22:22:49.064Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats
[2020-05-21T22:22:50.168Z] + script/fix_permissions.sh /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691
[2020-05-21T22:22:51.969Z] Client:
[2020-05-21T22:22:51.969Z]  Version:      18.03.1-ce
[2020-05-21T22:22:51.969Z]  API version:  1.37
[2020-05-21T22:22:51.969Z]  Go version:   go1.9.5
[2020-05-21T22:22:51.969Z]  Git commit:   9ee9f40
[2020-05-21T22:22:51.969Z]  Built:        Thu Apr 26 07:13:02 2018
[2020-05-21T22:22:51.969Z]  OS/Arch:      darwin/amd64
[2020-05-21T22:22:51.969Z]  Experimental: false
[2020-05-21T22:22:51.969Z]  Orchestrator: swarm
[2020-05-21T22:22:51.969Z] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[2020-05-21T22:22:51.969Z] It requires Docker daemon to be installed and running
[2020-05-21T22:25:36.979Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats
[2020-05-21T22:25:37.299Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-05-21T22:25:37.313Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Lint
[2020-05-21T22:25:37.399Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-05-21T22:25:37.482Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-05-21T22:25:37.560Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-05-21T22:25:37.635Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-05-21T22:25:37.722Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-05-21T22:25:37.796Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-Windows
[2020-05-21T22:25:37.867Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-05-21T22:25:37.940Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-05-21T22:25:38.022Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-05-21T22:25:38.098Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-05-21T22:25:38.461Z] + cat
[2020-05-21T22:25:38.461Z] + /usr/local/bin/runbld ./runbld-script
[2020-05-21T22:25:38.461Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-05-21T22:25:45.057Z] runbld>>> runbld started
[2020-05-21T22:25:45.057Z] runbld>>> 1.6.11/a66728ff8f4356963772e6e6d2069392fa06acbe
[2020-05-21T22:25:46.449Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-18691' in order of occurrence in the config (last value wins).
[2020-05-21T22:25:47.833Z] runbld>>> Debug logging enabled.
[2020-05-21T22:25:47.833Z] runbld>>> Storing result
[2020-05-21T22:25:47.833Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-05-21T22:25:47.833Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200521222547-3F492EB1
[2020-05-21T22:25:47.833Z] runbld>>> Adding system facts.
[2020-05-21T22:25:48.775Z] runbld>>> Adding vcs info for the latest commit:  ba2b3bb0ca2628b4a5beabd50c626823db8175ec
[2020-05-21T22:25:49.034Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-05-21T22:25:49.034Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-05-21T22:25:49.034Z] + echo 'Processing JUnit reports with runbld...'
[2020-05-21T22:25:49.035Z] Processing JUnit reports with runbld...
[2020-05-21T22:25:49.294Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-05-21T22:25:49.294Z] runbld>>> DURATION: 14ms
[2020-05-21T22:25:49.294Z] runbld>>> STDOUT: 40 bytes
[2020-05-21T22:25:49.294Z] runbld>>> STDERR: 49 bytes
[2020-05-21T22:25:49.294Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-05-21T22:25:49.294Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats
[2020-05-21T22:25:50.677Z] runbld>>> Storing build metadata: 
[2020-05-21T22:25:50.677Z] runbld>>> Adding test report.
[2020-05-21T22:25:50.677Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats
[2020-05-21T22:25:52.062Z] runbld>>> Found 17 test output files
[2020-05-21T22:25:53.004Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 4340 Skipped: 729
[2020-05-21T22:25:53.004Z] runbld>>> Storing result
[2020-05-21T22:25:53.004Z] runbld>>> FAILURES: 0
[2020-05-21T22:25:53.264Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-05-21T22:25:53.264Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200521222547-3F492EB1
[2020-05-21T22:25:53.264Z] runbld>>> Email notification disabled by environment variable.
[2020-05-21T22:25:53.264Z] runbld>>> Slack notification disabled by environment variable.
[2020-05-21T22:25:59.351Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691
[2020-05-21T22:25:59.607Z] [INFO] getVaultSecret: Getting secrets
[2020-05-21T22:25:59.662Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-05-21T22:26:00.538Z] + chmod 755 generate-build-data.sh
[2020-05-21T22:26:00.538Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18691/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18691/runs/5 FAILURE 3637150
[2020-05-21T22:26:01.089Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18691/runs/5/steps/?limit=10000 -o steps-info.json
[2020-05-21T22:26:02.000Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18691/runs/5/tests/?status=FAILED -o tests-errors.json

@kaiyan-sheng kaiyan-sheng added Metricbeat Metricbeat needs_backport PR is waiting to be backported to other branches. Team:Platforms Label for the Integrations - Platforms team labels May 21, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label May 21, 2020
Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

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

Nice change, it seems to simplify configurations. I think it should be marked as breaking change.

@elasticmachine
Copy link
Collaborator

elasticmachine commented Jun 1, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #18691 updated]

  • Start Time: 2020-06-04T15:03:32.468+0000

  • Duration: 60 min 23 sec

Test stats 🧪

Test Results
Failed 0
Passed 3552
Skipped 811
Total 4363

Steps errors

Expand to view the steps failures

  • Name: Mage goIntegTest
    • Description: mage goIntegTest

    • Duration: 1 min 57 sec

    • Start Time: 2020-06-04T15:26:55.862+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-06-04T16:03:31.768Z] 		at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
[2020-06-04T16:03:31.768Z] 		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
[2020-06-04T16:03:31.768Z] 		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2020-06-04T16:03:31.768Z] 		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2020-06-04T16:03:31.768Z] 		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2020-06-04T16:03:31.768Z] 		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2020-06-04T16:03:31.768Z] Caused: hudson.FilePath$TunneledInterruptedException
[2020-06-04T16:03:31.768Z] 	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3075)
[2020-06-04T16:03:31.768Z] 	at hudson.remoting.UserRequest.perform(UserRequest.java:212)
[2020-06-04T16:03:31.768Z] 	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
[2020-06-04T16:03:31.768Z] 	at hudson.remoting.Request$2.run(Request.java:369)
[2020-06-04T16:03:31.768Z] 	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
[2020-06-04T16:03:31.768Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2020-06-04T16:03:31.768Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2020-06-04T16:03:31.768Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2020-06-04T16:03:31.768Z] 	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
[2020-06-04T16:03:31.768Z] Caused: java.lang.InterruptedException: java.lang.InterruptedException: no matches found within 10000
[2020-06-04T16:03:31.768Z] 	at hudson.FilePath.act(FilePath.java:1071)
[2020-06-04T16:03:31.768Z] 	at hudson.FilePath.act(FilePath.java:1058)
[2020-06-04T16:03:31.768Z] 	at hudson.FilePath.validateAntFileMask(FilePath.java:2684)
[2020-06-04T16:03:31.768Z] 	at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:265)
[2020-06-04T16:03:31.768Z] 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
[2020-06-04T16:03:31.768Z] 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
[2020-06-04T16:03:31.768Z] 	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
[2020-06-04T16:03:31.768Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2020-06-04T16:03:31.768Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2020-06-04T16:03:31.768Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2020-06-04T16:03:31.768Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2020-06-04T16:03:31.768Z] 	at java.lang.Thread.run(Thread.java:748)
[2020-06-04T16:03:31.768Z] No artifacts found that match the file pattern "**/build/TEST*.out". Configuration error?
[2020-06-04T16:03:32.144Z] + curl -sSLo codecov https://codecov.io/bash
[2020-06-04T16:03:32.405Z] + FILE=auditbeat/build/coverage/full.cov
[2020-06-04T16:03:32.405Z] + [ -f auditbeat/build/coverage/full.cov ]
[2020-06-04T16:03:32.405Z] + FILE=filebeat/build/coverage/full.cov
[2020-06-04T16:03:32.405Z] + [ -f filebeat/build/coverage/full.cov ]
[2020-06-04T16:03:32.405Z] + FILE=heartbeat/build/coverage/full.cov
[2020-06-04T16:03:32.405Z] + [ -f heartbeat/build/coverage/full.cov ]
[2020-06-04T16:03:32.405Z] + FILE=libbeat/build/coverage/full.cov
[2020-06-04T16:03:32.405Z] + [ -f libbeat/build/coverage/full.cov ]
[2020-06-04T16:03:32.405Z] + FILE=metricbeat/build/coverage/full.cov
[2020-06-04T16:03:32.405Z] + [ -f metricbeat/build/coverage/full.cov ]
[2020-06-04T16:03:32.405Z] + FILE=packetbeat/build/coverage/full.cov
[2020-06-04T16:03:32.405Z] + [ -f packetbeat/build/coverage/full.cov ]
[2020-06-04T16:03:32.405Z] + FILE=winlogbeat/build/coverage/full.cov
[2020-06-04T16:03:32.405Z] + [ -f winlogbeat/build/coverage/full.cov ]
[2020-06-04T16:03:32.406Z] + FILE=journalbeat/build/coverage/full.cov
[2020-06-04T16:03:32.406Z] + [ -f journalbeat/build/coverage/full.cov ]
[2020-06-04T16:03:33.757Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats
[2020-06-04T16:03:34.064Z] + find . -type f -name TEST*.xml -path */build/* -delete
[2020-06-04T16:03:34.074Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Lint
[2020-06-04T16:03:34.150Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-OSS-Integration-tests
[2020-06-04T16:03:34.221Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-06-04T16:03:34.296Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-06-04T16:03:34.365Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-06-04T16:03:34.439Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-06-04T16:03:34.515Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-06-04T16:03:34.585Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-Windows
[2020-06-04T16:03:34.656Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-06-04T16:03:34.728Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-06-04T16:03:34.870Z] Running in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats/Metricbeat-Python-integration-tests
[2020-06-04T16:03:35.300Z] + cat
[2020-06-04T16:03:35.300Z] + /usr/local/bin/runbld ./runbld-script
[2020-06-04T16:03:35.300Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-06-04T16:03:41.905Z] runbld>>> runbld started
[2020-06-04T16:03:41.905Z] runbld>>> 1.6.11/a66728ff8f4356963772e6e6d2069392fa06acbe
[2020-06-04T16:03:42.847Z] runbld>>> The following profiles matched the job 'Beats/beats-beats-mbp/PR-18691' in order of occurrence in the config (last value wins).
[2020-06-04T16:03:44.230Z] runbld>>> Debug logging enabled.
[2020-06-04T16:03:44.230Z] runbld>>> Storing result
[2020-06-04T16:03:44.230Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-06-04T16:03:44.230Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200604160343-BF90200E
[2020-06-04T16:03:44.230Z] runbld>>> Adding system facts.
[2020-06-04T16:03:45.171Z] runbld>>> Adding vcs info for the latest commit:  bcc6b1a4054db1ce582ca0c8fffa84d30cd68df8
[2020-06-04T16:03:45.171Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-06-04T16:03:45.430Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-06-04T16:03:45.430Z] Processing JUnit reports with runbld...
[2020-06-04T16:03:45.430Z] + echo 'Processing JUnit reports with runbld...'
[2020-06-04T16:03:45.689Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-06-04T16:03:45.689Z] runbld>>> DURATION: 21ms
[2020-06-04T16:03:45.689Z] runbld>>> STDOUT: 40 bytes
[2020-06-04T16:03:45.690Z] runbld>>> STDERR: 49 bytes
[2020-06-04T16:03:45.690Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-06-04T16:03:45.690Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats
[2020-06-04T16:03:47.077Z] runbld>>> Storing build metadata: 
[2020-06-04T16:03:47.077Z] runbld>>> Adding test report.
[2020-06-04T16:03:47.077Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691/src/github.com/elastic/beats
[2020-06-04T16:03:48.024Z] runbld>>> Found 17 test output files
[2020-06-04T16:03:48.963Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 4363 Skipped: 729
[2020-06-04T16:03:49.223Z] runbld>>> Storing result
[2020-06-04T16:03:49.223Z] runbld>>> FAILURES: 0
[2020-06-04T16:03:49.483Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-06-04T16:03:49.483Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1587637540455/t/20200604160343-BF90200E
[2020-06-04T16:03:49.483Z] runbld>>> Email notification disabled by environment variable.
[2020-06-04T16:03:49.483Z] runbld>>> Slack notification disabled by environment variable.
[2020-06-04T16:03:54.986Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats-beats-mbp_PR-18691
[2020-06-04T16:03:55.082Z] [INFO] getVaultSecret: Getting secrets
[2020-06-04T16:03:55.134Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-06-04T16:03:55.763Z] + chmod 755 generate-build-data.sh
[2020-06-04T16:03:55.763Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18691/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18691/runs/9 FAILURE 3623033
[2020-06-04T16:03:55.763Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18691/runs/9/steps/?limit=10000 -o steps-info.json
[2020-06-04T16:03:56.314Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats-beats-mbp/PR-18691/runs/9/tests/?status=FAILED -o tests-errors.json

CHANGELOG.next.asciidoc Outdated Show resolved Hide resolved
@kaiyan-sheng kaiyan-sheng merged commit be501ae into elastic:master Jun 4, 2020
@kaiyan-sheng kaiyan-sheng deleted the gcp_metric_type branch June 4, 2020 17:21
@kaiyan-sheng kaiyan-sheng added v7.9.0 and removed needs_backport PR is waiting to be backported to other branches. labels Jun 4, 2020
kaiyan-sheng added a commit that referenced this pull request Jun 5, 2020
…ics and simplify metric_types (#18981)

* Move service config under stackdriver.metrics and simplify metric_types (#18691)

* Move service name config under stackdriver.metrics and simplify metric_types
* change config stackdriver.metrics to metrics

(cherry picked from commit be501ae)
melchiormoulin pushed a commit to melchiormoulin/beats that referenced this pull request Oct 14, 2020
…es (elastic#18691)

* Move service name config under stackdriver.metrics and simplify metric_types
* change config stackdriver.metrics to metrics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Metricbeat Metricbeat Team:Platforms Label for the Integrations - Platforms team v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants