Expect a fundamental culture change concerning monitoring when shifting to Cloud Native. Instead of monitoring to avoid failure, monitor to manage failures.
Reports metrics from all resources and services in Oracle Cloud Infrastructure.
Widely adopted open source tool for monitoring, metric analytics, dashboards sourced by its integrated extensive Data Sources and plugins
Container metrics and alerting toolkit fitting dynamic microservice architectures
setup
.
Now let's revisit the charts and connect to some Grafana dashboards!
helm list --all-namespaces
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
mushop mushop 1 2020-01-31 21:14:48.511917 -0600 CST deployed mushop-0.1.0 1.0
mushop-utils mushop-utilities 1 2020-01-31 20:32:05.864769 -0600 CST deployed mushop-setup-0.0.1 1.0
Get the output from the setup installation:
helm status mushop-utils -n mushop-utilities
## Grafana...
Get the auto-generated admin password:
kubectl get secret -n mushop-utilities mushop-utils-grafana \
-o jsonpath="{.data.admin-password}" | base64 --decode ; echo
Connect to the dashboard with admin/<password>:
kubectl port-forward -n mushop-utilities \
svc/mushop-utils-grafana 3000:80
Click âī¸ Data Sources and see Prometheus
6417
(Kubernetes Cluster)6336
(Kubernetes Pods)âšī¸ This also showcases the Horizontal Pod Autoscaling configurations deployed with the MuShop application
mushop
source code directory:
# mushop>
đĨ Deploy the load simulation pods:
kubectl create -f src/load/load-dep.yaml
Watch the Horizontal Pod Autoscaling output
NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE
mushop-api Deployment/mushop-api 47%/70% 1 10 5 4m2s
mushop-catalogue Deployment/mushop-catalogue 30%/70% 1 10 3 4m2s
mushop-edge Deployment/mushop-edge 57%/70% 1 10 6 4m2s
mushop-storefront Deployment/mushop-storefront 25%/70% 1 10 1 4m2s
mushop-user Deployment/mushop-user 20%/70% 1 10 3 4m1s
Now return to the Grafana console and review the dashboards...
kubectl delete -f src/load/load-dep.yaml
When was this method called?
How was this method called?
What happened inside this method?