Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.15] [Infra] Add observability feature id to host request (#192898) #193260

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

Bluefinger
Copy link
Contributor

Backport

This will backport the following commits from main to 8.15:

Questions ?

Please refer to the Backport tool documentation

\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n\n\nCo-authored-by: Gonçalo Rica Pais da Silva "}}]}] BACKPORT-->

## Summary

Fixes the Hosts view for serverless by enabling the `observability`
feature id for the `/api/metrics/infra/{assetType}` request.

Closes elastic#191078

## How to test

- Go to Infrastructure -> Hosts
- Go to Alerts & Rules, Infrastructure Rules and create a new Inventory
Rule, something like alert on cpu usage above certain %.
- Allow the rule/alert to run
- Go back to Infrastructure -> Hosts view
- Hosts table should have a column with alert icons now visible for all
hosts with alerts active on them.

This should be tested against serverless + stateful versions of the
Observability product.

https://github.com/user-attachments/assets/8e0b36e0-30e6-4176-8190-592b3aaf2732

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 3062292)

# Conflicts:
#	x-pack/plugins/observability_solution/infra/server/routes/infra/lib/host/get_hosts_alerts_count.ts
@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@Bluefinger Bluefinger merged commit 11acd01 into elastic:8.15 Sep 18, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport ci:project-deploy-observability Create an Observability project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants