Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 3d30fa3

Browse files
Fixed table formatting
1 parent 5b495c9 commit 3d30fa3

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

apm/span-tags/metricsets.rst

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -50,26 +50,26 @@ For each metric, there is 1 metric time series (MTS) with responses ``sf_error:
5050
:header-rows: 1
5151

5252
* - Description
53-
- Histogram MMS
54-
- MMS (deprecated)
53+
- Histogram MMS
54+
- MMS (deprecated)
5555
* - Request count
56-
- ``<component>`` with a ``count`` function
57-
- ``<component>.count``
56+
- ``<component>`` with a ``count`` function
57+
- ``<component>.count``
5858
* - Minimum request duration
59-
- ``<component>`` with a ``min`` function
60-
- ``<component>.duration.ns.min``
59+
- ``<component>`` with a ``min`` function
60+
- ``<component>.duration.ns.min``
6161
* - Maximum request duration
62-
- ``<component>`` with a ``max`` function
63-
- ``<component>.duration.ns.max``
62+
- ``<component>`` with a ``max`` function
63+
- ``<component>.duration.ns.max``
6464
* - Median request duration
65-
- ``<component>`` with a ``median`` function
66-
- ``<component>.duration.ns.median``
65+
- ``<component>`` with a ``median`` function
66+
- ``<component>.duration.ns.median``
6767
* - Percentile request duration
68-
- ``<component>`` with a ``percentile`` function and a percentile ``value``
69-
- ``<component>.duration.ns.p90``
68+
- ``<component>`` with a ``percentile`` function and a percentile ``value``
69+
- ``<component>.duration.ns.p90``
7070
* - Percentile request duration
71-
- ``<component>`` with a ``percentile`` function and a percentile ``value``
72-
- ``<component>.duration.ns.p99``
71+
- ``<component>`` with a ``percentile`` function and a percentile ``value``
72+
- ``<component>.duration.ns.p99``
7373

7474

7575
Example histogram metrics in APM
@@ -78,28 +78,29 @@ Example histogram metrics in APM
7878
A histogram MTS uses the following syntax using SignalFlow:
7979

8080
.. code-block:: none
81+
8182
histogram(metric=<metric_name>[,filter=<filter_dict>][,resolution=<resolution>)
8283
84+
8385
The following table displays example SignalFlow functions:
86+
8487
.. list-table::
8588
:widths: 33 33 33
8689
:width: 100
8790
:header-rows: 1
8891

8992
* - Description
90-
- Previous MMS function
91-
- Histogram MMS function
93+
- Previous MMS function
94+
- Histogram MMS function
9295
* - Aggregate count of all MTS
93-
- ``A = data('spans.count').sum().publish(label='A')``
94-
- ``A = histogram('spans').count().publish(label='A')``
96+
- ``A = data('spans.count').sum().publish(label='A')``
97+
- ``A = histogram('spans').count().publish(label='A')``
9598
* - P90 percentile for single MTS
96-
- ``filter_ = filter('sf_environment', 'us1') and filter('sf_service', 'apm-api-peanuts') and filter('sf_operation', 'POST /api/autosuggest/tagvalues') and filter('sf_httpMethod', 'POST') and filter('sf_error', 'false')
97-
A = data('spans.duration.ns.p90', filter=filter_, rollup='sum').publish(label='A')``
98-
- ``filter_ = filter('sf_environment', 'us1') and filter('sf_service', 'apm-api-peanuts') and filter('sf_operation', 'POST /api/autosuggest/tagvalues') and filter('sf_httpMethod', 'POST') and filter('sf_error', 'false')
99-
A = histogram('spans', filter=filter_).percentile(pct=90).publish(label='A')``
99+
- ``filter_ = filter('sf_environment', 'us1') and filter('sf_service', 'apm-api-peanuts') and filter('sf_operation', 'POST /api/autosuggest/tagvalues') and filter('sf_httpMethod', 'POST') and filter('sf_error', 'false') A = data('spans.duration.ns.p90', filter=filter_, rollup='sum').publish(label='A')``
100+
- ``filter_ = filter('sf_environment', 'us1') and filter('sf_service', 'apm-api-peanuts') and filter('sf_operation', 'POST /api/autosuggest/tagvalues') and filter('sf_httpMethod', 'POST') and filter('sf_error', 'false') A = histogram('spans', filter=filter_).percentile(pct=90).publish(label='A')``
100101
* - Combined p90 for multiple services
101-
- ``A = data('service.request.duration.ns.p90', filter=filter('sf_service', 'apm-graphql', 'apm-api-peanuts'), rollup='average').mean().publish(label='A')``
102-
- ``A = histogram('service.request', filter=filter('sf_service', 'apm-graphql', 'apm-api-peanuts')).percentile(pct=90).publish(label='A')``
102+
- ``A = data('service.request.duration.ns.p90', filter=filter('sf_service', 'apm-graphql', 'apm-api-peanuts'), rollup='average').mean().publish(label='A')``
103+
- ``A = histogram('service.request', filter=filter('sf_service', 'apm-graphql', 'apm-api-peanuts')).percentile(pct=90).publish(label='A')``
103104

104105
.. note:: Because an aggregation is applied on histogram(), to display all of the metric sets separately, each dimension needs to be applied as a groupby.
105106

0 commit comments

Comments
 (0)