Skip to content

[SLO] Link dashboards to SLO#233265

Merged
cesco-f merged 4 commits intoelastic:mainfrom
cesco-f:slo-dashboards-combobox-2
Sep 2, 2025
Merged

[SLO] Link dashboards to SLO#233265
cesco-f merged 4 commits intoelastic:mainfrom
cesco-f:slo-dashboards-combobox-2

Conversation

@cesco-f
Copy link
Contributor

@cesco-f cesco-f commented Aug 28, 2025

This PR is a follow-up of #232583 and it closes #228509.

Dashboards can be linked to SLOs.

Screen.Recording.2025-08-28.at.10.36.26.mov

@cesco-f cesco-f added release_note:enhancement backport:skip This PR does not require backporting labels Aug 28, 2025
@github-actions github-actions bot added the author:obs-ux-management PRs authored by the obs ux management team label Aug 28, 2025
@cesco-f cesco-f marked this pull request as ready for review August 28, 2025 08:47
@cesco-f cesco-f requested review from a team as code owners August 28, 2025 08:47
@botelastic botelastic bot added the Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. label Aug 28, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@cesco-f cesco-f marked this pull request as draft August 29, 2025 09:53
cesco-f added a commit that referenced this pull request Sep 1, 2025
This pull request introduces a new shared package,
`@kbn/dashboards-selector`, to enable reuse of the combobox component.
This component is currently used to link dashboards to rules, and it
will now also be used to link dashboards to SLOs.

The component I want to reuse in SLO:
<img width="1166" height="283" alt="Screenshot 2025-08-29 at 12 07 18"
src="https://github.com/user-attachments/assets/c6aff5cc-1a7a-4371-9b13-46025dd38904"
/>


This update is necessary for the implementation of
#233265.

---------

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
@cesco-f cesco-f force-pushed the slo-dashboards-combobox-2 branch from 5e327c6 to aa2c98b Compare September 1, 2025 09:45
@cesco-f cesco-f removed the request for review from a team September 1, 2025 09:46
@cesco-f cesco-f marked this pull request as ready for review September 1, 2025 09:47
@mgiota mgiota self-requested a review September 1, 2025 10:43
security?: SecurityPluginStart;
fieldsMetadata: FieldsMetadataPublicStart;
apmSourcesAccess: ApmSourceAccessPluginStart;
contentManagement: ContentManagementPublicStart;
Copy link
Contributor

Choose a reason for hiding this comment

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

Linking with this issue, where we can remove the dependency to the contentManagement plugin

Copy link
Contributor

Choose a reason for hiding this comment

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

Just to clarify, this comment of mine regarding removing dependency to the contentManagement plugin, is something that does NOT need to be addressed in current PR. I put it here as a reminder for when addressing this issue.

I also just read Dominique's here, so it might be that we don't need to replace anything (I need to refresh what it is about). @cesco-f Can you weigh in here if we can replace the use of dashboardServiceProvider with the api in the rules form?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I left a comment there!

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, we discussed about it! With the new abstract dashboards selector component you introduce in this PR, there is no need to use the linked dashboards api in the rule form.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
slo 1244 1247 +3

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
slo 56 57 +1

Async chunks

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

id before after diff
slo 970.2KB 974.2KB +4.0KB

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
_data_stream_timestamp 1 - -1
_doc_count 1 - -1
_ignored_source 1 - -1
_index_mode 1 - -1
_inference_fields 1 - -1
_tier 1 - -1
apm-custom-dashboards 5 - -5
apm-server-schema 2 - -2
apm-service-group 5 - -5
application_usage_daily 2 - -2
config 2 - -2
config-global 2 - -2
coreMigrationVersion 1 - -1
created_at 1 - -1
created_by 1 - -1
entity-definition 9 - -9
entity-discovery-api-key 2 - -2
event_loop_delays_daily 2 - -2
favorites 4 - -4
file 11 - -11
file-upload-usage-collection-telemetry 3 - -3
fileShare 5 - -5
infra-custom-dashboards 4 - -4
infrastructure-monitoring-log-view 2 - -2
intercept_trigger_record 5 - -5
legacy-url-alias 7 - -7
managed 1 - -1
ml-job 6 - -6
ml-module 13 - -13
ml-trained-model 7 - -7
monitoring-telemetry 2 - -2
namespace 1 - -1
namespaces 1 - -1
observability-onboarding-state 2 - -2
originId 1 - -1
product-doc-install-status 7 - -7
references 4 - -4
sample-data-telemetry 3 - -3
security-ai-prompt 8 - -8
slo 11 - -11
space 5 - -5
synthetics-monitor 34 - -34
synthetics-monitor-multi-space 34 - -34
tag 4 - -4
type 1 - -1
typeMigrationVersion 1 - -1
ui-metric 2 - -2
updated_at 1 - -1
updated_by 1 - -1
upgrade-assistant-ml-upgrade-operation 3 - -3
upgrade-assistant-reindex-operation 3 - -3
uptime-synthetics-api-key 2 - -2
url 5 - -5
usage-counters 2 - -2
total -246
Unknown metric groups

