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.x] [ECO][Inventory v2] APM changes (#202497) #204524

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

Closes [202299](elastic#202299)

## Summary

This PR replaces the query in `getServiceEntitySummary` with the v2
function (`entityManagerClient.v2.searchEntities`)

## Testing
- Verify the response of the summary endpoint in the UI:

https://github.com/user-attachments/assets/ba895f7d-57c8-492b-81dd-cf7869ffbc86

- Dev tools query
  -  APM service
      #### Request:
      ```
GET
kbn:/internal/apm/entities/services/synth-node-0/summary?environment=ENVIRONMENT_ALL
      ```
      #### Response
      ```
      {
        "serviceName": "synth-node-0",
        "agentName": "nodejs",
        "lastSeenTimestamp": "2024-12-13T16:29:19.868Z",
        "dataStreamTypes": [
          "logs",
          "traces"
        ],
        "environments": [
          "Synthtrace: simple_trace"
        ]
      }
      ```

  -  Service from logs
      #### Request:
      ```
GET
kbn:/internal/apm/entities/services/synth-node/summary?environment=ENVIRONMENT_ALL
      ```
      #### Response:
      ```
      {
        "serviceName": "synth-node",
        "agentName": "go",
        "lastSeenTimestamp": "2024-12-13T16:27:43.461Z",
        "dataStreamTypes": [
          "logs",
          "traces"
        ],
        "environments": [
          "Synthtrace: logs_traces_hosts"
        ]
      }
      ```

---------

Co-authored-by: Jenny <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit a66c139)
@kibanamachine kibanamachine enabled auto-merge (squash) December 17, 2024 09:30
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Dec 17, 2024
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

🤖 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!)

@elasticmachine
Copy link
Contributor

⏳ Build in-progress

  • Buildkite Build
  • Commit: c277f7e
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-204524-c277f7e0bf93

cc @cauemarcondes

@kibanamachine kibanamachine merged commit ab308aa into elastic:8.x Dec 17, 2024
15 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 Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants