|
| 1 | +title: How to Add Hosted Monitoring to Flask Web Applications |
| 2 | +slug: hosted-monitoring-flask-web-apps |
| 3 | +meta: |
| 4 | +category: post |
| 5 | +date: 2017-07-17 |
| 6 | +modified: 2017-07-17 |
| 7 | +headerimage: /img/170717-monitor-flask-apps/header.jpg |
| 8 | +headeralt: Flask, Python and Rollbar logos, copyright their respective owners. |
| 9 | + |
| 10 | + |
| 11 | +How do you know whether your application is running properly with minimal |
| 12 | +errors after [building](/web-development.html) and |
| 13 | +[deploying](/deployment.html) it? The fastest and easiest way |
| 14 | +to monitor your operational [Flask web application](/flask.html) is to |
| 15 | +integrate one of the many available fantastic hosted |
| 16 | +[monitoring](/monitoring.html) tools. |
| 17 | + |
| 18 | +In this post we will quickly add [Rollbar monitoring](https://rollbar.com) |
| 19 | +to catch errors and visualize our application is running properly. |
| 20 | + |
| 21 | + |
| 22 | +## Our Tools |
| 23 | + |
| 24 | + |
| 25 | +## Installing Dependencies |
| 26 | + |
| 27 | +``` |
| 28 | +pip install flask==0.12.2 rollbar |
| 29 | +``` |
| 30 | + |
| 31 | +## Running the Flask App |
| 32 | +(error occurs but we dont see it) |
| 33 | + |
| 34 | +## Handling Errors |
| 35 | +(sign up for Rollbar) |
| 36 | +(links to Python docs) |
| 37 | + |
| 38 | +## Testing Error Handling |
| 39 | + |
| 40 | + |
| 41 | +## What's Next? |
| 42 | +We just learned how to catch and handle errors that occur in a simple |
| 43 | +Flask application. Next you will want to add monitoring to your more |
| 44 | +complicated web apps. You can also check out some of Rollbar's more |
| 45 | +advanced features such as: |
| 46 | + |
| 47 | +* cool feature 1 |
| 48 | +* cool feature 2 |
| 49 | +* cool feature 3 |
| 50 | + |
| 51 | +There is a lot more to learn about [web development](/web-development.html) |
| 52 | +and [deployments](/deployments.html) so keep learning by reading up on |
| 53 | +[Flask](/flask.html) and other [web frameworks](/web-frameworks.html) |
| 54 | +such as [Django](/django.html), [Pyramid](/pyramid.html) and |
| 55 | +[Sanic](/sanic.html). |
| 56 | + |
| 57 | +Questions? Let me know via |
| 58 | +[a GitHub issue ticket on the Full Stack Python repository](https://github.com/mattmakai/fullstackpython.com/issues), |
| 59 | +on Twitter |
| 60 | +[@fullstackpython](https://twitter.com/fullstackpython) |
| 61 | +or [@mattmakai](https://twitter.com/mattmakai). |
| 62 | + |
| 63 | +See something wrong in this blog post? Fork |
| 64 | +[this page's source on GitHub](https://github.com/mattmakai/fullstackpython.com/blob/master/content/posts/170717-monitor-flask-apps.markdown) |
| 65 | +and submit a pull request with a fix. |
0 commit comments