Skip to content

libbeat/cmd/instance: report cgroup stats#21113

Merged
axw merged 3 commits intoelastic:masterfrom
axw:libbeat-monitoring-cgroup-metrics
Sep 26, 2020
Merged

libbeat/cmd/instance: report cgroup stats#21113
axw merged 3 commits intoelastic:masterfrom
axw:libbeat-monitoring-cgroup-metrics

Conversation

@axw
Copy link
Copy Markdown
Member

@axw axw commented Sep 16, 2020

What does this PR do?

Report cgroup limits/stats on Linux, similar to what Elasticsearch reports through node stats: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html

Metric names are based on (but not exactly the same as) the system.process.cgroup.* fields.

Why is it important?

This is important for reporting accurate resource usage in containerised environments.

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.

I couldn't see docs or tests to update - please point me to them if there are any.

How to test this PR locally

  1. Build and run a beat on Linux, with monitoring enabled
  2. Observe that cgroup metrics are reported

Related issues

Closes #14691

@axw axw requested a review from simitt September 16, 2020 10:12
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 16, 2020
@axw
Copy link
Copy Markdown
Member Author

axw commented Sep 16, 2020

@simitt I seem to recall you had something more elaborate in mind. Could you please take a look and let me know if you think more is needed?

@andresrc andresrc added the Team:Integrations Label for the Integrations team label Sep 16, 2020
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Sep 16, 2020
Copy link
Copy Markdown
Contributor

@simitt simitt left a comment

Choose a reason for hiding this comment

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

nice! LGTM

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Sep 16, 2020

💔 Tests Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21113 updated]

  • Start Time: 2020-09-24T09:42:35.027+0000

  • Duration: 66 min 18 sec

Test stats 🧪

Test Results
Failed 2
Passed 20163
Skipped 1833
Total 21998

Test errors

Expand to view the tests failures

  • Name: Build and Test / Libbeat / Libbeat oss / TestClientPublishEventKerberosAware – elasticsearch

    • Age: 1
    • Duration: 3.43
    • Error Details: Failed
  • Name: Build and Test / Filebeat oss / test_default_settings – filebeat.tests.system.test_autodiscover.TestAutodiscover

    • Age: 1
    • Duration: 90.004
    • Error Details: Failed: Timeout >90.0s

Steps errors

Expand to view the steps failures

  • Name: Mage build test

    • Description: mage build test

    • Duration: 30 min 35 sec

    • Start Time: 2020-09-24T10:07:27.084+0000

    • log

  • Name: Mage build test

    • Description: mage build test

    • Duration: 21 min 44 sec

    • Start Time: 2020-09-24T10:07:29.535+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-24T10:48:14.571Z] + tar -xpf source.tgz
