Skip to content

"Steps" configuration options for infrastructure inventory metrics#248360

Merged
smith merged 26 commits intoelastic:mainfrom
smith:nls/inv-steps
Jan 22, 2026
Merged

"Steps" configuration options for infrastructure inventory metrics#248360
smith merged 26 commits intoelastic:mainfrom
smith:nls/inv-steps

Conversation

@smith
Copy link
Contributor

@smith smith commented Jan 8, 2026

Add "Last value" metric option and "Steps" gradient configuration for Infrastructure inventory.

image image

Fixes #248382

@smith smith added backport:all-open Backport to all branches that could still receive a release release_note:enhancement labels Jan 8, 2026
@smith
Copy link
Contributor Author

smith commented Jan 8, 2026

/oblt-deploy

@smith
Copy link
Contributor Author

smith commented Jan 9, 2026

/oblt-deploy

@smith
Copy link
Contributor Author

smith commented Jan 9, 2026

/oblt-deploy

crespocarlos and others added 6 commits January 13, 2026 09:06
Adds support for filter aggregations that wrap other aggregations like top_metrics.
This enables metrics like last_value that use filter { exists } + top_metrics to work correctly.

Changes:
- Add FilterWithNestedAggRT type for detecting filter aggregations
- Update getValue to recursively handle nested aggregations within filters
- Add extractFirstNumericValue to extract numeric values from top_metrics for non-metadata fields
@smith
Copy link
Contributor Author

smith commented Jan 14, 2026

/oblt-deploy

@smith
Copy link
Contributor Author

smith commented Jan 14, 2026

/oblt-deploy

@smith smith marked this pull request as ready for review January 16, 2026 20:45
@smith smith requested review from a team as code owners January 16, 2026 20:45
@smith smith added backport:previous-minor and removed backport:all-open Backport to all branches that could still receive a release labels Jan 20, 2026
Copy link
Contributor

@cesco-f cesco-f left a comment

Choose a reason for hiding this comment

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

actionable-obs-team changes LGTM.

@simianhacker
Copy link
Member

simianhacker commented Jan 21, 2026

We should disable the "Apply" button when the user picks "Steps" but doesn't define any rules. Here are the steps to reproduce:

1. Go to: Observability → Infrastructure → Inventory (map view).
2. Open the legend popover (click the small color/legend icon).
3. Switch legend type from Gradient to Steps.
4. Do not edit any steps (don’t change labels/values/colors, don’t add/remove a row).
5. Click Apply.
6. Reload the page (hard refresh) or navigate away and back to Inventory.
7. When you click on the color/legend icon, you will see that "Steps" is still selected.

Update: I'm struggling to get this to happen again... I'm looking into this.

Ignore this. I was able to reproduce this once but now I'm unable to reproduce it with a "fresh install" and incognito browser.

@bryce-b
Copy link
Contributor

bryce-b commented Jan 21, 2026

/oblt-deploy

Copy link
Contributor

@crespocarlos crespocarlos left a comment

Choose a reason for hiding this comment

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

image image

@smith smith enabled auto-merge (squash) January 21, 2026 19:40
@smith smith added backport:version Backport to applied version labels v9.3.0 v9.4.0 labels Jan 21, 2026
@smith smith merged commit 381fa58 into elastic:main Jan 22, 2026
17 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.3

https://github.com/elastic/kibana/actions/runs/21233501037

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
infra 1897 1898 +1

Async chunks

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

id before after diff
infra 1.2MB 1.2MB +6.3KB

History

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 22, 2026
…lastic#248360)

Add "Last value" metric option and "Steps" gradient configuration for
Infrastructure inventory.

<img width="1428" height="656" alt="image"
src="https://github.com/user-attachments/assets/cf53fd1f-df01-4376-8284-2a9e88061fb2"
/>

<img width="930" height="984" alt="image"
src="https://github.com/user-attachments/assets/c97fc4ea-a5a6-41b8-830e-72340b4fa465"
/>

Fixes elastic#248382

---------

