-
Notifications
You must be signed in to change notification settings - Fork 539
docs: Transaction metrics reference #4345
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
Changes from 3 commits
3cf1d9e
4d812b8
9f281db
4689593
9ef1b22
6f377dd
f0b0924
ecd04be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| [x-pack] | ||
| [[transaction-metrics]] | ||
| == Configure transaction metrics | ||
|
|
||
| ++++ | ||
| <titleabbrev>Transaction metrics</titleabbrev> | ||
| ++++ | ||
|
|
||
| When enabled, {beatname_uc} produces the transaction histogram metrics that are used to power the APM app. | ||
| Shifting this responsibility from APM app to APM Server results in improved query performance. | ||
bmorelli25 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Example config file: | ||
|
|
||
| ["source","yaml"] | ||
| ---- | ||
| apm-server: | ||
| aggregation: | ||
| transactions: | ||
| enabled: true | ||
| interval: 1m | ||
| sampling: | ||
| keep_unsampled: false | ||
| ---- | ||
|
|
||
|
|
||
| [float] | ||
| [[configuration-aggregation]] | ||
| === Configuration options: `apm-server.aggregation.transactions.*` | ||
|
|
||
| [[transactions-enabled]] | ||
| [float] | ||
| ==== `enabled` | ||
|
|
||
| Enables the collection and publishing of transaction metrics. | ||
| This setting improves query performance in the APM app. | ||
|
|
||
| Default: `false`. | ||
|
|
||
| [[transactions-interval]] | ||
| [float] | ||
| ==== `interval` | ||
|
|
||
| Controls the frequency of metrics publication. | ||
|
|
||
| Default: `1m`. | ||
|
|
||
| [[transactions-max_groups]] | ||
| [float] | ||
| ==== `max_groups` | ||
|
|
||
| Maximum number of transaction groups to keep track of. | ||
| Once exceeded, APM Server devolves into recording a metrics document for each transaction that is not in one | ||
| of the transaction groups being tracked. | ||
|
|
||
| Default: `1000`. | ||
|
|
||
| [[transactions-hdrhistogram_significant_figures]] | ||
| [float] | ||
| ==== `hdrhistogram_significant_figures` | ||
|
|
||
| The fixed, worse-case percentage error (specified as a number of significant digits) | ||
bmorelli25 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| to maintain for recorded metrics. | ||
| Supported values are `1` through `5`. | ||
| See {ref}/search-aggregations-metrics-percentile-aggregation.html#_hdr_histogram[HDR histogram] for more information. | ||
bmorelli25 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Default: `2`. | ||
|
|
||
| [[transactions-lru_size]] | ||
| [float] | ||
| ==== `rum.user_agent.lru_size` | ||
|
|
||
| This option controls the cache size of RUM user-agent strings. | ||
|
|
||
| RUM "page-load" transactions are aggregated on the user-agent name, which requires user-agent parsing. | ||
| To avoid parsing every user-agent, a cache of user-agent strings is maintained. | ||
|
|
||
| Default: `5000`. | ||
|
|
||
| [float] | ||
| [[configuration-sampling]] | ||
| === Configuration options: `apm-server.sampling.*` | ||
|
|
||
| [[sampling-keep_unsampled]] | ||
| [float] | ||
| ==== `keep_unsampled` | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure if we should document this one. I think this will end up going away in favour of the updating the agents to stop sending unsampled transactions. Also, I suspect this config might be incompatible with RUM/User Experience monitoring, where we probably want to record individual requests without a full sampled trace.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we do remove this config from the docs, do the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh good point. Indeed, storage reduction relies on us discarding the unsampled transaction docs. |
||
|
|
||
| Controls the recording of unsampled transaction documents. | ||
| Dropping unsampled documents (`keep_unsampled: false`) reduces APM's storage consumption. | ||
|
|
||
| Default: `true`. | ||
|
|
||
| IMPORTANT: Unsampled transactions should only be dropped when `apm-server.aggregation.transactions.enabled` is `true`, | ||
| otherwise, the APM app will report inaccurate metrics. | ||
Uh oh!
There was an error while loading. Please reload this page.