Skip to content

Commit d8d676f

Browse files
committed
alt text and code edits
1 parent 4aad7c9 commit d8d676f

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

articles/spring-apps/how-to-circuit-breaker-metrics.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,34 +33,38 @@ Use the following steps to build and deploy the sample applications.
3333
1. Clone and build the demo repository.
3434

3535
```bash
36-
git clone https://github.com/spring-cloud-samples/spring-cloud-circuitbreaker-demo.git
37-
cd spring-cloud-circuitbreaker-demo && mvn clean package -DskipTests
36+
git clone https://github.com/spring-cloud-samples/spring-cloud-circuitbreaker-demo.git
37+
cd spring-cloud-circuitbreaker-demo && mvn clean package -DskipTests
3838
```
3939

4040
1. Create applications with endpoints.
4141

4242
```azurecli
43-
az spring app create
43+
az spring app create \
4444
--resource-group ${resource-group-name} \
4545
--name resilience4j \
4646
--service ${Azure-Spring-Apps-instance-name} \
4747
--assign-endpoint
4848
az spring app create \
49-
--resource-group ${resource-group-name} \
50-
--service ${Azure-Spring-Apps-instance-name} \
51-
--name reactive-resilience4j \
52-
--assign-endpoint
49+
--resource-group ${resource-group-name} \
50+
--service ${Azure-Spring-Apps-instance-name} \
51+
--name reactive-resilience4j \
52+
--assign-endpoint
5353
```
5454

5555
1. Deploy applications.
5656

5757
```azurecli
58-
az spring app deploy -n resilience4j \
58+
az spring app deploy \
59+
--name resilience4j \
5960
--jar-path ./spring-cloud-circuitbreaker-demo-resilience4j/target/spring-cloud-circuitbreaker-demo-resilience4j-0.0.1.BUILD-SNAPSHOT.jar \
60-
-s ${service_name} -g ${resource_group}
61-
az spring app deploy -n reactive-resilience4j \
62-
--jar-path ./spring-cloud-circuitbreaker-demo-reactive-resilience4j/target/spring-cloud-circuitbreaker-demo-reactive-resilience4j-0.0.1.BUILD-SNAPSHOT.jar \
63-
-s ${service_name} -g ${resource_group}
61+
--service ${Azure-Spring-Apps-instance-name} \
62+
--resource-group ${resource-group-name}
63+
az spring app deploy \
64+
--name reactive-resilience4j \
65+
--jar-path ./spring-cloud-circuitbreaker-demo-reactive-resilience4j/target/spring-cloud-circuitbreaker-demo-reactive-resilience4j-0.0.1.BUILD-SNAPSHOT.jar \
66+
--service ${Azure-Spring-Apps-instance-name} \
67+
--resource-group ${resource-group-name}
6468
```
6569