Co-authored-by: Carlos Crespo <carloshenrique.leonelcrespo@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 381fa58)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.3

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jan 22, 2026
…ics (#248360) (#249977)

# Backport

This will backport the following commits from `main` to `9.3`:
- ["Steps" configuration options for infrastructure inventory metrics
(#248360)](#248360)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Nathan L
Smith","email":"nathan.smith@elastic.co"},"sourceCommit":{"committedDate":"2026-01-22T02:15:30Z","message":"\"Steps\"
configuration options for infrastructure inventory metrics
(#248360)\n\nAdd \"Last value\" metric option and \"Steps\" gradient
configuration for\nInfrastructure inventory.\n\n<img width=\"1428\"
height=\"656\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cf53fd1f-df01-4376-8284-2a9e88061fb2\"\n/>\n\n<img
width=\"930\" height=\"984\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/c97fc4ea-a5a6-41b8-830e-72340b4fa465\"\n/>\n\nFixes
#248382\n\n---------\n\nCo-authored-by: Carlos Crespo
<carloshenrique.leonelcrespo@elastic.co>\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"381fa5886aae4b9c12729685fc38017240227137","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","ci:build-storybooks","backport:version","v9.3.0","backport:previous-minor","v9.4.0"],"title":"\"Steps\"
configuration options for infrastructure inventory
metrics","number":248360,"url":"https://github.com/elastic/kibana/pull/248360","mergeCommit":{"message":"\"Steps\"
configuration options for infrastructure inventory metrics
(#248360)\n\nAdd \"Last value\" metric option and \"Steps\" gradient
configuration for\nInfrastructure inventory.\n\n<img width=\"1428\"
height=\"656\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cf53fd1f-df01-4376-8284-2a9e88061fb2\"\n/>\n\n<img
width=\"930\" height=\"984\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/c97fc4ea-a5a6-41b8-830e-72340b4fa465\"\n/>\n\nFixes
#248382\n\n---------\n\nCo-authored-by: Carlos Crespo
<carloshenrique.leonelcrespo@elastic.co>\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"381fa5886aae4b9c12729685fc38017240227137"}},"sourceBranch":"main","suggestedTargetBranches":["9.3"],"targetPullRequestStates":[{"branch":"9.3","label":"v9.3.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/248360","number":248360,"mergeCommit":{"message":"\"Steps\"
configuration options for infrastructure inventory metrics
(#248360)\n\nAdd \"Last value\" metric option and \"Steps\" gradient
configuration for\nInfrastructure inventory.\n\n<img width=\"1428\"
height=\"656\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cf53fd1f-df01-4376-8284-2a9e88061fb2\"\n/>\n\n<img
width=\"930\" height=\"984\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/c97fc4ea-a5a6-41b8-830e-72340b4fa465\"\n/>\n\nFixes
#248382\n\n---------\n\nCo-authored-by: Carlos Crespo
<carloshenrique.leonelcrespo@elastic.co>\nCo-authored-by: Elastic
Machine
<elasticmachine@users.noreply.github.com>","sha":"381fa5886aae4b9c12729685fc38017240227137"}}]}]
BACKPORT-->

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
Co-authored-by: Carlos Crespo <carloshenrique.leonelcrespo@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
yuliia-fryshko pushed a commit to yuliia-fryshko/kibana that referenced this pull request Jan 22, 2026
…lastic#248360)

Add "Last value" metric option and "Steps" gradient configuration for
Infrastructure inventory.

<img width="1428" height="656" alt="image"
src="https://github.com/user-attachments/assets/cf53fd1f-df01-4376-8284-2a9e88061fb2"
/>

<img width="930" height="984" alt="image"
src="https://github.com/user-attachments/assets/c97fc4ea-a5a6-41b8-830e-72340b4fa465"
/>

Fixes elastic#248382

---------

Co-authored-by: Carlos Crespo <carloshenrique.leonelcrespo@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
qn895 pushed a commit to qn895/kibana that referenced this pull request Jan 22, 2026
…lastic#248360)

Add "Last value" metric option and "Steps" gradient configuration for
Infrastructure inventory.

<img width="1428" height="656" alt="image"
src="https://github.com/user-attachments/assets/cf53fd1f-df01-4376-8284-2a9e88061fb2"
/>

<img width="930" height="984" alt="image"
src="https://github.com/user-attachments/assets/c97fc4ea-a5a6-41b8-830e-72340b4fa465"
/>

Fixes elastic#248382

---------

Co-authored-by: Carlos Crespo <carloshenrique.leonelcrespo@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
dennis-tismenko pushed a commit to dennis-tismenko/kibana that referenced this pull request Jan 22, 2026
…lastic#248360)

Add "Last value" metric option and "Steps" gradient configuration for
Infrastructure inventory.

<img width="1428" height="656" alt="image"
src="https://github.com/user-attachments/assets/cf53fd1f-df01-4376-8284-2a9e88061fb2"
/>

<img width="930" height="984" alt="image"
src="https://github.com/user-attachments/assets/c97fc4ea-a5a6-41b8-830e-72340b4fa465"
/>

Fixes elastic#248382

---------

Co-authored-by: Carlos Crespo <carloshenrique.leonelcrespo@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Observability infra inventory step-based colors

7 participants