[Logs UI] Use dedicated configuration saved object #120924
Labels
Feature:Logs UI
Logs UI feature
refactoring
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
technical debt
Improvement of the software architecture and operational architecture
📓 Summary
We want to separate the saved object type that stores Logs UI source configurations from the saved object type that stores Metrics UI source configurations. As a first step, the former will be stored in a newly introduced saved object type
infrastructure-monitoring-log-view
while the latter will continue to use theinfrastructure-ui-source
type.While doing so the "source configuration" concept can be renamed to "log view" to foreshadow their extended usage and the log view management can be implemented using a
LogViewService
to align with the recommended Kibana plugin architecture.part of #120920
✔️ Acceptance criteria
infrastructure-monitoring-log-view
is registered with Kibana.logViewRT
is defined which can be used to decode and encode the log view API payloads and the saved objectattributes
, which include a subset of the attributes of the infra source config:name
description
logIndices
logColumns
LogView
is derived from that runtime type.LogViewService
is introduced in theinfra
plugin.infrastructure-monitoring-log-view
with an origin ofstored
.internal
.InfraSource
lib with originsinfra-source-stored
,infra-source-internal
, andinfra-source-fallback
respectively.infra
plugin provides adefineInternalLogView
via itssetup()
contract, which allows for registration of internal log views akin to the existingdefineInternalSourceConfiguration
.defineInternalSourceConfiguration
that use it for configuring log-specific settings use the newdefineInternalLogView
instead.InfraSources
to read and write saved objects.InfraSources
.💡 Background
Current source config lookup and update order
internal
overstored
internal
is preventedFuture log view lookup and update order
stored
overinternal
, allowing for customization of internal views by the userinfra-source-internal
,infra-source-stored
, andinfra-source-fallback
when falling back to the old saved objects.PATCH
operations only ever update the new dedicated log view saved objects.The text was updated successfully, but these errors were encountered: