Book Image

Learning Azure DocumentDB

By : Riccardo Becker
Book Image

Learning Azure DocumentDB

By: Riccardo Becker

Overview of this book

Learning DocumentDB adopts a practical, step-by-step approach to help you learn the basics of DocumentDB and use your new-found abilities in real-life scenarios and enterprise solutions. We start with the absolute basics, such as setting up a DocumentDB environment, and guide you through managing your databases, and executing simple and complex queries. Next, we explain how to work with DocumentDB using the open REST protocol, and demonstrate how JavaScript works with DocumentDB. We’ll also show you how to authenticate and execute queries. Moving on, you’ll find out how to use DocumentDB from within Node.js to kick-start your Node.js projects. Next, you’ll discover how to increase the performance of your DocumentDB database and fine-tune it. Finally, you’ll get to grips with using DocumentDB in conjunction with other services offered from the Microsoft Azure platform.
Table of Contents (15 chapters)
Learning Azure DocumentDB
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Managing alerts


In this section, we will learn how to monitor your assets, gather metrics, and create alerts.

Monitoring your account

The Azure portal offers the ability to monitor your account. There are performance metrics and usage metrics available for you to view.

Selecting the monitoring lens will bring up the details of your monitoring settings.

By default, you will see the amount of total requests on your account. By selecting the Edit chart option, we can add multiple metrics to our chart. Selecting the today time range and checking all the available metrics will give you a detailed overview of all the events that happened today on the account.

Other possible metrics to add are shown in the following screenshot:

Tip

All metrics are interesting, but pay close attention to the Http 401 because it indicates the amount of unauthorized requests. This might be due to permissions expiring or worse, a possible attack on your system.

Creating alerts

Inside the same blade, we can create alerts....