Skip to content

Commit

Permalink
[8.17] Expose values of certain task manager configuration settings i…
Browse files Browse the repository at this point in the history
…n the telemetry (elastic#202511) (elastic#202685)

# Backport

This will backport the following commits from `main` to `8.17`:
- [Expose values of certain task manager configuration settings in the
telemetry (elastic#202511)](elastic#202511)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Mike
Côté","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-03T11:22:23Z","message":"Expose
values of certain task manager configuration settings in the telemetry
(elastic#202511)\n\nIn this PR, I'm adding some settings to the `exposeToUsage`
variable\r\nwhich allows the values of these settings to be reported via
telemetry.\r\nThis way we can see what values, ratios, etc a certain
setting has.\r\n\r\nSettings to report values instead of
`[redacted]`:\r\n- `xpack.task_manager.claim_strategy`\r\n-
`xpack.task_manager.discovery.active_nodes_lookback`\r\n-
`xpack.task_manager.unsafe.exclude_task_types`","sha":"bca48508144714b678772541a22a6e5f9210f4a5","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:Task
Manager","Team:ResponseOps","v9.0.0","backport:version","v8.17.0","v8.18.0","v8.16.2"],"title":"Expose
values of certain task manager configuration settings in the
telemetry","number":202511,"url":"https://github.com/elastic/kibana/pull/202511","mergeCommit":{"message":"Expose
values of certain task manager configuration settings in the telemetry
(elastic#202511)\n\nIn this PR, I'm adding some settings to the `exposeToUsage`
variable\r\nwhich allows the values of these settings to be reported via
telemetry.\r\nThis way we can see what values, ratios, etc a certain
setting has.\r\n\r\nSettings to report values instead of
`[redacted]`:\r\n- `xpack.task_manager.claim_strategy`\r\n-
`xpack.task_manager.discovery.active_nodes_lookback`\r\n-
`xpack.task_manager.unsafe.exclude_task_types`","sha":"bca48508144714b678772541a22a6e5f9210f4a5"}},"sourceBranch":"main","suggestedTargetBranches":["8.17","8.x","8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202511","number":202511,"mergeCommit":{"message":"Expose
values of certain task manager configuration settings in the telemetry
(elastic#202511)\n\nIn this PR, I'm adding some settings to the `exposeToUsage`
variable\r\nwhich allows the values of these settings to be reported via
telemetry.\r\nThis way we can see what values, ratios, etc a certain
setting has.\r\n\r\nSettings to report values instead of
`[redacted]`:\r\n- `xpack.task_manager.claim_strategy`\r\n-
`xpack.task_manager.discovery.active_nodes_lookback`\r\n-
`xpack.task_manager.unsafe.exclude_task_types`","sha":"bca48508144714b678772541a22a6e5f9210f4a5"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Mike Côté <[email protected]>
  • Loading branch information
kibanamachine and mikecote authored Dec 3, 2024
1 parent 7575785 commit e4b0e0e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions x-pack/plugins/task_manager/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,13 @@ export const config: PluginConfigDescriptor<TaskManagerConfig> = {
},
];
},
exposeToUsage: {
claim_strategy: true,
discovery: {
active_nodes_lookback: true,
},
unsafe: {
exclude_task_types: true,
},
},
};

0 comments on commit e4b0e0e

Please sign in to comment.