You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##Import Grafana dashboard in Azure Managed Grafana
72
+
### 2. Import existing Grafana dashboard in Azure Managed Grafana
59
73
60
74

61
75
62
-
Create a dashboard with a Time series or import the [JSON export](grafana-dashboard.json). Use the following query:
76
+
Create a dashboard with a Time series or import the [JSON export](grafana-dashboard.json).
63
77
64
-
```
78
+
Use the following query:
79
+
80
+
```yaml
65
81
sum(rate(http_requests_total{app="my-app"}[2m])) by (version)
66
82
```
67
83
68
84

69
85
70
-
Since we installed Prometheus with default settings, it is using the default scrape
71
-
interval of `1m` so the range cannot be lower than that.
86
+
Since we installed [Azure Managed Prometheus][1] with cutomized settings, it is using the short scrape
87
+
interval of `10s` so the range cannot be lower than that.
72
88
73
89
To have a better overview of the version, add `{{version}}` in the legend field.
74
90
75
-
## Curl script
91
+
## Test script
92
+
93
+
### Usage
76
94
77
-
### Before you begin
95
+
This is a Python script that makes HTTP requests to a web link specified by the provided `AGIC-PUBLIC-IP` address. The script uses the requests library to send GET requests to the specified URL. It has error handling mechanisms to handle different types of exceptions that might occur during the request.
78
96
79
97
```bash
98
+
# Install colorama for colorized output if not already installed
80
99
pip3 install colorama
81
-
```
82
-
83
-
### Usage
84
100
85
-
This is a Python script that makes HTTP requests to a web link specified by the provided AIGC-PUBLIC-IP address. The script uses the requests library to send GET requests to the specified URL. It has error handling mechanisms to handle different types of exceptions that might occur during the request.
101
+
# Run the script
102
+
# Example:
103
+
# ./curl.py x.x.x.x
104
+
./curl.py $AGIC-PUBLIC-IP
86
105
87
-
```bash
88
-
./curl.py AIGC-PUBLIC-IP
106
+
# Run the script with a custom header
107
+
# Example:
108
+
# ./curl.py x.x.x.x test.aks.aliez.tw
109
+
./curl.py $AGIC-PUBLIC-IP $HEADER_HOST
89
110
```
90
111
91
112
The script continues to run indefinitely, making periodic requests to the web link and monitoring for errors.
@@ -127,4 +148,21 @@ Based on [Troubleshoot collection of Prometheus metrics in Azure Monitor](https:
### Minimizing Downtime During Deployments with Azure Application Gateway Ingress Controller
155
+
156
+
Strong recommendation to read [Minimizing Downtime During Deployments](https://azure.github.io/application-gateway-kubernetes-ingress/how-tos/minimize-downtime-during-deployments/)
157
+
158
+
1. Regarding the `spec.terminationGracePeriodSeconds` parameter, please refer to [ramped/app-v1.yaml#30][5]
159
+
2. Regarding the `spec.containers[0].lifecycle.preStop` parameter, please refer to [ramped/app-v1.yaml#L53-L56][6]
160
+
3. Add connection draining annotation to the Ingress read by AGIC to allow for in-flight connections to complete, please refer to [ramped/app-v1.yaml#L65-L66][7]
0 commit comments