Skip to content

Commit

Permalink
[apm docs consolidation] Clean up (#3476)
Browse files Browse the repository at this point in the history
* use tagged regions for release notes

* rename apm-breaking, point to apm-server

* remove data and spec directories, point to apm-server

(cherry picked from commit d4309b5)

# Conflicts:
#	docs/en/apm-server/apm-breaking.asciidoc
#	docs/en/apm-server/data-model.asciidoc
#	docs/en/apm-server/data/elasticsearch/generated/errors.json
#	docs/en/apm-server/data/elasticsearch/generated/spans.json
#	docs/en/apm-server/data/elasticsearch/generated/transactions.json
#	docs/en/apm-server/data/elasticsearch/metricset.json
#	docs/en/apm-server/release-notes.asciidoc
#	docs/en/apm-server/spec/rumv3/error.json
#	docs/en/apm-server/spec/rumv3/span.json
#	docs/en/apm-server/spec/rumv3/transaction.json
#	docs/en/apm-server/spec/v2/error.json
#	docs/en/apm-server/spec/v2/metadata.json
#	docs/en/apm-server/spec/v2/metricset.json
#	docs/en/apm-server/spec/v2/span.json
#	docs/en/apm-server/spec/v2/transaction.json
  • Loading branch information
colleenmcginnis authored and mergify[bot] committed Dec 21, 2023
1 parent 785abfa commit 7bc8993
Show file tree
Hide file tree
Showing 17 changed files with 200 additions and 497 deletions.
2 changes: 1 addition & 1 deletion docs/en/apm-server/api-error.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ APM Server uses JSON Schema to validate requests. The specification for errors i

[source,json]
----
include::./spec/v2/error.json[]
include::{apm-server-root}/docs/spec/v2/error.json[]
----
2 changes: 1 addition & 1 deletion docs/en/apm-server/api-event-example.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ A request body example containing one event for all currently supported event ty

[source,json]
----
include::./data/intake-api/generated/events.ndjson[]
include::{apm-server-root}/docs/data/intake-api/generated/events.ndjson[]
----
2 changes: 1 addition & 1 deletion docs/en/apm-server/api-metadata.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ APM Server uses JSON Schema to validate requests. The specification for metadata

[source,json]
----
include::./spec/v2/metadata.json[]
include::{apm-server-root}/docs/spec/v2/metadata.json[]
----
2 changes: 1 addition & 1 deletion docs/en/apm-server/api-metricset.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ APM Server uses JSON Schema to validate requests. The specification for metrics

[source,json]
----
include::./spec/v2/metricset.json[]
include::{apm-server-root}/docs/spec/v2/metricset.json[]
----
2 changes: 1 addition & 1 deletion docs/en/apm-server/api-span.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ APM Server uses JSON Schema to validate requests. The specification for spans is

[source,json]
----
include::./spec/v2/span.json[]
include::{apm-server-root}/docs/spec/v2/span.json[]
----
2 changes: 1 addition & 1 deletion docs/en/apm-server/api-transaction.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ APM Server uses JSON Schema to validate requests. The specification for transact

[source,json]
----
include::./spec/v2/transaction.json[]
include::{apm-server-root}/docs/spec/v2/transaction.json[]
----
164 changes: 161 additions & 3 deletions docs/en/apm-server/data-model.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ This example shows what span documents can look like when indexed in {es}.
====
[source,json]
----
include::./data/elasticsearch/generated/spans.json[]
include::{apm-server-root}/docs/data/elasticsearch/generated/spans.json[]
----
====

Expand Down Expand Up @@ -159,7 +159,7 @@ This example shows what transaction documents can look like when indexed in {es}
====
[source,json]
----
include::./data/elasticsearch/generated/transactions.json[]
include::{apm-server-root}/docs/data/elasticsearch/generated/transactions.json[]
----
====

Expand Down Expand Up @@ -212,7 +212,7 @@ This example shows what error documents can look like when indexed in {es}.
====
[source,json]
----
include::./data/elasticsearch/generated/errors.json[]
include::{apm-server-root}/docs/data/elasticsearch/generated/errors.json[]
----
====

Expand Down Expand Up @@ -252,6 +252,29 @@ For a full list of tracked metrics, see the relevant agent documentation:
* {apm-ruby-ref-v}/metrics.html[Ruby]

[float]
<<<<<<< HEAD
=======
===== Example system metric document
This example shows what system metric documents can look like when indexed in {es}.
[%collapsible]
.Expand {es} document
====

This example contains JVM metrics produced by the {apm-java-agent}.
and contains two related metrics: `jvm.gc.time` and `jvm.gc.count`. These are accompanied by various fields describing
the environment in which the metrics were captured: service name, host name, Kubernetes pod UID, container ID, process ID, and more.
These fields make it possible to search and aggregate across various dimensions, such as by service, host, and Kubernetes pod.

[source,json]
----
include::{apm-server-root}/docs/data/elasticsearch/metricset.json[]
----
====
[float]
>>>>>>> d4309b55 ([apm docs consolidation] Clean up (#3476))
==== Calculated metrics
APM agents and APM Server calculate metrics from trace events to power visualizations in the {apm-app}.
Expand Down Expand Up @@ -283,6 +306,24 @@ You can filter and group by these dimensions:
--
[float]
<<<<<<< HEAD
=======
===== Example breakdown metric document

This example shows what breakdown metric documents can look like when indexed in {es}.

[%collapsible]
.Expand {es} document
====
[source,json]
----
include::{apm-server-root}/docs/data/elasticsearch/span_breakdown.json[]
----
====

[float]
>>>>>>> d4309b55 ([apm docs consolidation] Clean up (#3476))
===== Transaction metrics

To power {kibana-ref}/xpack-apm.html[{apm-app}] visualizations,
Expand Down Expand Up @@ -335,6 +376,70 @@ You can filter and group by these dimensions (some of which are optional, for ex
The `@timestamp` field of these documents holds the start of the aggregation interval.

[float]
<<<<<<< HEAD
=======
===== Example transaction document
This example shows what transaction documents can look like when indexed in {es}.
[%collapsible]
.Expand {es} document
====

[source,json]
----
include::{apm-server-root}/docs/data/elasticsearch/transaction_metric.json[]
----
====
[float]
===== Service-transaction metrics
To power {kibana-ref}/xpack-apm.html[{apm-app}] visualizations,
APM Server aggregates transaction events into service-transaction metrics.
Service-transaction metrics are similar to transaction metrics, but they usually
have a much lower cardinality as they have significantly fewer dimensions.
The UI uses them when fewer details of the transactions are needed.
*`transaction.duration.summary`* and *`transaction.duration.histogram`*::
+
--
These metrics represent the latency summary and latency distribution of service transaction groups,
used to power service-oriented visualizations and analytics in Elastic APM.
These metric documents can be identified by searching for `metricset.name: service_transaction`.
You can filter and group by these dimensions:
* `agent.name`: The name of the {apm-agent} that instrumented the operation, for example `java`
* `labels`: Key-value object containing string labels set globally by the APM agents.
* `metricset.interval`: A string with the aggregation interval the metricset represents.
* `numeric_labels`: Key-value object containing numeric labels set globally by the APM agents.
* `service.environment`: The environment of the service that made the request
* `service.language.name`: The language name of the service that served the transaction, for example `Go`
* `service.name`: The name of the service that made the request
* `transaction.type`: The type of the enclosing transaction, for example `request`
--
The `@timestamp` field of these documents holds the start of the aggregation interval.
[float]
===== Example service-transaction document
This example shows what service-transaction documents can look like when indexed in {es}.
[%collapsible]
.Expand {es} document
====

[source,json]
----
include::{apm-server-root}/docs/data/elasticsearch/service_transaction_metric.json[]
----
====
[float]
>>>>>>> d4309b55 ([apm docs consolidation] Clean up (#3476))
===== Service-destination metrics
To power {kibana-ref}/xpack-apm.html[{apm-app}] visualizations,
Expand All @@ -361,6 +466,59 @@ You can filter and group by these dimensions:
The `@timestamp` field of these documents holds the start of the aggregation interval.
[float]
<<<<<<< HEAD
=======
===== Example service-destination document

This example shows what service-destination documents can look like when indexed in {es}.

[%collapsible]
.Expand {es} document
====
[source,json]
----
include::{apm-server-root}/docs/data/elasticsearch/service_destination_metric.json[]
----
====

[float]
===== Service-summary metrics

To power {kibana-ref}/xpack-apm.html[{apm-app}] visualizations,
APM Server aggregates transaction, error, log, and metric events into service-summary metrics.

These metric documents can be identified by searching for `metricset.name: service_summary`.

You can filter and group by these dimensions:

* `agent.name`: The name of the {apm-agent} that instrumented the operation, for example `java`
* `labels`: Key-value object containing string labels set globally by the APM agents.
* `metricset.interval`: A string with the aggregation interval the metricset represents.
* `numeric_labels`: Key-value object containing numeric labels set globally by the APM agents.
* `service.environment`: The environment of the service that made the request
* `service.language.name`: The language name of the service that served the transaction, for example `Go`
* `service.name`: The name of the service that made the request

The `@timestamp` field of these documents holds the start of the aggregation interval.

[float]
===== Example service-summary document

This example shows what service-summary documents can look like when indexed in {es}.

[%collapsible]
.Expand {es} document
====
[source,json]
----
include::{apm-server-root}/docs/data/elasticsearch/service_summary_metric.json[]
----
====

[float]
>>>>>>> d4309b55 ([apm docs consolidation] Clean up (#3476))
==== Data streams

Metrics are stored in the following data streams:
Expand Down
112 changes: 0 additions & 112 deletions docs/en/apm-server/data/elasticsearch/generated/rum_v3_errors.json

This file was deleted.

Loading

0 comments on commit 7bc8993

Please sign in to comment.