Skip to content

Commit 482f395

Browse files
committed
formatting and reviewer edits
1 parent 6774251 commit 482f395

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

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

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -32,33 +32,33 @@ Use the following procedure to build and deploy the sample applications.
3232

3333
1. Clone and build the demo repository.
3434

35-
```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
38-
```
35+
```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
38+
*```
3939
4040
1. Create applications with endpoints.
4141
4242
```azurecli
43-
az spring app create
44-
--resource-group ${resource-group-name} \
45-
--name resilience4j \
46-
--service ${Azure-Spring-Apps-instance-name} \
47-
--assign-endpoint
48-
az spring app create \
49-
--resource-group ${resource-group-name} \
50-
--service ${Azure-Spring-Apps-instance-name} \
51-
--name reactive-resilience4j \
52-
--assign-endpoint
43+
az spring app create
44+
--resource-group ${resource-group-name} \
45+
--name resilience4j \
46+
--service ${Azure-Spring-Apps-instance-name} \
47+
--assign-endpoint
48+
az spring app create \
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 \
59-
--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 \
58+
az spring app deploy -n resilience4j \
59+
--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 \
6262
--jar-path ./spring-cloud-circuitbreaker-demo-reactive-resilience4j/target/spring-cloud-circuitbreaker-demo-reactive-resilience4j-0.0.1.BUILD-SNAPSHOT.jar \
6363
-s ${service_name} -g ${resource_group}
6464
```
@@ -108,29 +108,29 @@ Use the following procedure to build and deploy the sample applications.
108108
109109
:::image type="content" source="media/how-to-circuit-breaker-metrics/application-insights.png" alt-text="Screenshot of the Azure portal showing the Azure Spring Apps Application Insights page with the Application Insights on the button bar highlighted." lightbox="media/how-to-circuit-breaker-metrics/application-insights.png":::
110110
111-
1. Select **Metics** in the navigation pane. The Metrics page provides dropdown menus and options from which you will define the charts in this procedure. For all charts, set the **Metric Namespace**, to *azure.applicationinsights*.
111+
1. Select **Metrics** in the navigation pane. The Metrics page provides dropdown menus and options from which you will define the charts in this procedure. For all charts, set the **Metric Namespace**, to **azure.applicationinsights**.
112112
113113
:::image type="content" source="media/how-to-circuit-breaker-metrics/chart-menus.png" alt-text="Screenshot of the Azure portal Application Insights Metrics page showing the drop down menus and options to define charts and with Metrics highlighted in the navigation pane." lightbox="media/how-to-circuit-breaker-metrics/chart-menus.png":::
114114
115-
1. For the first chart, select *resilience4j_circuitbreaker_buffered_calls* for the **Metric** with the **Aggregation** set to *Avg*.
115+
1. For the first chart, select **resilience4j_circuitbreaker_buffered_calls** for the **Metric** with the **Aggregation** set to **Avg**.
116116
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 rendered from the circuitbreaker buffered calls metric and averaged." lightbox="media/how-to-circuit-breaker-metrics/buffered-calls.png":::
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 circuitbreaker buffered calls metric and averaged." lightbox="media/how-to-circuit-breaker-metrics/buffered-calls.png":::
118118
119-
1. For the next chart, select *resilience4j_circuitbreaker_calls* for the **Metric** with the **Aggregation** set to *Avg*.
119+
1. For the next chart, select **resilience4j_circuitbreaker_calls** for the **Metric** with the **Aggregation** set to **Avg**.
120120
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 rendered from the circuitbreaker calls metric and averaged." lightbox="media/how-to-circuit-breaker-metrics/calls.png":::
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 circuitbreaker calls metric and averaged." lightbox="media/how-to-circuit-breaker-metrics/calls.png":::
122122
123-
1. Select *resilience4j_circuitbreaker_calls* for the **Metric** with the **Aggregation** set to *Avg*. Select **Add filter** and then select *createNewAccount*.
123+
1. Select **resilience4j_circuitbreaker_calls** for the **Metric** with the **Aggregation** set to **Avg**. Select **Add filter** and for the name select **createNewAccount**.
124124
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 rendered from the circuitbreaker calls metric, averaged, and with a filter applied." lightbox="media/how-to-circuit-breaker-metrics/calls-filter.png":::
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 circuitbreaker calls metric, averaged, and with a filter applied." lightbox="media/how-to-circuit-breaker-metrics/calls-filter.png":::
126126
127-
1. Select *resilience4j_circuitbreaker_calls* for the **Metric** with the **Aggregation** set to *Avg*. Select **Apply splitting** and then select *kind*.
127+
1. Select **resilience4j_circuitbreaker_calls** for the **Metric** with the **Aggregation** set to **Avg**. Select **Apply splitting** and then select **kind**.
128128
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 rendered from the circuitbreaker calls, averaged, and with Apply splitting set to kind." lightbox="media/how-to-circuit-breaker-metrics/calls-splitting.png":::
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 circuitbreaker calls metric, averaged, and with Apply splitting applied." lightbox="media/how-to-circuit-breaker-metrics/calls-splitting.png":::
130130
131-
1. For the last chart, select *resilience4j_circuitbreaker_calls* for the **Metric** with the **Aggregation** set to *Avg*. Select **Add metric** and select *resilience4j_circuitbreaker_buffered_calls* for the **Metric** with the **Aggregation** set to *Avg*. Repeat to add the metric *resilience4j_circuitbreaker_slow_calls* with the **Aggregation** set to *Avg*.
131+
1. For the last chart, select **resilience4j_circuitbreaker_calls** for the **Metric** with the **Aggregation** set to **Avg**. Select **Add metric** and select **resilience4j_circuitbreaker_buffered_calls** for the **Metric** with the **Aggregation** set to **Avg**. Repeat to add the metric **resilience4j_circuitbreaker_slow_calls** with the **Aggregation** set to **Avg**.
132132
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 a chart rendered from multiple metrics and averaged." lightbox="media/how-to-circuit-breaker-metrics/slow-calls.png":::
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 a chart rendered from two metrics and averaged." lightbox="media/how-to-circuit-breaker-metrics/slow-calls.png":::
134134
135135
## Next steps
136136

0 commit comments

Comments
 (0)