kibana/packages/kbn-apm-synthtrace-client
jennypavlova 7658bafed2
[Infra UI] Show only hosts with metrics collected by system module in the hosts view (#177239)
Closes #176403

## Summary

This PR adds a filter for the `event.module` to be `system` because the
Hosts View is only compatible with the metrics-system indices - I added
a
[comment](https://github.com/elastic/kibana/issues/176403#issuecomment-1954232722)
to explain the change in the query. It adds infra client as part of the
synthtrace and a scenario to test the change

## Testing 
- Use the new synthtrace scenario: `node scripts/synthtrace --clean
infra_hosts_with_apm_hosts.ts`
- By default there should be `10` host visible on the host view and 3
separate services in APM (the APM hosts should not be visible)
- The scenario can be used with different numbers of services/hosts for
example:
`node scripts/synthtrace --clean --scenarioOpts.numServices=5
--scenarioOpts.numHosts=5 infra_hosts_with_apm_hosts.ts`
- 5 hosts shown on Infrastructure > Hosts (the APM hosts should not be
visible)

![image](d8763a24-95c2-43cd-991b-23edd102f47a)
       - 5 services shown on APM > Services

![image](0638cfdb-3d6f-4f72-915d-d67764bc9349)
- Use remote cluster (with APM)
   - The hosts with `0` metrics coming from APM should not be visible:
<img width="1920" alt="image"
src="af69efc0-bbd9-47ae-8431-2a56fa0626c4">
2024-02-22 18:23:11 +01:00
..
src [Infra UI] Show only hosts with metrics collected by system module in the hosts view (#177239) 2024-02-22 18:23:11 +01:00
index.ts [Log Explorer] Add support for log generation in synthtrace (#170107) 2023-11-16 14:00:33 +01:00
jest.config.js [APM] Refactor synthtrace (#147036) 2023-01-04 13:47:37 +01:00
kibana.jsonc [Log Explorer] Add support for log generation in synthtrace (#170107) 2023-11-16 14:00:33 +01:00
package.json [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
README.md [APM] Refactor synthtrace (#147036) 2023-01-04 13:47:37 +01:00
tsconfig.json Fix eslint rule for restricting certain lodash imports (#151023) 2023-02-16 08:35:09 -07:00

See packages/kbn-apm-synthtrace/README.json