[Discover] Add support for default histogram breakdown fields and custom breakdown colour mappings #194549
Labels
enhancement
New value added to drive a business result
Feature:Discover
Discover Application
Feature:ES|QL
ES|QL related features in Kibana
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
Project:OneDiscover
Enrich Discover with contextual awareness
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
📓 Summary
For the Discover logs data source profile, we want to set the default histogram breakdown field to
log.level
(and do similar for other profiles in the future). Additionally, we want to assign specific colour mappings and ordering to the breakdown values to better represent the data to users:There are two separate tasks needed to support this in the contextual awareness framework:
getDefaultAppState
extension point should be updated to allow defining a breakdown field as part of the default profile state.getBreakdownColorMappings
, including custom ordering. The extension point should be separate from the default profile state because it should possible for a single profile to define colour mappings for multiple fields, not just the default breakdown field. The custom ordering portion of this work is blocked by custom breakdown ordering in Lens: [Lens] Custom Breakdown Presentation Order #191988.Currently a PoC exists demonstrating how this could work for ES|QL mode, but the
log.level
field is hard coded and does not use an extension point: #190213. It can be used as a reference for how colour mappings can be passed to the Lens embeddable.✔️ Acceptance criteria
getDefaultAppState
extension point to support defining a default histogram breakdown field.The text was updated successfully, but these errors were encountered: