Commit graph

120 commits

Author SHA1 Message Date
Alexander Wert
f0f3351ddc
Added C++ agent icon (#154314)
## Summary

Added C++ agent icon and added opentelemetry/rust to OTel agent names
2023-04-05 00:43:20 -07:00
Miriam
2dbbd8a304
[APM] Errors group sampler (#147571)
Closes https://github.com/elastic/kibana/issues/146975


https://user-images.githubusercontent.com/31922082/209793125-0e8a5d5e-c867-4734-a800-cecbaa142b0a.mov
2023-01-03 16:36:08 +00:00
Cauê Marcondes
99e367446b
[APM] Add AWS Lambda metrics to "Metrics" tab UI (#140550)
* [APM] AWS lambda metrics api

* fixing typo

* fixing duration

* fixing

* tests

* addressing pr comments

* yformater time

* tests

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* addressing pr comments

* addressing PR comments

* fixing compute usage

* fixing ci

* fixing ci

* addressing PR comments

* fixing synthtrace

* refactoring

* showing metrics tab

* synthtrace

* addressing pr comments

* adding beta badge

* fixing tests

* fixing active instaces query

* addressing PR comments

* fixing calc

* fixing

* removing merge conflic

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* addressing PR changes

* remiving unused import

* adding feature flag

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-20 17:17:23 -07:00
Katerina Patticha
9673ead47b
[APM] Display kubernetes metadata in service icons popup and node instance accordion (#139612)
* 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>
2022-09-19 06:10:22 -07:00
Yngrid Coello
87ed2a12a5
Removing service profiling code (#140578)
* Removing service profiling code

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-14 10:30:54 +02:00
Alexander Wert
6af683a4e0
[APM] Added Android Agent name and icon (#136598)
* 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>
2022-07-19 07:52:27 -07:00
Cauê Marcondes
d3b9f3285e
[APM] Span link (#126630)
* adding span links data generation

* fixing span links synthtrace

* adding span links

* span links route

* fixing span links new scenario

* adding span links

* improved tab structure

* span links table

* adding span links data generation

* fixing span links synthtrace

* adding span links

* span links route

* fixing span links new scenario

* adding span links

* span links table

* improved tab structure

* adjusting table

* fixing ts issue

* filtering data within timerange

* fixing ts

* fixing ci

* disabling select option when no link available

* adding api tests

* fixing tests

* e2e tests

* fixing too_many_nested_clauses issue

* refactoring apis

* api tests

* fixing e2e tests

* fixing links

* renaming link

* fixing tests

* addressing PR comments

* fixing test

* fixing ci

* fixing ci

* addressing pr comments

* passing processor event to incoming links API

* updating api tests

* renaming incoming and outgoing

* wrapping type into details property

* renaming incoming/outgoing

* pr comments

* adding processor event to query

* renaming

* new API tests

* import fix

* renaming

* adding e2e tests

* addressing pr changes

* changing link

* Adding filter on children fetch

* renaming services on test

* renaming

Co-authored-by: Boris Kirov <borisasenovkirov@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-16 14:40:51 -04:00
spalger
3730dd0779 fix all violations 2022-04-16 01:37:30 -05:00
Spencer
2ad2a4c271
[eslint] ensure that all imports are resolvable (#129002) 2022-04-04 15:37:06 -04:00
Shahzad
e445280fe6
[User Experience App] Move UX public code out of apm (#88645) 2022-02-04 11:47:52 +01:00
Giorgos Bamparopoulos
78643f495c
APM UI changes for serverless services / AWS lambda (#122775)
* 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>
2022-01-31 04:54:34 -07:00
Ahmad Bamieh
0ad9abc5ac
use native Awaited instead of manually unwrapping types (#121781) 2021-12-23 14:55:39 +02:00
renovate[bot]
d68700cb3c
Update dependency @elastic/charts to v40.2.0 (main) (#120230) 2021-12-18 12:28:15 -06:00
Dario Gieselaar
ee289642b7
[APM] Display relevant anomalies from multi-metric job (#119709)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-01 07:44:55 -07:00
Andrew Wilkins
1a321bce77
[APM] prefer ECS field names for HTTP and URL (#118485) 2021-11-16 06:57:54 +08:00
Cauê Marcondes
d7e7dbfe53
[APM] Remove rate aggregations (#114187)
* 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
2021-10-14 20:48:15 +02:00
Shahzad
c2049ed754
[Observability] Move InspectContextProvider and utils to observability (#113842) 2021-10-07 06:05:15 -04:00
Søren Louv-Jansen
6ea75f564c
[APM] Add 'unknown' to EventOutcome (#112077) 2021-09-15 01:23:17 +02:00
Søren Louv-Jansen
d3f6303014
[APM] Show badge for failed spans in waterfall (#109812)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
2021-09-08 23:37:28 +02:00
Nathan L Smith
3bae4cdc06
Add inspector panel for APM routes (#109696)
When the observability:enableInspectEsQueries advanced setting is enabled, show an inspector that includes all queries through useFetcher.

Remove the callout.
2021-08-31 11:10:54 -05:00
Dario Gieselaar
6e3af2b524
[APM] Support multiple route paths in useApmParams (#109370)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-23 15:38:06 +02:00
Alexander Wert
baec132a4d
Visualizing composite spans. (#106862)
* Visualizing composite spans.

* fixed reviews comments

* replaced var usage with let

* Fixed display of compositeSpanDurationSummary

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-05 13:39:52 -04:00
Søren Louv-Jansen
4aca0b7b61
[APM] Add “Analyze Data” button (#103485)
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2021-06-30 10:20:31 +02:00
Shahzad
4d474bfe4d
[User Experience App] Use filters shared component (#101459)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 19:19:16 +02:00
Cauê Marcondes
6b70784f67
[APM] Service overview: Instances table metadata foldout (#96467)
* shows instance details

* shows instance details

* shows instance details

* shows instance details

* shows instance details

* adding api test

* addressing PR comments

* addressing PR comments

* addressing PR comments

* addressing PR comments

* fixing ts issues

* fixing ci

* fixing api tests

* fixing api test

* fixing api test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-20 18:26:58 -04:00
Sergey Kleyman
e5754d772f
[APM] Add agent central configuration for PHP agent (#97462)
* [APM] Add agent central configuration for PHP agent

* Fix failing test

* Fix "Check Types" test

* Undo changes to x-pack\plugins\apm\typings\es_schemas\ui\fields\agent.ts

* Undo changes to "x-pack\plugins\apm\common\agent_name.ts"

* Fix failing test

* updates telemetry mappings

* updates jest snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Oliver Gupte <olivergupte@gmail.com>
2021-04-20 23:49:56 +03:00
Dario Gieselaar
e7724882a0
[APM] Profiling (#91818) 2021-02-22 19:02:55 +01:00
Brandon Kobel
4584a8b570
Elastic License 2.0 (#90099)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:12:39 -08:00
Alejandro Fernández Haro
43faa76f67
[APM] transactions.kubernetes.pod can be undefined (#90044) 2021-02-02 20:43:20 +00:00
Dario Gieselaar
f5ec1dc352
[APM] Explicitly set environment for cross-service links (#87481)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-15 22:34:54 +01:00
Dario Gieselaar
a0da8bda04
[APM] Optimize anomaly data loading strategy (#87522)
* [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
2021-01-15 09:35:41 +01:00
Cauê Marcondes
53da425c8e
[APM] Updated header icons (#84760)
* 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>
2020-12-16 23:08:17 +01:00
Dario Gieselaar
04428ff93b
[APM] Service overview: Dependencies table (#83416)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-10 10:32:01 +01:00
Jen Huang
a8913d30c1
[Fleet] Agent logs UI (#83356)
* 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
2020-11-20 10:49:02 -08:00
Mikhail Shustov
4917df30b9
Update typescript eslint to v4.8 (#83520)
* 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
2020-11-18 18:23:08 +01:00
Nathan L Smith
bc2da67608
Move Elasticsearch type definitions out of APM (#83081)
...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>
2020-11-11 16:23:34 -06:00
Dario Gieselaar
7d3e19801f
[APM] Add metric type interface (#83039)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-11 08:58:35 +01:00
Gidi Meir Morris
5dfa45d666
[Task Manager] adds basic observability into Task Manager's runtime operations (#77868)
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.
2020-10-27 15:58:04 +00:00
Søren Louv-Jansen
f57518a48f
[APM] Add correlations API (#78882) 2020-10-20 12:19:54 +02:00
Nathan L Smith
69564983c2
Only send agent data for non-opentelemetry agents (#79587) 2020-10-12 11:54:11 -05:00
Shahzad
a31dd64778
[UX] Add percentile selector (#78562) 2020-09-30 10:24:38 +02:00
Nathan L Smith
c2ef407d04
OpenTelemetry icons and data telemetry (#78499)
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.
2020-09-29 14:33:29 -05:00
Shahzad
d7a8641f3a
[CSM] Js errors (#77919)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 15:36:38 +02:00
Nathan L Smith
ac00887acd
Update to latest rum-react (#78193)
* 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`.
2020-09-22 15:41:28 -05:00
Dario Gieselaar
8169ed173b
[APM] Metrics-powered UI (#73953)
* [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>
2020-09-16 19:20:08 +02:00
Shahzad
10b192b5b0
[RUM Dashboard] User experience metrics (#77384)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-16 15:34:28 +02:00
Dario Gieselaar
520d348bf8
[APM] Service inventory redesign (#76744)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-14 16:10:04 +02:00
Shahzad
e827a6761e
[RUM Dashboard] Added rum core web vitals (#75685)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-08 17:19:48 +02:00
Dario Gieselaar
113936a649
[APM] Use observer.hostname instead of observer.name (#76074) 2020-09-07 11:11:00 +02:00
Nathan L Smith
4d4eae4413
[APM] Fix overlapping transaction names (#76083)
...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.
2020-09-04 15:10:52 -05:00