* Extend endpoints to include containers metadata info
* Display kubernetes metadata in icons popover
* Display kubernetes metadata in node instance accordion
* Fix translations
* Fix types
* Fix unit tests
* Fix import order
* Update storybooks
* Hide labels if fields are empty
* Display OS field and remove labels
* CSS tweaks for aligning fields
* Clean up types
* Add API test for kubernetes metadata
* Reword showFilterByOption to isFilterable
* Use top_metrics aggs for kubernetes and container metadata
* Rename getMetricIndices to getInfraMetricIndices
* Fix lint errors
* Fetching metadata of specific container
* Clean up code
* Service metrics on inventory page
* specify size
* Clarify the type of metric
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Added Android Agent icon
* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'
* Added agent name to telemetry
* Replaced usage of isIOSAgentName to isMobileAgentName. Added tests for new agent name functions.
* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'
* Update telemetry collection for android/java agent
* Make opentelemetry/swift not being recognized as mobile agent
* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'
* Fix Jest tests
* Update apm_telemetry.test.ts.snap
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
* Adapted service UI for AWS lambda / serverless services
* Add unit tests for isServerlessAgent function
* Add story for cold start badge
* Add unit tests for service icons and icon details
* Add aws_lambda checks to isMetricsTabHidden and isJVMsTabHidden unit tests
* Add API test for coldstart_rate chart
* Change service icon API tests to use synthrace and test for serverless property
* Change service details API tests to use synthrace and add test for serverless
* Add e2e tests for cold start rate chart
* Add cold start badge to transaction flyout
* Add beta badge to cloud details in a lambda context
* Add support for multiple lambda functions in a single service
Co-authored-by: Alexander Wert <alexander.wert@elastic.co>
Co-authored-by: Casper Hübertz <casper@formgeist.com>
* fixing throughput chart api
* change backends
* adding intervalString to the observability callback functions
* fixing transaction group detailed stats
* fixing tests
* fixing test
* fixing obs tests
* fixing tests
* adding tests
* fixing ci
* using data generator
* changing name
* fixing i18n
* updating opbs test to use data generator
* fixing api tests
* fixing tests
* using data generator to run the tests
* fixing tests
* fixing test
When the observability:enableInspectEsQueries advanced setting is enabled, show an inspector that includes all queries through useFetcher.
Remove the callout.
* [APM] Optimize anomaly data loading strategy
Closes#86423.
* Fix tests/types
* Review feedback
* Optimize ML calls for latency chart
* Optimize ML loading for latency chart
* Remove unused optimization
* Update snapshots for E2E tests
* Make sure area is stacked in correct order
* Review feedback + log warning if more than one ML job was found
* Review feedback
* creating service name header
* fixing icons
* removing unused api import
* fixing some stuff
* adding API tests
* refactoring some stuff
* fixing tests
* refactoring some stuff
* fixing i18n
* reverting
* renaming
* applying min width
* addressing PR comments and adding test
* sorting service version
* changing sort type to desc
* addressing pr comments
* changing to show total and not avg
* addressing pr comments
* addressing pr comments
* addressing pr comments
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Initial agent log table
* Add data and storage services to Kibana context, rename useCore to useStartServices and replace usage of useStartDeps
* Initial attempt at adding query bar for log stream
* Adjust app layout to allow page content to be full height
* Dataset and log level filters, split into smaller files
* Use data plugin's `QueryStringInput` component for query bar
* Add open in Logs UI link
* Clean up unused storage dependency
* Remove agent activity log and related dead code
* Clean up i18n
* Clean up plugin deps, fix routing
* Add back storage dependency that data plugin components need
* Remove dependency on infra for logs UI link
* Change default date range to last one day
* Adjust panel padding
* Add comment
* Move module declarations to top-level x-pack/typings
* Fix missed renaming
* Remove unused path
* Move building of log stream query into separate service with unit tests
* Adjust test conditions
* update deps
* update rules
use type-aware @typescript-eslint/no-shadow instead of no-shadow. do not use no-undef, rely on TypeScript instead
* fix or mute all lint errors
* react-hooks eslint plugin fails on ? syntax
* fix wrong typings in viz
* remove React as a global type
* fix eslint errors
* update version to 4.8.1
* fix a new error
...and into x-pack.
Also remove `PromiseReturnType` from APM and use the copy in observability everywhere.
All of the additional changes to APM imports are just automatic sorting.
This makes doing #77720 a little easier and removes some implicit circular dependencies for #80508.
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
This PR adds an an internal monitoring mechanism in Task Manager which keep track of a variety of metrics and a health api endpoint which makes the monitored statistics accessible.
Add OpenTelemetry agent names and and icon. OpenTelemetry services will have the same icon as the corresponding APM services.
Services that report "otlp" as their agent name use the OpenTelemetry icon.
The OpenTelemetry agents are now collected in the data telemetry along with the other agent names.
Change "ratio" in the telemetry to a float.
* Update to latest rum-react
The latest version fixes a problem where you would get a bunch of warnings that you couldn't turn off if you used `render` instead of component with a route. This was causing us to use `component` in some places where `render` should be used.
The latest version fixes this problem so we change back to `render`
where appropriate.
Also make our `ApmRoute` a `Route` instead of `any`.
* [APM] Optimize service overview queries
* Review feedback
* Use correct indices/filters for service overview metrics
* [APM] Optimize traces overview
* Separate queries into separate file
* Support union types for aggregations
* [APM] Don't fetch dynamic index pattern in setupRequest
We don't need a dynamic index pattern for parsing the filters from the query bar. Additionally, instead of fetching uiIndices in `getParamsForSearchRequest`, we can use `indices` that we already fetched in `setupRequest`.
* use join utility function to merge requests
* Correct path for UI_SETTINGS import
* Query transaction indices in getEnvironments()
* [APM] Introduce apm.types
Instead of using a combination of index + terms filters on processor.event, add a top-level setting that allows you to define a type, which can be a processor event type, agent configuration or custom link. This allows us to more easily compose queries.
* Set size of terms agg on error rate aggregation
* Metrics
* Use separate clients for apm events and other uses
* Separate function for calculating relative impact
* use UIProcessorEvent type in IURLParams type
* Remove unused import
* Split out strategy in helper functions
* Use cloneDeep in apmEventClient.search
* Consistent usage of getUseAggregatedTransactions
* Update traces functional test
* Update API tests
* Update responses for functional tests
* Review feedback
* Fix type for filter/filters aggregation
* Review feedback
* Rename useAggregatedTransactions > searchAggregatedTransactions
* Use correct route name for transaction redirect page
* Closes#67744.
* Review feedback; offer other strategies than 'auto'
* Fix functional tests
* [APM] Always load esarchives from common
Instead of requiring every test suite to store its archives under {suite}/fixtures/es_archiver, always load them from common/fixtures/es_archiver.
* Update script
* Make sure tests pass
* Update snapshots for API tests
* Filter for transaction.root when fetching top traces
* Make sure must_not clause is formatted correctly
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
...in the table and the header. Did this by adding `word-break: break-all` to them.
Also:
* Rename List to TransactionList
* Add stories for TransactionList and ApmHeader
* Add missing type information to transactions based on sample transaction
Fixes#73960.