[2020-09-24T10:48:24.880Z] + rm source.tgz
[2020-09-24T10:48:24.892Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats
[2020-09-24T10:48:24.913Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Lint
[2020-09-24T10:48:25.004Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Winlogbeat-oss
[2020-09-24T10:48:25.101Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-09-24T10:48:25.208Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-09-24T10:48:25.301Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/dockerlogbeat
[2020-09-24T10:48:25.387Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Journalbeat
[2020-09-24T10:48:25.467Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-09-24T10:48:25.554Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Packetbeat-Linux
[2020-09-24T10:48:25.638Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-09-24T10:48:25.719Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-09-24T10:48:25.798Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-09-24T10:48:25.882Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-09-24T10:48:25.980Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Heartbeat-oss
[2020-09-24T10:48:26.068Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-09-24T10:48:26.151Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-09-24T10:48:26.238Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Heartbeat-Windows
[2020-09-24T10:48:26.337Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-09-24T10:48:26.430Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Libbeat-x-pack
[2020-09-24T10:48:26.508Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-09-24T10:48:26.602Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-09-24T10:48:26.691Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-09-24T10:48:26.779Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-09-24T10:48:26.880Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Filebeat-Windows
[2020-09-24T10:48:26.969Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Packetbeat-Windows
[2020-09-24T10:48:27.082Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Functionbeat-Windows
[2020-09-24T10:48:27.166Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-Windows
[2020-09-24T10:48:27.245Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-09-24T10:48:27.325Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-09-24T10:48:27.407Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Libbeat-oss
[2020-09-24T10:48:27.486Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-09-24T10:48:27.572Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-09-24T10:48:27.656Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-09-24T10:48:27.745Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-09-24T10:48:27.833Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-09-24T10:48:27.921Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-09-24T10:48:28.010Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-09-24T10:48:28.098Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-09-24T10:48:28.192Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-09-24T10:48:28.284Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-09-24T10:48:28.382Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Filebeat-oss
[2020-09-24T10:48:28.462Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Filebeat-x-pack
[2020-09-24T10:48:28.541Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests
[2020-09-24T10:48:28.639Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Packetbeat-Mac-OS-X
[2020-09-24T10:48:28.725Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-OSS-Python-Integration-tests
[2020-09-24T10:48:28.817Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-09-24T10:48:28.898Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-09-24T10:48:29.305Z] + cat
[2020-09-24T10:48:29.305Z] + /usr/local/bin/runbld ./runbld-script --job-name elastic+beats+pull-request
[2020-09-24T10:48:29.305Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-09-24T10:48:35.886Z] runbld>>> runbld started
[2020-09-24T10:48:35.886Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-09-24T10:48:37.273Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-09-24T10:48:37.273Z] runbld>>> Matches in the system config:
[2020-09-24T10:48:37.273Z] runbld>>> - Matched ^elastic\+beats
[2020-09-24T10:48:37.273Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-09-24T10:48:38.215Z] runbld>>> Debug logging enabled.
[2020-09-24T10:48:38.215Z] runbld>>> Storing result
[2020-09-24T10:48:38.476Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-09-24T10:48:38.476Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200924104838-CA5CECFF
[2020-09-24T10:48:38.477Z] runbld>>> Adding system facts.
[2020-09-24T10:48:39.861Z] runbld>>> Adding vcs info for the latest commit:  0d0af1e44814838b32495c6f92781d72f14dbdb9
[2020-09-24T10:48:39.861Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-09-24T10:48:39.861Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-09-24T10:48:39.861Z] Processing JUnit reports with runbld...
[2020-09-24T10:48:39.861Z] + echo 'Processing JUnit reports with runbld...'
[2020-09-24T10:48:40.122Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-09-24T10:48:40.122Z] runbld>>> DURATION: 42ms
[2020-09-24T10:48:40.122Z] runbld>>> STDOUT: 40 bytes
[2020-09-24T10:48:40.122Z] runbld>>> STDERR: 49 bytes
[2020-09-24T10:48:40.122Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-09-24T10:48:40.122Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-21113
[2020-09-24T10:48:41.081Z] runbld>>> Storing build metadata: 
[2020-09-24T10:48:41.081Z] runbld>>> Adding test report.
[2020-09-24T10:48:41.081Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats
[2020-09-24T10:48:42.023Z] runbld>>> Found 139 test output files
[2020-09-24T10:48:42.593Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-09-24T10:48:42.593Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-09-24T10:48:42.593Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-09-24T10:48:42.593Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-09-24T10:48:42.593Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-09-24T10:48:43.533Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-09-24T10:48:43.533Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-21113/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-09-24T10:48:45.437Z] runbld>>> Test output logs contained: Errors: 0 Failures: 2 Tests: 21841 Skipped: 1560
[2020-09-24T10:48:45.696Z] runbld>>> Storing result
[2020-09-24T10:48:45.696Z] runbld>>> FAILURES: 2
[2020-09-24T10:48:46.264Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-09-24T10:48:46.264Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200924104838-CA5CECFF
[2020-09-24T10:48:46.524Z] runbld>>> Email notification disabled by environment variable.
[2020-09-24T10:48:46.524Z] runbld>>> Slack notification disabled by environment variable.
[2020-09-24T10:48:51.972Z] Running on worker-395930 in /var/lib/jenkins/workspace/Beats_beats_PR-21113
[2020-09-24T10:48:52.083Z] [INFO] getVaultSecret: Getting secrets
[2020-09-24T10:48:52.177Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-24T10:48:54.244Z] + chmod 755 generate-build-data.sh
[2020-09-24T10:48:54.245Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21113/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21113/runs/2 FAILURE 3977833
[2020-09-24T10:48:54.245Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21113/runs/2/steps/?limit=10000 -o steps-info.json
[2020-09-24T10:48:56.499Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21113/runs/2/tests/?status=FAILED -o tests-errors.json
[2020-09-24T10:48:57.198Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21113/runs/2/log/ -o pipeline-log.txt

@axw axw marked this pull request as ready for review September 16, 2020 11:44
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/integrations (Team:Integrations)

@axw
Copy link
Copy Markdown
Member Author

axw commented Sep 24, 2020

@ycombinator would you mind taking a quick look at this? Or else please suggest someone else to take a look. We'd like to get this in for 7.10, so we can get the Stack Monitoring UI updated to accurately reflect server performance when running in ESS/ECE.

Copy link
Copy Markdown
Contributor

@ycombinator ycombinator left a comment

Choose a reason for hiding this comment

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

LGTM.

[EDIT] Jenkins CI failures are consistent with those on the latest master build and, therefore, unrelated to this PR.

@axw axw merged commit b4c7a93 into elastic:master Sep 26, 2020
@axw axw deleted the libbeat-monitoring-cgroup-metrics branch September 26, 2020 07:41
@axw axw added the v7.10.0 label Sep 26, 2020
axw added a commit to axw/beats that referenced this pull request Sep 26, 2020
* libbeat/cmd/instance: report cgroup stats

(cherry picked from commit b4c7a93)
v1v added a commit to v1v/beats that referenced this pull request Sep 28, 2020
…peline-2.0

* upstream/master:
  libbeat/cmd/instance: report cgroup stats (elastic#21113)
  Configurable index template loading (elastic#21212)
  [Ingest Manager] Thread safe sorted set (elastic#21290)
v1v added a commit to v1v/beats that referenced this pull request Sep 28, 2020
* upstream/master: (417 commits)
  libbeat/cmd/instance: report cgroup stats (elastic#21113)
  Configurable index template loading (elastic#21212)
  [Ingest Manager] Thread safe sorted set (elastic#21290)
  Change mirror of kafka download (elastic#19645)
  [Ingest manager] Copy Action store on upgrade (elastic#21298)
  [CI] Pipeline 2.0 for monorepos (elastic#20104)
  Stop running agent container as root by default (elastic#21213)
  Stop running auditbeat container as root by default (elastic#21202)
  Fix autodiscover flaky tests (elastic#21242)
  [Ingest Manager] Enabled dev builds (elastic#21241)
  Fix librpm installation in auditbeat build (elastic#21239)
  Fix prometheus default config (elastic#21253)
  Fix dev guide test command (elastic#21254)
  Move aws lambda metricset to GA (elastic#21255)
  [Docs] Typo in table syntax (elastic#20227)
  [ECS] Adds related.hosts to capture all hostnames and host identifiers on an event. (elastic#21160)
  Add recursive split to httpjson (elastic#21214)
  [DOCS] Add beat specific start widgets (elastic#21217)
  Fix timestamp handling in remote_write (elastic#21166)
  Fix aws, azure and googlecloud compute dashboards (elastic#21098)
  ...
v1v added a commit to v1v/beats that referenced this pull request Sep 28, 2020
* upstream/master: (399 commits)
  libbeat/cmd/instance: report cgroup stats (elastic#21113)
  Configurable index template loading (elastic#21212)
  [Ingest Manager] Thread safe sorted set (elastic#21290)
  Change mirror of kafka download (elastic#19645)
  [Ingest manager] Copy Action store on upgrade (elastic#21298)
  [CI] Pipeline 2.0 for monorepos (elastic#20104)
  Stop running agent container as root by default (elastic#21213)
  Stop running auditbeat container as root by default (elastic#21202)
  Fix autodiscover flaky tests (elastic#21242)
  [Ingest Manager] Enabled dev builds (elastic#21241)
  Fix librpm installation in auditbeat build (elastic#21239)
  Fix prometheus default config (elastic#21253)
  Fix dev guide test command (elastic#21254)
  Move aws lambda metricset to GA (elastic#21255)
  [Docs] Typo in table syntax (elastic#20227)
  [ECS] Adds related.hosts to capture all hostnames and host identifiers on an event. (elastic#21160)
  Add recursive split to httpjson (elastic#21214)
  [DOCS] Add beat specific start widgets (elastic#21217)
  Fix timestamp handling in remote_write (elastic#21166)
  Fix aws, azure and googlecloud compute dashboards (elastic#21098)
  ...
v1v added a commit to v1v/beats that referenced this pull request Sep 28, 2020
* upstream/master: (60 commits)
  libbeat/cmd/instance: report cgroup stats (elastic#21113)
  Configurable index template loading (elastic#21212)
  [Ingest Manager] Thread safe sorted set (elastic#21290)
  Change mirror of kafka download (elastic#19645)
  [Ingest manager] Copy Action store on upgrade (elastic#21298)
  [CI] Pipeline 2.0 for monorepos (elastic#20104)
  Stop running agent container as root by default (elastic#21213)
  Stop running auditbeat container as root by default (elastic#21202)
  Fix autodiscover flaky tests (elastic#21242)
  [Ingest Manager] Enabled dev builds (elastic#21241)
  Fix librpm installation in auditbeat build (elastic#21239)
  Fix prometheus default config (elastic#21253)
  Fix dev guide test command (elastic#21254)
  Move aws lambda metricset to GA (elastic#21255)
  [Docs] Typo in table syntax (elastic#20227)
  [ECS] Adds related.hosts to capture all hostnames and host identifiers on an event. (elastic#21160)
  Add recursive split to httpjson (elastic#21214)
  [DOCS] Add beat specific start widgets (elastic#21217)
  Fix timestamp handling in remote_write (elastic#21166)
  Fix aws, azure and googlecloud compute dashboards (elastic#21098)
  ...
adriansr added a commit to adriansr/beats that referenced this pull request Sep 28, 2020
Gosigar's cgroups GetStatsForProcesses can return a nil Stats pointer
and no error when the ["blkio", "cpu", "cpuacct", "memory"] subsystems
are on the root cgroup.

Related elastic#21113
axw pushed a commit to axw/beats that referenced this pull request Sep 29, 2020
Gosigar's cgroups GetStatsForProcesses can return a nil Stats pointer
and no error when the ["blkio", "cpu", "cpuacct", "memory"] subsystems
are on the root cgroup.

Related elastic#21113
adriansr added a commit that referenced this pull request Sep 29, 2020
Gosigar's cgroups GetStatsForProcesses can return a nil Stats pointer
and no error when the ["blkio", "cpu", "cpuacct", "memory"] subsystems
are on the root cgroup.

Related #21113
axw added a commit that referenced this pull request Sep 30, 2020
…21334)

* libbeat/cmd/instance: report cgroup stats (#21113)

* libbeat/cmd/instance: report cgroup stats

(cherry picked from commit b4c7a93)

* Fix panic in cgroups monitoring

Gosigar's cgroups GetStatsForProcesses can return a nil Stats pointer
and no error when the ["blkio", "cpu", "cpuacct", "memory"] subsystems
are on the root cgroup.

Related #21113

Co-authored-by: Adrian Serrano <adrisr83@gmail.com>
axw added a commit to axw/apm-server that referenced this pull request Sep 30, 2020
axw added a commit to elastic/apm-server that referenced this pull request Oct 2, 2020
* Update to elastic/beats@ef6274d0d1e3

Brings in elastic/beats#21113

* tests/system: add geo.country_name to approvals

elastic/elasticsearch#61523

* Update docs

* systemtest: another country_name approval
axw added a commit to axw/apm-server that referenced this pull request Oct 2, 2020
* Update to elastic/beats@ef6274d0d1e3

Brings in elastic/beats#21113

* tests/system: add geo.country_name to approvals

elastic/elasticsearch#61523

* Update docs

* systemtest: another country_name approval
axw added a commit to elastic/apm-server that referenced this pull request Oct 5, 2020
* Update to elastic/beats@ef6274d0d1e3

Brings in elastic/beats#21113

* tests/system: add geo.country_name to approvals

elastic/elasticsearch#61523

* Update docs

* systemtest: another country_name approval
axw added a commit to elastic/elasticsearch that referenced this pull request Dec 9, 2020
Add field mappings for the cgroups metrics added to
beats monitoring in elastic/beats#21113,
and required by elastic/kibana#79050.
axw added a commit to elastic/elasticsearch that referenced this pull request Dec 9, 2020
Add field mappings for the cgroups metrics added to
beats monitoring in elastic/beats#21113,
and required by elastic/kibana#79050.
}
selfStats, err := cgroups.GetStatsForProcess(pid)
if err != nil {
logp.Err("error getting group status: %v", err)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Shouldn't that be "error getting cgroup stats"? The error message puzzled me initially..

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Indeed :)
Thanks for pointing that out, will be fixed by #23413

bmorelli25 pushed a commit to bmorelli25/observability-docs that referenced this pull request Dec 18, 2023
* Update to elastic/beats@ef6274d0d1e3

Brings in elastic/beats#21113

* tests/system: add geo.country_name to approvals

elastic/elasticsearch#61523

* Update docs

* systemtest: another country_name approval
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Team:Integrations Label for the Integrations team v7.10.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Report cgroups stats if running in container

6 participants