Skip to content

Conversation

@fearful-symmetry
Copy link
Contributor

@fearful-symmetry fearful-symmetry commented Mar 15, 2022

What does this PR do?

This adds the new skip_major option to the docker/diskio integration. I also noticed that the actual entry for the DeDot value was missing from most of the handlebars files, so I added those in as well.

This also fixes some missing fields in the mapping that were breaking CI.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

@fearful-symmetry fearful-symmetry added bug Something isn't working, use only for issues Team:Elastic-Agent-Data-Plane Agent Data Plane team [elastic/elastic-agent-data-plane] labels Mar 15, 2022
@fearful-symmetry fearful-symmetry requested a review from a team as a code owner March 15, 2022 23:59
@fearful-symmetry fearful-symmetry self-assigned this Mar 15, 2022
@elasticmachine
Copy link

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@elasticmachine
Copy link

elasticmachine commented Mar 16, 2022

💚 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: 2022-04-29T17:26:52.159+0000

  • Duration: 21 min 10 sec

Test stats 🧪

Test Results
Failed 0
Passed 36
Skipped 0
Total 36

🤖 GitHub comments

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

  • /test : Re-trigger the build.

@fearful-symmetry fearful-symmetry requested a review from a team March 17, 2022 16:46
@cmacknz
Copy link
Member

cmacknz commented Mar 17, 2022

I don't see anything obviously wrong but I haven't really touched this repository. Is there a change log you need to update?

I would ping someone from the integrations side on Slack to look at this if you haven't already.

@fearful-symmetry
Copy link
Contributor Author

Alright, finally managed to test this.

@fearful-symmetry
Copy link
Contributor Author

/test

- os_system
conditions:
kibana.version: ^8.0.0
kibana.version: ^8.2.0
Copy link

Choose a reason for hiding this comment

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

Does this PR contain anything that can't work with 8.0? If not, I'd keep the constraint on the lower version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The skip_major config opt is new to 8.2, yah.

Copy link
Member

Choose a reason for hiding this comment

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

Looking at this, would it make sense to split both changes? We could release first a version with the fix for dedotting, so this is fixed for current users, and then another version, targetting 8.2 with the skip_major config.

Copy link
Member

Choose a reason for hiding this comment

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

@fearful-symmetry thoughts about releasing this as two different issues?

@fearful-symmetry fearful-symmetry requested a review from a team April 26, 2022 19:41
release: ga
description: |
Container labels
- name: container.cpu.usage
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not fully sure but shouldn't those ECS fields be in the ecs.yml file?

Copy link
Contributor

@sayden sayden left a comment

Choose a reason for hiding this comment

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

I left one question but everything looks good to me

Comment on lines 6 to 9
- name: container.cpu.usage
type: scaled_float
format: percent
description: ECS field for container CPU usage
Copy link
Member

Choose a reason for hiding this comment

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

You can import definitions of ECS fields with external: ecs. Consider doing this at least for all the ECS fields added in this PR.

Suggested change
- name: container.cpu.usage
type: scaled_float
format: percent
description: ECS field for container CPU usage
- name: container.cpu.usage
external: ecs

ECS version used is defined in _dev/build/build.yml.

@jsoriano jsoriano requested a review from a team April 27, 2022 10:46
@elasticmachine
Copy link

elasticmachine commented Apr 27, 2022

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (0/0) 💚
Files 100.0% (0/0) 💚 2.799
Classes 100.0% (0/0) 💚 2.799
Methods 100.0% (27/27) 💚 11.769
Lines 100.0% (0/0) 💚 11.068
Conditionals 100.0% (0/0) 💚

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.

Looks good, wondering if this should be released as two different things, and as a new minor.

Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
fearful-symmetry and others added 3 commits April 28, 2022 10:21
Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
@jsoriano
Copy link
Member

There is this open question #2830 (comment), it LGTM in either case, but I would like to have your thoughts on this.

@fearful-symmetry
Copy link
Contributor Author

@jsoriano yah, how about I do the skip_major in a follow up...

@fearful-symmetry fearful-symmetry changed the title Add dedot to templates, add skip_major config Add dedot to templates Apr 29, 2022
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.

👍

Copy link
Contributor

@tetianakravchenko tetianakravchenko left a comment

Choose a reason for hiding this comment

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

LGTM

@fearful-symmetry fearful-symmetry merged commit 60e6a90 into elastic:main May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working, use only for issues Team:Elastic-Agent-Data-Plane Agent Data Plane team [elastic/elastic-agent-data-plane]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants