Skip to content

Commit 2113998

Browse files
author
ada
committed
Incorporated feedback from Joe
1 parent e2344f2 commit 2113998

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

private-preview/aopt/aopt-metric-reference.rst

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ All metric names have a prefix of either ``sf`` or ``o11y``.
3434

3535
- ``sf.report.available``
3636
- W
37-
- Synthetic metric, 0 for failed, 1 for success. This metric may have additional attributes that represent the report outcome as a whole. At least a ``aopt.profile_report.error_reason`` code.
37+
- Synthetic metric. The value is ``0`` for failed, ``1`` for success. This metric may have additional attributes that represent the report outcome as a whole. At least a ``aopt.profile_report.error_reason`` code.
3838
-
3939

4040
- ``sf.report.window_days``
@@ -49,12 +49,12 @@ All metric names have a prefix of either ``sf`` or ``o11y``.
4949

5050
- ``sf.report.average_replicas``
5151
- W
52-
- Average number of replicas during the analysis window. Does not include pods that allocate resources (such as those scheduled but not started).
52+
- Average number of replicas during the analysis window. Does not include pods that allocate resources, such as those scheduled but not started.
5353
-
5454

5555
- ``sf.report.pod.qos_class``
5656
- W
57-
- Pod's quality of service (QoS) class, as defined in Kubernetes docs, encoded as integer.
57+
- Pod's quality of service (QoS) class, as defined in Kubernetes docs, encoded as an integer.
5858
-
5959

6060
- ``sf.report.footprint.cpu_cores``
@@ -74,7 +74,7 @@ All metric names have a prefix of either ``sf`` or ``o11y``.
7474

7575
- ``sf.report.starvation_risk``
7676
- W
77-
- Resource starvation risk: Minimal, Low, Medium, High (encoded 0, 1, 2, 3 respectively).
77+
- Resource starvation risk: Minimal, Low, Medium, High (encoded as ``0``, ``1``, ``2``, ``3`` respectively).
7878
Risk levels defined elsewhere:
7979
- Minimal: no starvation detected
8080
- Low: could benefit from more overhead
@@ -84,22 +84,22 @@ All metric names have a prefix of either ``sf`` or ``o11y``.
8484

8585
- ``sf.recommendation.available``
8686
- W
87-
- Indicates whether a recommendation is available for at least one container, 0 or 1.
87+
- Indicates whether a recommendation is available for at least one container. This value is ``0`` or ``1``.
8888
-
8989

9090
- ``sf.recommendation.confidence_level``
9191
- W
92-
- Recommendations overall confidence level: Low, Medium, High (likely encoded as numbers). Aggregated from container.confidence_level, by taking the lowest confidence value (or the confidence value of the main/largest container).
92+
- Recommendations overall confidence level: Unknown, Low, Medium, High (encoded as ``0``, ``1``, ``2``, ``3`` respectively). Aggregated from ``container.confidence_level``, by taking the lowest confidence value (or the confidence value of the main or largest container).
9393
-
9494

9595
- ``sf.recommendation.container.available``
9696
- C
97-
- Indicates whether a recommendation is available, 0 or 1. A recommendation that matches the baseline is considered available.
97+
- Indicates whether a recommendation is available: ``0`` or ``1``. A recommendation that matches the baseline is considered available.
9898
-
9999

100100
- ``sf.recommendation.container.confidence_level``
101101
- C
102-
- Recommendation confidence level: Low, Medium, High (encoded as numbers).
102+
- Recommendation confidence level: Unknown, Low, Medium, High (encoded as ``0``, ``1``, ``2``, ``3`` respectively).
103103
-
104104

105105
- ``sf.recommendation.container.cpu_request``
@@ -144,22 +144,22 @@ All metric names have a prefix of either ``sf`` or ``o11y``.
144144

145145
- ``sf.baseline.pod.cpu_request``
146146
- W
147-
- Pod-level sum of the baseline for the configuration being analyzed. Note that the request for a container is considered defined if the limit is defined, even if the request is reported as missing/0.
147+
- Pod-level sum of the baseline for the configuration being analyzed. The ``request`` for a container is considered defined if its ``limit`` is defined, even if the ``request`` is reported as missing or ``0``.
148148
-
149149

150150
- ``sf.baseline.pod.memory_request``
151151
- W
152-
- Pod-level sum of the baseline for the configuration being analyzed. Note that the request for a container is considered defined if the limit is defined, even if the request is reported as missing/0.
152+
- Pod-level sum of the baseline for the configuration being analyzed. The ``request`` for a container is considered defined if its ``limit`` is defined, even if the ``request`` is reported as missing or ``0``.
153153
-
154154

155155
- ``sf.baseline.pod.cpu_limit``
156156
- W
157-
- Pod-level sum of the baseline for the configuration being analyzed. 0 / NaN if at least one limit is missing: as a result, the whole pod doesn't have a limit for this resource.
157+
- Pod-level sum of the baseline for the configuration being analyzed. This value is ``0`` or ``NaN`` if at least one ``limit`` is missing; as a result, the whole pod doesn't have a ``limit`` for this resource.
158158
-
159159

160160
- ``sf.baseline.pod.memory_limit``
161161
- W
162-
- Pod-level sum of the baseline for the configuration being analyzed. 0 / NaN if at least one limit is missing: as a result, the whole pod doesn't have a limit for this resource.
162+
- Pod-level sum of the baseline for the configuration being analyzed. This value is ``0`` or ``NaN`` if at least one ``limit`` is missing; as a result, the whole pod doesn't have a ``limit`` for this resource.
163163
-
164164

165165
- ``sf.baseline.container.cpu_request``
@@ -234,39 +234,39 @@ The following dimensions are applied to all metrics (both workload and container
234234
-
235235

236236
- ``k8s.deployment.name``
237-
- Present only for ``workload.kind`` == ``deployment``. The same as ``k8s.workload.name``.
237+
- Present only for ``workload.kind`` == ``deployment``. Same as ``k8s.workload.name``.
238238
-
239239

240240
- ``k8s.deployment.uid``
241-
- Present only for ``workload.kind`` == ``deployment``. The same as ``k8s.object_uid``.
241+
- Present only for ``workload.kind`` == ``deployment``. Same as ``k8s.object_uid``.
242242
-
243243

244244
- ``k8s.statefulset.name``
245-
- Present only for ``workload.kind`` == ``statefulset``. The same as ``k8s.workload.name``.
245+
- Present only for ``workload.kind`` == ``statefulset``. Same as ``k8s.workload.name``.
246246
-
247247

248248
- ``k8s.statefulset.uid``
249-
- Present only for ``workload.kind`` == ``statefulset``. The same as ``k8s.object_uid``.
249+
- Present only for ``workload.kind`` == ``statefulset``. Same as ``k8s.object_uid``.
250250
-
251251

252252
- ``k8s.daemonset.name``
253-
- Present only for ``workload.kind`` == ``daemonset``. The same as ``k8s.workload.name``.
253+
- Present only for ``workload.kind`` == ``daemonset``. Same as ``k8s.workload.name``.
254254
-
255255

256256
- ``k8s.daemonset.uid``
257-
- Present only for ``workload.kind`` == ``daemonset``. The same as ``k8s.object_uid``.
257+
- Present only for ``workload.kind`` == ``daemonset``. Same as ``k8s.object_uid``.
258258
-
259259

260260
- ``k8s.pod.qos``
261261
- Pod-level QoS
262262
-
263263

264264
- ``aopt.profiler_report.success``
265-
- Whether the analysis was successful and a report is provided. Values: 0 or 1.
265+
- Whether the analysis was successful and a report is provided. Values: ``0`` or ``1``.
266266
-
267267

268268
- ``aopt.instant_recommendation.present``
269-
- Whether there is a valid recommendation. Values: 0 or 1.
269+
- Whether there is a valid recommendation. Values: ``0`` or ``1``.
270270

271271

272272

@@ -275,7 +275,7 @@ The following dimensions are applied to all metrics (both workload and container
275275
Container-level attributes
276276
----------------------------------------------------------
277277

278-
The following additional dimensions are applied to per-container metrics (any metric with ``.container.`` name element):
278+
The following additional dimensions are applied to per-container metrics (in other words, any metric named ``*.container.*``):
279279

280280

281281
.. list-table::
@@ -295,7 +295,7 @@ The following additional dimensions are applied to per-container metrics (any me
295295
-
296296

297297
- ``k8s.container.pseudo_qos``
298-
- Container-level pseudo-QoS
298+
- Container-level pseudo-QoS.
299299

300300

301301
.. note::

0 commit comments

Comments
 (0)