Skip to content

Commit 1db31f2

Browse files
committed
Update metrics sequence diagram
1 parent 57a3de2 commit 1db31f2

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

docs/design/core/metrics/Design.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,15 @@ New modules are created to support metrics feature.
143143

144144
## Sequence Diagram
145145

146-
![Normal API Call flow](images/MetricsSequenceDiagram.png)
146+
<div style="text-align:center" markdown="1">
147+
<b>Metrics Collection</b>
148+
149+
![Metrics Collection](images/MetricCollection.jpg)
150+
151+
<div style="text-align:center" markdown="1">
152+
<b>MetricPublisher</b>
153+
154+
![MetricPublisher fig.align="left"](images/MetricPublisher.jpg)
147155

148156
1. Client enables metrics feature through MetricConfigurationProvider and configure publishers through MetricPublisherConfiguration.
149157
2. For each API call, a new MetricRegistry object is created and stored in the ExecutionAttributes. If metrics are not enabled, a NoOpMetricRegistry is used.
@@ -156,7 +164,12 @@ These MetricRegistry instance for the current attempt is also accessed through A
156164
8. MetricPublisher calls publish() method to report metrics to external sources. The frequency of publish() method call is unique to Publisher implementation.
157165
9. Client has access to all registered publishers and it can call publish() method explicitly if desired.
158166

159-
167+
168+
<div style="text-align:center" markdown="1">
169+
<b>CloudWatch MetricPublisher</b>
170+
171+
![CloudWatch MetricPublisher](images/CWMetricPublisher.jpg)
172+
160173
## Implementation Details
161174
Few important implementation details are discussed in this section.
162175

Loading
Loading
Loading
Binary file not shown.

0 commit comments

Comments
 (0)