API count

id before after diff
slo 56 57 +1

History

import { i18n } from '@kbn/i18n';
import React from 'react';
import { Controller, useFormContext } from 'react-hook-form';
import { DashboardsSelector } from '@kbn/dashboards-selector';
Copy link
Contributor

Choose a reason for hiding this comment

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

Great for creating this reusable component!

Copy link
Contributor

@mgiota mgiota left a comment

Choose a reason for hiding this comment

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

@cesco-f I tested it and it works fine. Great for reusing the shareable dashboards-selector component and driving all the discussions with the core/platform team!

I am pasting here @kdelemme's text, which is something I would like to test, but haven't done so yet. Did you try this? I want us to be sure we won't have issues with SLOs that have been created before the introduction of new dashboards artifacts.

One thing I would like to test is the upgrade path (should be fine since everything is optional): creating an SLO on main, and then running this branch and trying to read/edit this SLO. Could you confirm everything is fine on this side?

@cesco-f
Copy link
Contributor Author

cesco-f commented Sep 1, 2025

@cesco-f I tested it and it works fine. Great for reusing the shareable dashboards-selector component and driving all the discussions with the core/platform team!

I am pasting here @kdelemme's text, which is something I would like to test, but haven't done so yet. Did you try this? I want us to be sure we won't have issues with SLOs that have been created before the introduction of new dashboards artifacts.

One thing I would like to test is the upgrade path (should be fine since everything is optional): creating an SLO on main, and then running this branch and trying to read/edit this SLO. Could you confirm everything is fine on this side?

I did when testing the backend part, but please double check before approving, thanks 😊

Copy link
Contributor

@mgiota mgiota left a comment

Choose a reason for hiding this comment

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

I did when testing the backend part, but please double check before approving, thanks 😊

I verify that everything works fine!

@cesco-f cesco-f merged commit 041aa56 into elastic:main Sep 2, 2025
12 checks passed
@cesco-f cesco-f deleted the slo-dashboards-combobox-2 branch September 2, 2025 09:10
ymao1 pushed a commit to ymao1/kibana that referenced this pull request Sep 2, 2025
This pull request introduces a new shared package,
`@kbn/dashboards-selector`, to enable reuse of the combobox component.
This component is currently used to link dashboards to rules, and it
will now also be used to link dashboards to SLOs.

The component I want to reuse in SLO:
<img width="1166" height="283" alt="Screenshot 2025-08-29 at 12 07 18"
src="https://github.com/user-attachments/assets/c6aff5cc-1a7a-4371-9b13-46025dd38904"
/>


This update is necessary for the implementation of
elastic#233265.

---------

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
ymao1 pushed a commit to ymao1/kibana that referenced this pull request Sep 2, 2025
This PR is a follow-up of elastic#232583
and it closes elastic#228509.

Dashboards can be linked to SLOs.



https://github.com/user-attachments/assets/a9593926-ad01-4c40-be1b-27b44eef81ae

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
MichelLosier pushed a commit to MichelLosier/kibana that referenced this pull request Sep 2, 2025
This pull request introduces a new shared package,
`@kbn/dashboards-selector`, to enable reuse of the combobox component.
This component is currently used to link dashboards to rules, and it
will now also be used to link dashboards to SLOs.

The component I want to reuse in SLO:
<img width="1166" height="283" alt="Screenshot 2025-08-29 at 12 07 18"
src="https://github.com/user-attachments/assets/c6aff5cc-1a7a-4371-9b13-46025dd38904"
/>


This update is necessary for the implementation of
elastic#233265.

---------

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
MichelLosier pushed a commit to MichelLosier/kibana that referenced this pull request Sep 2, 2025
This PR is a follow-up of elastic#232583
and it closes elastic#228509.

Dashboards can be linked to SLOs.



https://github.com/user-attachments/assets/a9593926-ad01-4c40-be1b-27b44eef81ae

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
kowalczyk-krzysztof pushed a commit to kowalczyk-krzysztof/kibana that referenced this pull request Sep 3, 2025
This pull request introduces a new shared package,
`@kbn/dashboards-selector`, to enable reuse of the combobox component.
This component is currently used to link dashboards to rules, and it
will now also be used to link dashboards to SLOs.

The component I want to reuse in SLO:
<img width="1166" height="283" alt="Screenshot 2025-08-29 at 12 07 18"
src="https://github.com/user-attachments/assets/c6aff5cc-1a7a-4371-9b13-46025dd38904"
/>


This update is necessary for the implementation of
elastic#233265.

---------

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
kowalczyk-krzysztof pushed a commit to kowalczyk-krzysztof/kibana that referenced this pull request Sep 3, 2025
This PR is a follow-up of elastic#232583
and it closes elastic#228509.

Dashboards can be linked to SLOs.



https://github.com/user-attachments/assets/a9593926-ad01-4c40-be1b-27b44eef81ae

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:obs-ux-management PRs authored by the obs ux management team backport:skip This PR does not require backporting release_note:enhancement Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SLO] [Assets] Handle dashboard Artifacts on SLO

4 participants