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

[Fleet] Add agent policy inactivity_timeoutexperimental setting #147432

Merged

Conversation

hop-dev
Copy link
Contributor

@hop-dev hop-dev commented Dec 13, 2022

Summary

Part of #143455.

Add a new agent policy setting inactivity_timeout, this is behind a feature flag for now and doesn't actually do anything until later PRs are merged, just trying to keep the PRs neat and small :)

Screenshot 2022-12-13 at 12 05 09

Add this to your kibana config to see the new UI element:

xpack.fleet.enableExperimental: 
    - inactivityTimeout

Checklist

Delete any items that are not applicable to this PR.

@hop-dev hop-dev requested a review from a team as a code owner December 13, 2022 12:05
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Dec 13, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@hop-dev hop-dev self-assigned this Dec 13, 2022
@hop-dev hop-dev added the release_note:skip Skip the PR/issue when compiling release notes label Dec 13, 2022
Copy link
Member

@nchaulet nchaulet 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 to me 🚀

@hop-dev hop-dev force-pushed the 143455-add-experimental-inactivity-timeout branch from 6478d1f to cf952bd Compare December 13, 2022 14:04
@hop-dev hop-dev requested a review from a team as a code owner December 13, 2022 14:04
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
fleet 922 923 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 897.6KB 898.9KB +1.3KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
fleet 120.5KB 120.6KB +21.0B

Saved Objects .kibana field count

Every field in each saved object type adds overhead to Elasticsearch. Kibana needs to keep the total field count below Elasticsearch's default limit of 1000 fields. Only specify field mappings for the fields you wish to search on or query. See https://www.elastic.co/guide/en/kibana/master/saved-objects-service.html#_mappings

id before after diff
ingest-agent-policies 19 20 +1
Unknown metric groups

API count

id before after diff
fleet 1027 1028 +1

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 60 67 +7
osquery 109 115 +6
securitySolution 445 451 +6
total +21

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 69 76 +7
osquery 110 117 +7
securitySolution 521 527 +6
total +22

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @hop-dev

@hop-dev hop-dev enabled auto-merge (squash) December 13, 2022 15:32
@@ -102,6 +102,7 @@ const getSavedObjectTypes = (
is_default_fleet_server: { type: 'boolean' },
status: { type: 'keyword' },
unenroll_timeout: { type: 'integer' },
inactivity_timeout: { type: 'integer' },
Copy link
Member

Choose a reason for hiding this comment

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

Q: Are we planning to query this field? If not, I'd add index: false to avoid mapping field explosion in the .kibana index.

Suggested change
inactivity_timeout: { type: 'integer' },
inactivity_timeout: { type: 'integer', index: false },

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey, thanks for the comment, I'll be searching and aggregating on it in a following PR 👍

Copy link
Member

Choose a reason for hiding this comment

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

Awesome! Thanks for confirming! Changes LGTM then

@hop-dev hop-dev merged commit 1b699fc into elastic:main Dec 14, 2022
@hop-dev hop-dev deleted the 143455-add-experimental-inactivity-timeout branch December 14, 2022 11:20
jloleysens added a commit to jloleysens/kibana that referenced this pull request Dec 14, 2022
* main: (21 commits)
  [Profiling] Remove link to 'Other' bucket (elastic#147523)
  [Synthetics UI] Add missing configuration options to the add/edit monitor forms (elastic#147265)
  [DOCS] Updates what's new pages (elastic#147483)
  [Fleet][Endpoint][RBAC V2] Update fleet router and config to allow API access via RBAC controls (elastic#145361)
  [Guided onboarding] Update guide IDs (elastic#147348)
  [Synthetics] Add synthetics settings alerting default (elastic#147339)
  [Security Solution][Endpoint] Fix Policy form being displayed as Read Only when displayed in Fleet pages (elastic#147212)
  [Cases] Save draft user comment (elastic#146327)
  [API Docs] Fix `--plugin` filter (elastic#147500)
  [Fleet] added a logic to use `destinationId` when tagging imported SOs (elastic#147439)
  Do not skip UPDATE_TARGET_MAPPINGS if upgrading to a newer stack version (elastic#147503)
  [Discover] Validate if Data View time field exists on Alert creation / editing (elastic#146324)
  [Discover] Fix Discover navigation from Lens embeddable (elastic#147000)
  Allow users to Update API Keys (elastic#146237)
  Update dependency xstate to ^4.35.0 (main) (elastic#147463)
  [Behavioral Analytics] Remove feature flag to hide functionality (elastic#147429)
  [Fleet] Add agent policy `inactivity_timeout`experimental setting (elastic#147432)
  [APM] Switching service groups from grid to flex layout (elastic#147448)
  [Fleet] Add missing endpoints to openApi specs (elastic#147452)
  [AO] Allow providing custom time range for Alert Summary Widget (elastic#147253)
  ...
nreese pushed a commit to nreese/kibana that referenced this pull request Dec 16, 2022
…astic#147432)

## Summary

Part of elastic#143455.

Add a new agent policy setting `inactivity_timeout`, this is behind a
feature flag for now and doesn't actually do anything until later PRs
are merged, just trying to keep the PRs neat and small :)

<img width="1233" alt="Screenshot 2022-12-13 at 12 05 09"
src="https://user-images.githubusercontent.com/3315046/207313388-6ee43e3b-b935-4ac9-a7bf-ebe386abe8ac.png">

Add this to your kibana config to see the new UI element:

```
xpack.fleet.enableExperimental: 
    - inactivityTimeout
```
 
### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 147432 locally

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Dec 30, 2023
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add the label auto-backport or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 147432 locally

@kpollich kpollich added backport:skip This commit does not require backporting and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants