AppOptics is a cloud-hosted, enterprise-grade application performance monitoring (APM) solution and infrastructure monitoring tool for hybrid IT environments. But by using SolarWinds AppOptics, we can easily gain this insight. Because the application is deployed to a cloud provider, it can be difficult at times to truly understand how our application is behaving and why. DIGITALOCEAN MONIT CODEIf you see, “ Hello World!” then we have our example site up and running, and we’re all set!įor this article, let’s inject a little bad code into our sample app to mimic what we might see in a real-life production situation.įirst, however, we need a way to monitor our app. (The IPv4 address belongs to the remote host on DigitalOcean we created earlier.) $ curl 162.243.170.242 Open another terminal window on your desktop and connect to the web application by issuing the command below. Do not use it in a production deployment. Open your text editor and save a file named app.py with the following content: from flask import Flask Now, create a folder for your web application. DIGITALOCEAN MONIT INSTALLInstall Flask (a Python framework for web applications) using the pip3 command. $ sudo ufw allow 80Īnd finally, we need to deploy our sample app. Let’s open the default HTTP port on this host, since we’d like our web application to be accessible to the internet. DIGITALOCEAN MONIT UPDATEmy-ssh-private.key issue this command: $ apt update & apt-get upgrade -y & apt-get install python3.8 python3-pip Now, let’s update the system and install some prerequisite packages for our project. Click back on the Droplets menu on the panel on the left side to see the provisioned Droplet.Ĭlick on your new Droplet to see further details (as shown below). Now click Create Droplet to provision a host. In the Authentication section, click New SSH Key and paste in your public SSH key and name. Since we’ll want to access the new host remotely, we must generate a secure shell key. We’ll keep the defaults on all the other parameters. A Droplet is a VM running on top of virtualized hardware.įor this example, let’s select Ubuntu, the basic plan (shared CPU), and the $5/month virtual machine (as shown below) to keep the cost of our website low. After you log in or create a new account, click Create Droplet. We’ll create a simple website in Python and use AppOptics to peek into and solve its performance issues.įirst, let’s create a sample app and deploy it on DigitalOcean. In this article, we’ll look at how SolarWinds ® AppOptics ™ works together with DigitalOcean to help you identify and fix performance issues with your application. But what happens when your application starts causing bottlenecks and you need to track down the root cause? Hosting your application on DigitalOcean is an easy way for teams to deploy and scale applications without worrying about the details of the infrastructure.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |