-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path09-monitoring.sh
29 lines (22 loc) · 1.03 KB
/
09-monitoring.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Apply log and prometheus data collection settings
kubectl apply -f others/container-azm-ms-agentconfig.yaml
# Read more about different configuration options:
# https://github.com/microsoft/Docker-Provider/blob/ci_dev/kubernetes/container-azm-ms-agentconfig.yaml
kubectl apply -f monitoring-app/
kubectl get service -n monitoring-app
monitoring_app_ip=$(kubectl get service -n monitoring-app -o jsonpath="{.items[0].status.loadBalancer.ingress[0].ip}")
store_variable "monitoring_app_ip"
echo $monitoring_app_ip
curl $monitoring_app_ip
#
# Study Container Insights
#
# More information here:
# https://learn.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-overview
# https://learn.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-prometheus-integration
# https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/prometheus-metrics-scrape-configuration
#
# Study KQL queries
#
# More information here:
# https://docs.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-log-query