6670
> [!NOTE]
@@ -114,23 +118,23 @@ Use the following steps to build and deploy the sample applications.
114118
115119
1. Set **Metric** to **resilience4j_circuitbreaker_buffered_calls**, and then set **Aggregation** to **Avg**.
116120
117-
:::image type="content" source="media/how-to-circuit-breaker-metrics/buffered-calls.png" alt-text="Screenshot of the Azure portal Application Insights Metrics page showing a chart of the circuit breaker buffered calls selected for the Metric and with Average selected for the Aggregation." lightbox="media/how-to-circuit-breaker-metrics/buffered-calls.png":::
121+
:::image type="content" source="media/how-to-circuit-breaker-metrics/buffered-calls.png" alt-text="Screenshot of the Azure portal Application Insights Metrics page showing a chart with Metric set to circuit breaker buffered calls and Aggregation set to Average." lightbox="media/how-to-circuit-breaker-metrics/buffered-calls.png":::
118122
119123
1. Set **Metric** to **resilience4j_circuitbreaker_calls**, and then set **Aggregation** to **Avg**.
120124
121-
:::image type="content" source="media/how-to-circuit-breaker-metrics/calls.png" alt-text="Screenshot of the Azure portal Application Insights Metrics page showing a chart of the circuit breaker calls selected for the Metric and with Average selected for the Aggregation." lightbox="media/how-to-circuit-breaker-metrics/calls.png":::
125+
:::image type="content" source="media/how-to-circuit-breaker-metrics/calls.png" alt-text="Screenshot of the Azure portal Application Insights Metrics page showing a chart with Metric set to circuit breaker calls and Aggregation set to Average." lightbox="media/how-to-circuit-breaker-metrics/calls.png":::
122126
123127
1. Set **Metric** to **resilience4j_circuitbreaker_calls**, and then set **Aggregation** to **Avg**. Select **Add filter** and set **Name** to **Delay**.
124128
125-
:::image type="content" source="media/how-to-circuit-breaker-metrics/calls-filter.png" alt-text="Screenshot of the Azure portal Application Insights Metrics page showing a chart of the circuit breaker calls selected for the Metric, with Average selected for the Aggregation, and with Delay selected for the filter." lightbox="media/how-to-circuit-breaker-metrics/calls-filter.png":::
129+
:::image type="content" source="media/how-to-circuit-breaker-metrics/calls-filter.png" alt-text="Screenshot of the Azure portal Application Insights Metrics page showing a chart with Metric set to circuit breaker calls and Aggregation set to Average, and with Filter set to the name Delay." lightbox="media/how-to-circuit-breaker-metrics/calls-filter.png":::
126130
127131
1. Set **Metric** to **resilience4j_circuitbreaker_calls**, and then set **Aggregation** to **Avg**. Select **Apply splitting** and set **Split by** to **kind**.
128132
129-
:::image type="content" source="media/how-to-circuit-breaker-metrics/calls-splitting.png" alt-text="Screenshot of the Azure portal Application Insights Metrics page showing a chart of the circuit breaker calls selected for the Metric, with Average selected for the Aggregation, and with kind selected for Apply splitting." lightbox="media/how-to-circuit-breaker-metrics/calls-splitting.png":::
133+
:::image type="content" source="media/how-to-circuit-breaker-metrics/calls-splitting.png" alt-text="Screenshot of the Azure portal Application Insights Metrics page showing a chart with Metric set to circuit breaker calls and Aggregation set to Average, and with Apply splitting selected with Split by set to kind." lightbox="media/how-to-circuit-breaker-metrics/calls-splitting.png":::
130134
131135
1. Set **Metric** to **resilience4j_circuitbreaker_calls**, and then set **Aggregation** to **Avg**. Select **Add metric** and set **Metric** to **resilience4j_circuitbreaker_buffered_calls**, and then set **Aggregation** to **Avg**. Select **Add metric** again and set **Metric** to **resilience4j_circuitbreaker_slow_calls**, and then set **Aggregation** set to **Avg**.
132136
133-
:::image type="content" source="media/how-to-circuit-breaker-metrics/slow-calls.png" alt-text="Screenshot of the Azure portal Application Insights Metrics page showing three charts: circuit breaker calls, circuit breaker buffered calls, and circuit breaker slow calls. All charts have aggregation set to Average." lightbox="media/how-to-circuit-breaker-metrics/slow-calls.png":::
137+
:::image type="content" source="media/how-to-circuit-breaker-metrics/slow-calls.png" alt-text="Screenshot of the Azure portal Application Insights Metrics page showing three charts: A chart with Metric set to circuit breaker calls and Aggregation set to Average. A chart with Metric set to circuit breaker calls buffered and Aggregation set to Average. A chart with Metric set to circuit breaker slow calls and Aggregation set to Average." lightbox="media/how-to-circuit-breaker-metrics/slow-calls.png":::
134138
135139
## Next steps
136140

0 commit comments

Comments
 (0)