Prometheus Alerting and Monitoring
- 1.5 hours on-demand video
- 2 Practice Tests
- Full lifetime access
- Access on mobile and TV
- Certificate of Completion
Get your team access to 4,000+ top Udemy courses anytime, anywhere.Try Udemy for Business
- We begin to learn Prometheus, and we see it working
- Build a bare bones Prometheus server from scratch, in the cloud and on your own Ubuntu 18
- Learn how to set it up as a service so that it is always running in the background
- Configure it to be behind a Nginx Reverse Proxy
- Configure a domain name and add SSL to ensure transport layer encryption for the user interface
- Add Basic Authentication to restrict user access
- Install several Node-Exporters, local and external, manage there firewall rules and compare the differences
- Learn the basics of querying metrics from simple metrics, instant vectors, range vectors, functions, aggregates and sub queries
- Create custom metrics from complicated queries and save them as Recording Rules
- Create Alerting Rules and demonstrate Inactive, Pending and Firing states
- Basic Linux Experience
- All commands entered during the lectures are provided in the corresponding resources
- You have the choice of using dedicated hardware, cloud or locally hosted VMs. In this course, I predominantly use an unrestricted fresh install of Ubuntu 18 in the cloud.
We learn the basics of Prometheus so that you can get started as soon as possible, and to follow the exercises, try them out for yourself and you can see it working.
In this course we will quickly build a bare bones Prometheus server from scratch, in the cloud and on your own Ubuntu 18.
We will keep it simple and set it up on a default, unrestricted, un-customised Ubuntu 18 server. You will then be able to match what you see in the videos and copy/paste directly from my documentation and see the same result. Once you have the basic experience of seeing Prometheus work, you will be able to problem solve in a more directed manner, and apply your knowledge to other operating systems in the future.
At the end of the course, you will have a basic Prometheus setup, which will be in the cloud, behind a reverse proxy, with SSL, a domain name, Basic Authentication, with several custom recording rules, several alerting rules, several node exporters local and external, with alert manager using a send only SMTP server.
Over time, as students request, there will be bonus lectures added, after the main part of the course, showing the more popular specific use cases of Prometheus.
- Network and Systems Administrators
- Infrastructure Monitoring Specialists
- IT Platform Specialists
- DevOps Technicians
- Enthusiasts wanting a better understanding and better visibility of their IT infrastructure in the home or office
- Someone who is curious and wants a better understanding of what Prometheus is and what Prometheus is good at
We will install the latest version of Prometheus on our server.
You can find the latest version of the Prometheus binary at https://prometheus.io/download/
After downloading, and before we run it, we should verify it's SHA256 Checksum.
If all is ok, then we can untar the gz archive.
We start it.
Prometheus should now be running.
You can visit it at http://[your ip address]:9090
We have download Prometheus as a binary and started it. But if we close our SSH session, the Prometheus server will stop. So we set it up to run as a service, so that it is always running in the background.
Now that we have at least 2 scape targets, we can begin to run some more interesting queries that involve multiple scrape targets.
We will try basic time series queries, queries with regular expressions, compare the Instant and Range Vector data types, use Functions, Aggregates and Sub Queries.
We create some Recording rules, for the more complicated common queries we may want to create time series data for.
The Prometheus Alert manager is a dedicated process that will receive alert notifications from Prometheus, and send them via the configured receivers.
In this lecture, we install the Alert Manger, run it as a service, and serve it behind the existing reverse proxy so that the UI can also be accessed via domain name, SSL and Basic Authentication.
Thanks for taking part in my course.
We have achieved a lot in a small amount of time and you now know if you want to take Prometheus further.
We have built our dedicated Prometheus server, with multiple node exporters, with custom recording rules, alerting rules, behind a reverse proxy, with SSL and Basic Authentication. We also know how to create our own specialised queries and we know how to set up the alerting manager to at minimum send emails via SMTP.
If you decide to continue with Prometheus, then a good source of possibilities for your future direction is this Default Port Allocations page, as it show all the hundreds of exporters in development for Prometheus today.
If you have any further questions then ask them in the QA section under the most relevant video. I will try to answer them, maybe adjust the course content, or add it to my medium and advanced Prometheus courses.