-
Notifications
You must be signed in to change notification settings - Fork 537
Docs: WIP V2/6.5 additions and changes #1530
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 9 commits
c17bb5e
39c7472
c632c8c
d79b392
5e99ca5
eb5a74b
592f15e
8312f9a
1fed7ab
c212c33
a54db05
97420d3
dd62bce
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 |
|---|---|---|
|
|
@@ -50,7 +50,7 @@ Increasing `queue.mem.events` can significantly affect APM Server memory usage. | |
| [float] | ||
| === Adjust concurrent requests | ||
|
||
| APM Server has a limit to how many requests can be processed concurrently. | ||
| This limit is determined by the `apm-server.concurrent_requests` setting. | ||
| This limit is determined by the `apm-server.concurrent_requests` setting deprecated[6.5]. | ||
| Increasing this value will improve throughput, but it can significantly affect APM Server memory usage. | ||
|
|
||
| [[add-apm-server-instances]] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,148 +1,27 @@ | ||
| [[error-api]] | ||
| == Error API | ||
| === Error API | ||
bmorelli25 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| The following section contains information about: | ||
|
|
||
| * <<error-endpoint>> | ||
| * <<error-schema-definition>> | ||
| * <<error-api-examples>> | ||
|
|
||
| [[error-endpoint]] | ||
| [float] | ||
| === Endpoint | ||
|
|
||
| Send a `HTTP POST` request to the APM Server `errors` endpoint: | ||
| [source,bash] | ||
| ------------------------------------------------------------ | ||
| http(s)://{hostname}:{port}/v1/errors | ||
| ------------------------------------------------------------ | ||
|
|
||
| For <<rum, RUM>> send a `HTTP POST` request to the `rum errors` endpoint instead: | ||
|
|
||
| [source,bash] | ||
| ------------------------------------------------------------ | ||
| http(s)://{hostname}:{port}/v1/rum/errors | ||
| ------------------------------------------------------------ | ||
| * <<error-schema>> | ||
bmorelli25 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| [[error-schema-definition]] | ||
| [float] | ||
| === Schema Definition | ||
|
|
||
| The APM Server uses JSON Schema for validating requests. The specification for errors is defined bellow: | ||
| * <<error-payload-schema>> | ||
| * <<error-service-schema>> | ||
| * <<error-system-schema>> | ||
| * <<error-context-schema>> | ||
| * <<error-stacktraceframe-schema>> | ||
| * <<error-request-schema>> | ||
| * <<error-user-schema>> | ||
|
|
||
|
|
||
| [[error-payload-schema]] | ||
| [float] | ||
| ==== Payload | ||
|
|
||
| [source,json] | ||
| ---- | ||
| include::./spec/errors/v1_error.json[] | ||
| ---- | ||
|
|
||
| [[error-service-schema]] | ||
| [float] | ||
| ==== Service | ||
|
|
||
| [source,json] | ||
| ---- | ||
| include::./spec/service.json[] | ||
| ---- | ||
|
|
||
| [[error-system-schema]] | ||
| [float] | ||
| ==== System | ||
|
|
||
| [source,json] | ||
| ---- | ||
| include::./spec/system.json[] | ||
| ---- | ||
|
|
||
| [[error-context-schema]] | ||
| [float] | ||
| ==== Context | ||
| ==== Schema Definition | ||
|
|
||
| [source,json] | ||
| ---- | ||
| include::./spec/context.json[] | ||
| ---- | ||
| The APM Server uses JSON Schema for validating requests. The specification for errors is defined below: | ||
bmorelli25 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| [[error-stacktraceframe-schema]] | ||
| [float] | ||
| ==== Stacktrace Frame | ||
| [[error-schema]] | ||
| ===== Error | ||
|
|
||
| [source,json] | ||
| ---- | ||
| include::./spec/stacktrace_frame.json[] | ||
| include::./spec/errors/v2_error.json[] | ||
| ---- | ||
|
|
||
| [[error-request-schema]] | ||
| [float] | ||
| ==== Request | ||
|
|
||
| [source,json] | ||
| ---- | ||
| include::./spec/request.json[] | ||
| ---- | ||
|
|
||
| [[error-user-schema]] | ||
| [float] | ||
| ==== User | ||
|
|
||
| [source,json] | ||
| ---- | ||
| include::./spec/user.json[] | ||
| ---- | ||
|
|
||
| [[error-api-examples]] | ||
| [float] | ||
| === Examples | ||
|
|
||
| Request example: | ||
|
|
||
| ["source","sh",subs="attributes"] | ||
| ------------------------------------------------------------ | ||
| curl http://localhost:8200/v1/errors \ | ||
| --header "Content-Type: application/json" \ | ||
| --data @docs/data/intake-api/generated/error/payload.json | ||
| ------------------------------------------------------------ | ||
|
|
||
| Example error requests: | ||
|
|
||
| * <<payload-with-error>> | ||
| * <<payload-with-minimal-exception>> | ||
| * <<payload-with-minimal-log>> | ||
|
|
||
| [[payload-with-error]] | ||
| [float] | ||
| ==== Payload with an Error | ||
|
|
||
| [source,json] | ||
| ---- | ||
| include::./data/intake-api/generated/error/payload.json[] | ||
| ---- | ||
|
|
||
| [[payload-with-minimal-exception]] | ||
| [float] | ||
| ==== Payload with an Error with minimal Exception Information | ||
|
|
||
| [source,json] | ||
| ---- | ||
| include::./data/intake-api/generated/error/minimal_payload_exception.json[] | ||
| ---- | ||
|
|
||
| [[payload-with-minimal-log]] | ||
| [float] | ||
| ==== Payload with an Error with minimal Log Information | ||
|
|
||
| [source,json] | ||
| ---- | ||
| include::./data/intake-api/generated/error/minimal_payload_log.json[] | ||
| ---- | ||
| include::./spec/errors/common_error.json[] | ||
| ---- | ||
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized there are a couple of config options missing in the Configuring APM Server chapter. Some of them were newly introduced, some not. I suggest to check with the
apm-server.ymlfor missing config options (e.g.:apm-server.rum.event_rateandapm-server.rum.source_mapping.elasticsearchshould be added to Set up Real User Monitoring (RUM) support.For
max_event_sizeyou explicitly added that it was introduced with6.5. On one hand it is nice to see newly introduced options, on the other hand it means we have to remove this again for6.6or add the info when an option was introduced everywhere.For everything related to tuning and config options we need some strategy to point out what to tweak and which options to use when agents talk Intake v1 vs. agents talking intake v2, e.g. if somebody uses a ruby agent with intake v1 and a nodejs agent with intake v2, then both - the deprecated and the newly introduced config options - should be set properly.
Not sure how much you want to put into this PR, feel free to create a new issue and defer this.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like
apm-server.rum.source_mapping.elasticsearchwas already added, I've now added inevent_rateas well.configuration-process.asciidocandconfiguration-rum.asciidochave been updated. Changed the order of configuration options to better mirrorapm-server.yml, and added in notes about v1/v2 to hopefully make things clearer.The tuning is a bit more complex, so I've opened #1537