Weave Scope is a visualization, and monitoring tool for Docker and Kubernetes.For Microservices-based architecture,Weave scope would be useful in visualizing network bottlenecks, troubleshooting CPU consumption and troubleshooting memory leaks.It provides a top down view into your app as well as your entire infrastructure, and allows you to diagnose any problems with your distributed containerized app, in real time, as it being deployed to a cloud provider.
Quick Snapshot
If you’re looking for quickstart on basic understanding of Kubernetes concepts, please refer earlier posts for understanding on Kubernetes & how to create, deploy & rollout updates to the cluster.
Weave Scope consists of two components: the app and the probe. The probe is responsible for gathering information about the host on which it is running. This information is sent to the app in the form of a report. The app processes reports from the probe into various visualizations (ex.Topologies).
Scope app can be run as standalone mode or as a hosted Cloud offering. In standalone mode, when running Scope in a cluster, each probe sends its reports to a dedicated app. The app merges the reports from its probe into a comprehensive report that is sent to the browser.
Scope can also be used to feed reports to Weave Cloud. With Weave Cloud offering, you can centrally manage and share access to your Scope user interface. In this configuration, the probe is run locally and the apps are hosted on the cloud.
As discussed in the earlier section, Weave Scope consists of three parts: (1) probe, (2) app, and (3) user interface. Scope can be deployed in either a standalone configuration or you can use Weave Cloud, in which case only the probes run in your environment, and the app and user interface are hosted by Weave Cloud.
In the below example, I’m going to use Kubernetes but it can be deployed to the Docker environment as well.
On your Kubernetes cluster, run the following command
kubectl create -f "https://cloud.weave.works/launch/k8s/weavescope.yaml"
Above command downloads a Scope image from Dockerhub and launches a probe onto every node as well as a single Scope app.
Now that deployment is created, let’s check the deployment information using kubectl get pods command :
Once all of the Pods as up and running, use kubectl expose pod command to expose the services to the outside world.
Views in Scope is more like high-level filters, they are categorized into Processes, Containers, Orchestrators, and Hosts, etc.,
Apart from the above views, custom metrics can also be generated using plugins.
Congrats! today we have learned how to deploy WeaveScope on to Kubernetes cluster.
Like this post? Don’t forget to share it!
In today's digital-first world, businesses must adopt effective strategies to stay competitive. Social media marketing…
62% of UX designers now use AI to enhance their workflows. Artificial intelligence (AI) rapidly…
The integration of artificial intelligence into graphic design through tools like Adobe Photoshop can save…
The cryptocurrency trading world has grown significantly in recent years, with automation playing a key…
The non-fungible token (NFT) market has witnessed explosive growth over the past few years, transforming…
There are few things as valuable to a business as well-designed software. Organizations today rely…
This website uses cookies.