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

[APM][Multi-signal service inventory] Create new API to fetch data from OAM indices (/apm/assets/services #181720

Closed
kpatticha opened this issue Apr 25, 2024 · 2 comments · Fixed by #181842
Assignees
Labels
enhancement New value added to drive a business result Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team

Comments

@kpatticha
Copy link
Contributor

Based on the assets index created here #181387

Introduce a new endpoint /apm/assets/services that fetches the service list along with their signals

The response will be used to render the multi-signal service inventory and to request the corresponding metrics.

@botelastic botelastic bot added the needs-team Issues missing a team label label Apr 25, 2024
@kpatticha kpatticha self-assigned this Apr 25, 2024
@cauemarcondes cauemarcondes added the Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team label Apr 25, 2024
@elasticmachine
Copy link
Contributor

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

@botelastic botelastic bot removed the needs-team Issues missing a team label label Apr 25, 2024
@kpatticha kpatticha changed the title [APM][Inventory] Create new API to fetch data from OAM indices (/apm/assets/services [APM][New Service Inventory] Create new API to fetch data from OAM indices (/apm/assets/services Apr 25, 2024
@roshan-elastic
Copy link

Hey @cauemarcondes - I removed these from the ROO project board as that board should only show 'projects'.

@smith smith added the enhancement New value added to drive a business result label May 1, 2024
@kpatticha kpatticha changed the title [APM][New Service Inventory] Create new API to fetch data from OAM indices (/apm/assets/services [APM][Multi-signal service inventory] Create new API to fetch data from OAM indices (/apm/assets/services May 7, 2024
kpatticha added a commit that referenced this issue May 7, 2024
## Summary

#181720

The PR introduces the API `internal/apm/assets/services` and the
`createAssetsESClient` which is responsible for fetching data from the
`assets` index.


### Response 

```
{
  "services": [
    {
      "asset": {
        "signalTypes": {
          "asset.traces": true,
          "asset.logs": true
        },
        "identifyingMetadata": [
          "service.name"
        ]
      },
      "service": {
        "name": "multisignal-service",
        "environment": "testing"
      }
    }
  ]
}

```


### Required fields

1. start 
2. end
3. kuery

Example
```
http://localhost:5601/lph/internal/apm/assets/services?kuery=service.name:synth-node-0&start=2024-04-26T10%3A26%3A34.677Z&end=2024-04-26T10%3A26%3A34.677Z&
```

### Notes
- Environment filter is not included in this PR as there is a still a
discussion in OAM
- The endpoint will be moved to another plugin, we decided to have in
apm for now due to time constrains

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants