Skip to content

Commit

Permalink
Change all SLO assets to managed and indices to hidden (#154953)
Browse files Browse the repository at this point in the history
## Summary

This PR adds the Managed label to the transform definitions, ingest
pipelines, and index components. It also sets the changes the
destination indices to hidden with a dot prefix for the name so they
show up as system indices.

#### Transformer with Managed label

<img width="1750" alt="image"
src="https://user-images.githubusercontent.com/41702/231869095-56a4049a-f323-4b57-bda7-f16b2110addd.png">

#### Ingest Pipeline with Managed label

<img width="1019" alt="image"
src="https://user-images.githubusercontent.com/41702/231869372-4985c421-61b4-46d3-96a3-95869750ec6c.png">

#### Index Components

<img width="1770" alt="image"
src="https://user-images.githubusercontent.com/41702/231869650-bf2dd153-2319-4049-bc30-c692c29629f2.png">


#### Hidden data indices

<img width="1776" alt="image"
src="https://user-images.githubusercontent.com/41702/231869800-62c6b290-bddd-425f-a20a-7566bcafb0c8.png">
  • Loading branch information
simianhacker authored Apr 14, 2023
1 parent bd27cb6 commit a07bcae
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@ export const getSLOMappingsTemplate = (name: string) => ({
_meta: {
description: 'Mappings for SLO rollup data',
version: 1,
managed: true,
managed_by: 'observability',
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@
export const getSLOSettingsTemplate = (name: string) => ({
name,
template: {
settings: {},
settings: {
hidden: true,
},
},
_meta: {
description: 'Settings for SLO rollup data',
version: 1,
managed: true,
managed_by: 'observability',
},
});
6 changes: 3 additions & 3 deletions x-pack/plugins/observability/server/assets/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* 2.0.
*/

export const SLO_COMPONENT_TEMPLATE_MAPPINGS_NAME = 'slo-observability.sli-mappings';
export const SLO_COMPONENT_TEMPLATE_SETTINGS_NAME = 'slo-observability.sli-settings';
export const SLO_INDEX_TEMPLATE_NAME = 'slo-observability.sli';
export const SLO_COMPONENT_TEMPLATE_MAPPINGS_NAME = '.slo-observability.sli-mappings';
export const SLO_COMPONENT_TEMPLATE_SETTINGS_NAME = '.slo-observability.sli-settings';
export const SLO_INDEX_TEMPLATE_NAME = '.slo-observability.sli';
export const SLO_RESOURCES_VERSION = 1;
export const SLO_INGEST_PIPELINE_NAME = `${SLO_INDEX_TEMPLATE_NAME}.monthly`;
export const SLO_DESTINATION_INDEX_NAME = `${SLO_INDEX_TEMPLATE_NAME}-v${SLO_RESOURCES_VERSION}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ export const getSLOIndexTemplate = (name: string, indexPattern: string, composed
_meta: {
description: 'Template for SLO rollup data',
version: 1,
managed: true,
managed_by: 'observability',
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ export const getSLOPipelineTemplate = (id: string, indexNamePrefix: string) => (
_meta: {
description: 'SLO ingest pipeline',
version: 1,
managed: true,
managed_by: 'observability',
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ export const getSLOTransformTemplate = (
},
_meta: {
version: 1,
managed: true,
managed_by: 'observability',
},
});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a07bcae

Please sign in to comment.