title
Prometheus Tutorial | Monitoring with Prometheus And Grafana | Prometheus Grafana Tutorial | Edureka

description
🔥Edureka DevOps Training: https://www.edureka.co/devops-certification-training/ This Edureka "Prometheus Tutorial" gives you a complete overview of what is Prometheus and how to use it. You will learn how to install Prometheus, Node exporter, Alert manager, and also learn about the Prometheus Graphical User Interface. Also, you will integrate your Node exporter's metrics in Grafana. The following topics are covered in the Prometheus video: 00:00:00 Introduction 00:01:53 What is Prometheus? 00:02:51 Why Prometheus? 00:04:46 Continuous Monitoring with Prometheus 00:05:46 Prometheus Architecture 00:08:55 Prometheus Metrics and its Metrics 00:11:35 Prometheus Installation and Demo 🔹Check our complete DevOps Tutorial playlist here: http://goo.gl/O2vo13 🔹Check our DevOps Tutorial Blog playlist here: https://bit.ly/3gfNuZr -------------------------------------------------------------------------------------------- 🔴Subscribe to our channel to get video updates. Hit the subscribe button above: https://goo.gl/6ohpTV Twitter: https://twitter.com/edurekain LinkedIn: https://www.linkedin.com/company/edureka Instagram: https://www.instagram.com/edureka_learning/ Facebook: https://www.facebook.com/edurekaIN/ SlideShare: https://www.slideshare.net/EdurekaIN Castbox: https://castbox.fm/networks/505?country=in Meetup: https://www.meetup.com/edureka/ #Edureka #EdurekaDevOps #PrometheusTutorial #PrometheusGrafanaTutorialForBeginners #DevOpsTraining #DevOpsTutorial #GrafanaDashboard #ContinuousMonitoring #EdurekaTraining -------------------------------------------------------------------------------------------- How it Works? 1. This is a 4 Week Instructor-led Online Course. 2. Course consists of 24 hours of online classes, 25 hours of assignment, 20 hours of project 3. We have a 24x7 One-on-One LIVE Technical Support to help you with any problems you might face or any clarifications you may require during the course. 4. You will get Lifetime Access to the recordings in the LMS. 5. At the end of the training you will have to complete the project based on which we will provide you a Verifiable Certificate! - - - - - - - - - - - - - - About the Course Edureka’s DevOps online training is designed to help you master key tools of Devops lifecycle like Docker, Puppet, Jenkins, Nagios, GIT, Ansible, SaltStack and Chef used by a DevOps Engineer for automating multiple steps in SDLC. During this course, our expert DevOps instructors will help you: 1. Understand the concepts and necessities of DevOps 2. Understand the need for DevOps and the day-to-day real-life problems it resolves 3. Learn installation and configuration of common infrastructure servers like Apache, and Nginx for the Enterprise 4. Learn popular DevOps tools like Jenkins, Puppet, Chef, Ansible, SaltStack, Nagios and GIT 5. Implement automated system update, installations and deployments 6. Learn Virtualization Concepts 7. Configuration deployment and packaging, continuous integration using GIT 8. Fine tune Performance and set-up basic Security for Infrastructure 9. Manage server operations using Code which is popularly known as Infrastructure as a Code 10. Understand the need for and concepts of Monitoring and Logging. - - - - - - - - - - - - - - Who should go for this course? DevOps practitioners are among the highest paid IT professionals today, and the market demand for them is growing rapidly. With emergence of new job roles around DevOps philosophy, anyone aspiring to get into these new roles, can take up this DevOps course. Some of these roles are: 1. DevOps Architect 2. Automation Engineer 3. Software Tester 4. Security Engineer 5. Integration Specialist 6. Release Manager - - - - - - - - - - - - - - Project Work 1. Host a dummy webpage using Apache Web Server. 2. Write shell script which reports: a) Various system configurations related to the user and the OS. b) Data related to load on the server. c) Top 5 processes with maximum number of threads. d) Sort the services by memory 3. Install Nagios on a VM node for monitoring the various parameters of the VM. For more information, please write back to us at sales@edureka.in or call us at IND: 9606058406 / US: 18338555775 (toll-free).

detail
{'title': 'Prometheus Tutorial | Monitoring with Prometheus And Grafana | Prometheus Grafana Tutorial | Edureka', 'heatmap': [{'end': 1070.281, 'start': 912.083, 'weight': 0.728}, {'end': 1256.586, 'start': 1206.21, 'weight': 0.738}, {'end': 2049.498, 'start': 2006.903, 'weight': 0.712}, {'end': 2670.59, 'start': 2622.283, 'weight': 0.732}, {'end': 3256.78, 'start': 3213.851, 'weight': 0.757}, {'end': 4093.949, 'start': 3959.74, 'weight': 0.854}], 'summary': 'This tutorial covers the introduction to prometheus, its role in devops monitoring, installation on linux, monitoring tools, configuring node exporter, using regular expressions, automating rule creation, setting up alert manager, and integrating with grafana for visualizing metrics.', 'chapters': [{'end': 104.554, 'segs': [{'end': 47.963, 'src': 'embed', 'start': 6.94, 'weight': 0, 'content': [{'end': 16.065, 'text': 'Prometheus contributes to the DevOps system by monitoring cloud-native applications and infrastructure and by watching over hundreds of microservices.', 'start': 6.94, 'duration': 9.125}, {'end': 21.069, 'text': 'Prometheus is basically a tool that every DevOps professional should be familiar with.', 'start': 16.566, 'duration': 4.503}, {'end': 27.574, 'text': 'It is an open-source system for monitoring services and alerts based on a time series data model.', 'start': 21.59, 'duration': 5.984}, {'end': 36.56, 'text': 'It collects data and metrics from different services and stores them according to a unique identifier that is the metric name and a timestamp.', 'start': 28.054, 'duration': 8.506}, {'end': 37.76, 'text': 'Hi everyone.', 'start': 37.12, 'duration': 0.64}, {'end': 39.381, 'text': 'This is Kavya from Eduveka.', 'start': 37.8, 'duration': 1.581}, {'end': 42.302, 'text': "Welcome to today's session on Prometheus tutorial.", 'start': 39.681, 'duration': 2.621}, {'end': 47.963, 'text': "Now if you're someone who has no idea what Prometheus is and want to understand it from ground zero.", 'start': 42.862, 'duration': 5.101}], 'summary': 'Prometheus monitors cloud-native apps, microservices, and infrastructure, collecting metrics based on a time series data model.', 'duration': 41.023, 'max_score': 6.94, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU6940.jpg'}], 'start': 6.94, 'title': 'Introduction to prometheus monitoring', 'summary': 'Introduces prometheus, an open-source system for monitoring cloud-native applications and microservices. it covers its architecture, metrics, installation, and alert management.', 'chapters': [{'end': 104.554, 'start': 6.94, 'title': 'Introduction to prometheus monitoring', 'summary': 'Introduces prometheus as an open-source system for monitoring cloud-native applications and microservices, covering its architecture, metrics, installation, and alert management.', 'duration': 97.614, 'highlights': ['Prometheus is an open-source system for monitoring cloud-native applications and infrastructure and watching over hundreds of microservices. Prometheus contributes to the DevOps system by monitoring cloud-native applications and infrastructure and by watching over hundreds of microservices.', 'Prometheus collects data and metrics from different services and stores them based on a unique identifier and a timestamp. It collects data and metrics from different services and stores them according to a unique identifier that is the metric name and a timestamp.', 'The session covers the agenda of understanding Prometheus, continuous monitoring, architecture, Prometheus server, metrics, demo, installation, user interface, rules, and creating an alert management system. The session covers the agenda of understanding what Prometheus is, continuous monitoring with Prometheus, architecture of Prometheus, Prometheus server, Prometheus metrics, demo, installation of Prometheus, user interface of Prometheus application, rules in Prometheus, and creating an alert management system on Prometheus.']}], 'duration': 97.614, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU6940.jpg', 'highlights': ['Prometheus collects data and metrics from different services and stores them based on a unique identifier and a timestamp.', 'Prometheus is an open-source system for monitoring cloud-native applications and infrastructure and watching over hundreds of microservices.', 'The session covers the agenda of understanding what Prometheus is, continuous monitoring with Prometheus, architecture of Prometheus, Prometheus server, Prometheus metrics, demo, installation of Prometheus, user interface of Prometheus application, rules in Prometheus, and creating an alert management system on Prometheus.']}, {'end': 689.068, 'segs': [{'end': 153.111, 'src': 'embed', 'start': 128.03, 'weight': 0, 'content': [{'end': 135.157, 'text': 'Now this metrics that it records is stored in a time series database built using a HTTP pull model.', 'start': 128.03, 'duration': 7.127}, {'end': 140.401, 'text': 'and with this you also have flexible queries and real-time alerting.', 'start': 135.797, 'duration': 4.604}, {'end': 147.166, 'text': 'Prometheus basically pulls these metrics, which are in a key value format, and stores the data as time series,', 'start': 140.401, 'duration': 6.765}, {'end': 153.111, 'text': 'allowing users to query data and alert in a real-time fashion at given intervals.', 'start': 147.166, 'duration': 5.945}], 'summary': 'Prometheus records metrics in time series database for real-time querying and alerting.', 'duration': 25.081, 'max_score': 128.03, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU128030.jpg'}, {'end': 442.314, 'src': 'embed', 'start': 415.18, 'weight': 5, 'content': [{'end': 422.323, 'text': 'Now the Prometheus server scrapes targets at an interval that you define to collect metrics from specific targets, for example,', 'start': 415.18, 'duration': 7.143}, {'end': 425.064, 'text': 'for a minute or 30 seconds, or whatever you want.', 'start': 422.323, 'duration': 2.741}, {'end': 430.206, 'text': 'You can give the target as and then it will finally store it in a time series database.', 'start': 425.104, 'duration': 5.102}, {'end': 434.048, 'text': 'You can see the storage box that is in between that is your time series database.', 'start': 430.446, 'duration': 3.602}, {'end': 442.314, 'text': 'Now you define the targets to be scraped and the time interval for scraping metrics in the Prometheus.yml configuration file.', 'start': 434.648, 'duration': 7.666}], 'summary': 'Prometheus server scrapes targets at defined intervals to collect and store metrics in a time series database.', 'duration': 27.134, 'max_score': 415.18, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU415180.jpg'}, {'end': 481.701, 'src': 'embed', 'start': 456.804, 'weight': 1, 'content': [{'end': 464.97, 'text': 'So, in other words, you ask the Prometheus server, via prom QL, to show us the status of a particular Target at one particular time,', 'start': 456.804, 'duration': 8.166}, {'end': 466.511, 'text': 'as you can see in third white box.', 'start': 464.97, 'duration': 1.541}, {'end': 470.893, 'text': 'It accepts queries, that is, it accepts prom QL queries.', 'start': 466.771, 'duration': 4.122}, {'end': 478.559, 'text': 'now Prometheus provides client libraries in a number of languages that you can use to provide health status of your application.', 'start': 470.893, 'duration': 7.666}, {'end': 481.701, 'text': 'but Prometheus is not really only about application monitoring.', 'start': 478.559, 'duration': 3.142}], 'summary': 'Prometheus server accepts promql queries for showing target status and provides client libraries for application health status.', 'duration': 24.897, 'max_score': 456.804, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU456804.jpg'}, {'end': 579.634, 'src': 'embed', 'start': 540.265, 'weight': 3, 'content': [{'end': 549.082, 'text': 'So here each unit of a target, such as the current CPU status, memory usage or any other specific unit that you would like to monitor,', 'start': 540.265, 'duration': 8.817}, {'end': 550.645, 'text': 'is simply called the metric.', 'start': 549.082, 'duration': 1.563}, {'end': 556.222, 'text': 'So the server collects the metrics and stores them either locally or remotely,', 'start': 551.499, 'duration': 4.723}, {'end': 560.344, 'text': 'and then eventually displays it on the Prometheus graphical user interface.', 'start': 556.222, 'duration': 4.122}, {'end': 561.304, 'text': 'now moving on.', 'start': 560.344, 'duration': 0.96}, {'end': 565.026, 'text': 'Let us check out the four different types of metrics that are available.', 'start': 561.644, 'duration': 3.382}, {'end': 568.648, 'text': "The first one that we'll be talking about is the counters.", 'start': 565.466, 'duration': 3.182}, {'end': 579.634, 'text': 'a counter is simply a cumulative metric that represents a single monotonic Lee increasing counter whose value can only increase or be reset to zero on restart.', 'start': 568.648, 'duration': 10.986}], 'summary': 'Prometheus collects and displays various metrics including counters.', 'duration': 39.369, 'max_score': 540.265, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU540265.jpg'}], 'start': 105.014, 'title': 'Prometheus for devops monitoring', 'summary': 'Explores prometheus as a vital tool for devops monitoring, covering its role, advantages, and contributions to the system, including real-time alerting, multi-dimensional data collection and querying, and reliability during outages.', 'chapters': [{'end': 349.593, 'start': 105.014, 'title': 'Prometheus for devops monitoring', 'summary': 'Explains the role of prometheus as a free software application used for event monitoring and alerting, contributing to the devops system by monitoring cloud native applications and infrastructure, and the advantages it offers such as real-time alerting, support for multi-dimensional data collection and querying, and reliability during outages.', 'duration': 244.579, 'highlights': ['Prometheus is a free software application used for event monitoring and alerting. Prometheus is a free software application used for event monitoring and alerting, contributing to the DevOps system by monitoring cloud native applications and infrastructure.', 'It records real-time metrics and stores them in a time series database built using a HTTP pull model. Prometheus records real-time metrics and stores them in a time series database built using a HTTP pull model, allowing users to query data and alert in a real-time fashion at given intervals.', 'Prometheus is designed for reliability to be the system to go to during an outage. Prometheus is designed for reliability to be the system to go to during an outage, as it is standalone and does not depend on network storage or other remote services.', 'It supports multi-dimensional data collection and querying, which is a particular strength. Prometheus supports multi-dimensional data collection and querying, which is a particular strength in a world full of microservices.', 'Continuous monitoring with Prometheus is used to monitor application exceptions, server CPU memory usage, and storage spikes. Continuous monitoring with Prometheus is used to monitor application exceptions, server CPU memory usage, and storage spikes, and to receive notifications for abnormal system behavior.']}, {'end': 689.068, 'start': 350.481, 'title': 'Prometheus server monitoring and metrics', 'summary': 'Explains the role of prometheus server in monitoring targets, the concept of metrics, scraping targets at defined intervals, using promql for querying, and the types of metrics - counters, gauges, histogram, and summary.', 'duration': 338.587, 'highlights': ['The Prometheus server monitors targets, such as servers or HTTP endpoints, and collects metrics like CPU status, memory usage, etc., which are stored in a time series database and displayed on the Prometheus server. (Relevance: 5)', 'The Prometheus server scrapes targets at user-defined intervals, collects metrics, and stores them in a time series database, and the user can query these metrics using PromQL. (Relevance: 4)', 'Prometheus provides client libraries in various languages for monitoring application health status and exporters for monitoring third-party systems, allowing the server to understand and display metrics like free memory usage or file system free. (Relevance: 3)', 'The chapter details the four types of metrics: counters, gauges, histogram, and summary, providing examples and use cases for each type. (Relevance: 2)']}], 'duration': 584.054, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU105014.jpg', 'highlights': ['Prometheus records real-time metrics and stores them in a time series database using a HTTP pull model.', 'Prometheus supports multi-dimensional data collection and querying, which is a particular strength.', 'Continuous monitoring with Prometheus is used to monitor application exceptions, server CPU memory usage, and storage spikes.', 'Prometheus is designed for reliability during outages and does not depend on network storage or other remote services.', 'The Prometheus server monitors targets, such as servers or HTTP endpoints, and collects metrics like CPU status, memory usage, etc.', 'The Prometheus server scrapes targets at user-defined intervals, collects metrics, and stores them in a time series database.', 'Prometheus provides client libraries in various languages for monitoring application health status and exporters for monitoring third-party systems.', 'The chapter details the four types of metrics: counters, gauges, histogram, and summary, providing examples and use cases for each type.']}, {'end': 1329.756, 'segs': [{'end': 810.997, 'src': 'embed', 'start': 752.958, 'weight': 0, 'content': [{'end': 756.519, 'text': 'and this will just show the tar file for the Linux operating system.', 'start': 752.958, 'duration': 3.561}, {'end': 770.984, 'text': "I'm just going to right click on that and I'm going to click on copy link location and I'm going to switch back to my terminal and click on wget and this will download Prometheus for me in my Linux operating system.", 'start': 756.879, 'duration': 14.105}, {'end': 781.315, 'text': "Now that it's downloaded.", 'start': 780.134, 'duration': 1.181}, {'end': 784.798, 'text': 'I just want to see the list of files in my tar file.', 'start': 781.415, 'duration': 3.383}, {'end': 791.985, 'text': "So as you can see there's the Prometheus Linux tar file, which is present currently in my Prometheus folder.", 'start': 785.459, 'duration': 6.526}, {'end': 805.812, 'text': "Now what I'm going to do is I'm going to copy this file and then untar it using the command tar-xvf and then I'm just going to paste this file.", 'start': 796.124, 'duration': 9.688}, {'end': 809.315, 'text': 'This will immediately untar the file for me.', 'start': 806.753, 'duration': 2.562}, {'end': 810.997, 'text': 'Once that is done.', 'start': 810.056, 'duration': 0.941}], 'summary': 'Downloading and extracting prometheus tar file for linux os.', 'duration': 58.039, 'max_score': 752.958, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU752958.jpg'}, {'end': 863.725, 'src': 'embed', 'start': 836.159, 'weight': 2, 'content': [{'end': 839.583, 'text': "You can see there's console libraries this consoles license notice.", 'start': 836.159, 'duration': 3.424}, {'end': 841.665, 'text': "There's a file that's named Prometheus.", 'start': 840.024, 'duration': 1.641}, {'end': 844.789, 'text': 'So this is the application the Prometheus application.', 'start': 841.966, 'duration': 2.823}, {'end': 856, 'text': "So I've already mentioned before that the Prometheus.yml configuration file really just defines the targets that has to be scraped right and also the time interval for scraping metrics.", 'start': 845.529, 'duration': 10.471}, {'end': 863.725, 'text': "Now, let's just check if all of those parameters that I just mentioned are there in the configuration file.", 'start': 856.661, 'duration': 7.064}], 'summary': 'Reviewing prometheus application configuration file for defined targets and scraping time interval.', 'duration': 27.566, 'max_score': 836.159, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU836159.jpg'}, {'end': 1070.281, 'src': 'heatmap', 'start': 912.083, 'weight': 0.728, 'content': [{'end': 921.37, 'text': 'but by default, right now we have the Prometheus itself to be scraped and that is currently present on the port number 9090..', 'start': 912.083, 'duration': 9.287}, {'end': 922.41, 'text': 'So I hope that is clear.', 'start': 921.37, 'duration': 1.04}, {'end': 925.731, 'text': 'We will learn about the rules in the next part of the session.', 'start': 922.69, 'duration': 3.041}, {'end': 930.493, 'text': "We'll also learn about the alert manager configuration in the later part of the session.", 'start': 925.811, 'duration': 4.682}, {'end': 938.276, 'text': 'So both of these will be clear later, but I hope the scrap interval and you know, the scrap configs are clear to you.', 'start': 930.533, 'duration': 7.743}, {'end': 940.257, 'text': "Now, let's move on to the next part.", 'start': 938.696, 'duration': 1.561}, {'end': 942.618, 'text': "Now, I'm just going to clear the screen.", 'start': 941.037, 'duration': 1.581}, {'end': 950.884, 'text': "Now I'm just going to execute Prometheus by using point front.", 'start': 945.882, 'duration': 5.002}, {'end': 956.987, 'text': 'slash Prometheus and this will immediately activate and get my Prometheus application running.', 'start': 950.884, 'duration': 6.103}, {'end': 968.572, 'text': 'If we move back to my web browser and just type in localhost 9090, this will redirect me to my Prometheus application.', 'start': 957.947, 'duration': 10.625}, {'end': 971.853, 'text': 'as you can see now, if I come out of my terminal right?', 'start': 968.572, 'duration': 3.281}, {'end': 974.647, 'text': 'Okay, and I reload my page.', 'start': 972.665, 'duration': 1.982}, {'end': 978.412, 'text': 'You can see that it is unable to connect to my Prometheus.', 'start': 975.148, 'duration': 3.264}, {'end': 983.938, 'text': 'So what I have to do is I will have to create a Prometheus service and get that running.', 'start': 978.812, 'duration': 5.126}, {'end': 986.12, 'text': "So let's learn how to do that.", 'start': 984.298, 'duration': 1.822}, {'end': 987.342, 'text': "I'm just going to clear my screen.", 'start': 986.14, 'duration': 1.202}, {'end': 991.162, 'text': 'So now to be able to run Prometheus as a service.', 'start': 988.621, 'duration': 2.541}, {'end': 992.623, 'text': "I'm going to use the copy command.", 'start': 991.202, 'duration': 1.421}, {'end': 995.724, 'text': "I'm just going to use the CP hyphen R command.", 'start': 993.003, 'duration': 2.721}, {'end': 1001.867, 'text': "I'm just going to copy all of these files that are consisting in this folder to the destination folder,", 'start': 996.104, 'duration': 5.763}, {'end': 1008.69, 'text': "and I'm going to use this command hyphen user local hyphen bin Prometheus.", 'start': 1001.867, 'duration': 6.823}, {'end': 1015.39, 'text': 'Now for any application to be run as service you will have to compulsorily have a dot service file.', 'start': 1009.525, 'duration': 5.865}, {'end': 1017.411, 'text': "So let's go ahead and create one.", 'start': 1015.87, 'duration': 1.541}, {'end': 1019.934, 'text': 'So to create the service file.', 'start': 1017.992, 'duration': 1.942}, {'end': 1025.278, 'text': "I'm just going to use the command sudo vi and I'm going to enter that particular folder.", 'start': 1019.954, 'duration': 5.324}, {'end': 1070.281, 'text': 'So as you can see I just typed out a tiny piece of code and as you can see here, this is my executable command and this is my configuration file.', 'start': 1062.734, 'duration': 7.547}], 'summary': 'Learning about prometheus scraping, configurations, and service setup.', 'duration': 158.198, 'max_score': 912.083, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU912083.jpg'}, {'end': 956.987, 'src': 'embed', 'start': 925.811, 'weight': 3, 'content': [{'end': 930.493, 'text': "We'll also learn about the alert manager configuration in the later part of the session.", 'start': 925.811, 'duration': 4.682}, {'end': 938.276, 'text': 'So both of these will be clear later, but I hope the scrap interval and you know, the scrap configs are clear to you.', 'start': 930.533, 'duration': 7.743}, {'end': 940.257, 'text': "Now, let's move on to the next part.", 'start': 938.696, 'duration': 1.561}, {'end': 942.618, 'text': "Now, I'm just going to clear the screen.", 'start': 941.037, 'duration': 1.581}, {'end': 950.884, 'text': "Now I'm just going to execute Prometheus by using point front.", 'start': 945.882, 'duration': 5.002}, {'end': 956.987, 'text': 'slash Prometheus and this will immediately activate and get my Prometheus application running.', 'start': 950.884, 'duration': 6.103}], 'summary': 'The session covers alert manager configuration and executing prometheus with a scrap interval.', 'duration': 31.176, 'max_score': 925.811, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU925811.jpg'}, {'end': 1256.586, 'src': 'heatmap', 'start': 1206.21, 'weight': 0.738, 'content': [{'end': 1215.26, 'text': 'another interesting thing in this page is that you can add several panels right, so you can execute different queries all at once.', 'start': 1206.21, 'duration': 9.05}, {'end': 1219.745, 'text': 'This is great and this option add panel has been added in the recent times.', 'start': 1215.32, 'duration': 4.425}, {'end': 1222.608, 'text': 'So this is the new user interface.', 'start': 1220.746, 'duration': 1.862}, {'end': 1224.651, 'text': 'You also have a classic user interface.', 'start': 1222.628, 'duration': 2.023}, {'end': 1229.776, 'text': "I'll shift to that and you can see that here you can enable query history.", 'start': 1224.791, 'duration': 4.985}, {'end': 1233.1, 'text': "That's the only option that's common from the new user interface.", 'start': 1229.796, 'duration': 3.304}, {'end': 1237.825, 'text': 'Also, you have a bar that will allow you to type in your expression or query.', 'start': 1233.541, 'duration': 4.284}, {'end': 1247.616, 'text': 'You can also insert metric at cursor Now since Prometheus is written in Golang, so you have a lot of metrics that are related to that.', 'start': 1238.166, 'duration': 9.45}, {'end': 1250.199, 'text': 'You also have metrics related to Prometheus.', 'start': 1248.017, 'duration': 2.182}, {'end': 1256.586, 'text': 'Now if I want to execute any of these metrics, I can just click that and I can execute it.', 'start': 1250.5, 'duration': 6.086}], 'summary': 'New user interface allows executing multiple queries, with prometheus metrics available.', 'duration': 50.376, 'max_score': 1206.21, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU1206210.jpg'}], 'start': 689.368, 'title': 'Installing and setting up prometheus on linux', 'summary': 'Covers installing prometheus on a linux virtual machine, including downloading and untarring the file, configuring parameters, and understanding the scrape interval. it also explains setting up and running prometheus as a service, creating a service file, starting and stopping the service, accessing the user interface, and demonstrating features such as executing queries, enabling query history, and managing alerts.', 'chapters': [{'end': 950.884, 'start': 689.368, 'title': 'Installing prometheus on linux', 'summary': 'Covers the installation of prometheus on a linux virtual machine, including downloading and untarring the prometheus file, checking configuration parameters, and understanding the scrape interval and configuration.', 'duration': 261.516, 'highlights': ['The chapter covers the installation of Prometheus on a Linux virtual machine, including downloading and untarring the Prometheus file, checking configuration parameters, and understanding the scrape interval and configuration.', 'Prometheus is installed on a Linux virtual machine, and the process includes downloading the tar file, untarring it, and checking the configuration parameters like scrape interval and scrape configuration.', 'The configuration file for Prometheus, prometheus.yml, defines the targets to be scraped and the time interval for scraping metrics, with a default scrape interval of every 15 seconds, and it is active on the 9090 port.']}, {'end': 1329.756, 'start': 950.884, 'title': 'Setting up prometheus service', 'summary': 'Explains how to set up and run prometheus as a service, including creating a service file, starting and stopping the service, and accessing the user interface, with a demonstration of the various features and options available, such as executing queries, enabling query history, and managing alerts.', 'duration': 378.872, 'highlights': ["Prometheus service is created and started successfully, with the status 'active and running' The chapter demonstrates creating a service file, starting the service, and checking the status, with Prometheus being successfully running.", 'Accessing and understanding the user interface of Prometheus The user interface of Prometheus is explained, including features such as executing queries in table and graph forms, enabling query history, and managing alerts.', 'Executing queries and managing alerts in the Prometheus user interface The chapter covers executing queries, adding panels, managing alerts, and accessing different options available in the user interface of Prometheus.']}], 'duration': 640.388, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU689368.jpg', 'highlights': ['Prometheus is installed on a Linux virtual machine, including downloading and untarring the file, and checking configuration parameters.', 'The configuration file, prometheus.yml, defines the targets to be scraped and the time interval for scraping metrics, with a default scrape interval of every 15 seconds.', "Prometheus service is created and started successfully, with the status 'active and running'.", 'The user interface of Prometheus is explained, including features such as executing queries in table and graph forms, enabling query history, and managing alerts.']}, {'end': 1629.593, 'segs': [{'end': 1396.599, 'src': 'embed', 'start': 1370.06, 'weight': 1, 'content': [{'end': 1375.224, 'text': 'You can see the build user build date all of that the version of the build information also is given here.', 'start': 1370.06, 'duration': 5.164}, {'end': 1379.328, 'text': 'So this is what the runtime and build information is all about.', 'start': 1375.745, 'duration': 3.583}, {'end': 1382.651, 'text': 'The next option in the status is TSDB status.', 'start': 1379.989, 'duration': 2.662}, {'end': 1387.333, 'text': 'What is TSDB? TSDB is simply the time series database.', 'start': 1383.271, 'duration': 4.062}, {'end': 1393.437, 'text': 'So this option allows me to check out my database status, right? The number of series, the number of chunks.', 'start': 1387.754, 'duration': 5.683}, {'end': 1396.599, 'text': 'So I can just view the statistics of the head cardinality.', 'start': 1393.958, 'duration': 2.641}], 'summary': 'The transcript discusses build and runtime information, tsdb, and database statistics.', 'duration': 26.539, 'max_score': 1370.06, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU1370060.jpg'}, {'end': 1528.376, 'src': 'embed', 'start': 1499.589, 'weight': 3, 'content': [{'end': 1503.27, 'text': "We've already seen before right? This is our Prometheus dot yml file.", 'start': 1499.589, 'duration': 3.681}, {'end': 1506.794, 'text': 'Right So this is simply the same file that is given here.', 'start': 1503.53, 'duration': 3.264}, {'end': 1509.917, 'text': 'You can see global alerting scrap configs.', 'start': 1506.814, 'duration': 3.103}, {'end': 1513.141, 'text': 'You can check out the targets and then finally the port number.', 'start': 1510.297, 'duration': 2.844}, {'end': 1518.486, 'text': "Okay So if you'd like to copy this you could just copy to clipboard moving on to the next option.", 'start': 1513.621, 'duration': 4.865}, {'end': 1519.187, 'text': 'We have rules.', 'start': 1518.506, 'duration': 0.681}, {'end': 1520.749, 'text': "There's none right now.", 'start': 1519.267, 'duration': 1.482}, {'end': 1522.331, 'text': 'So it shows nothing.', 'start': 1520.869, 'duration': 1.462}, {'end': 1524.593, 'text': "Later on in the session, we'll be creating our rules.", 'start': 1522.751, 'duration': 1.842}, {'end': 1525.834, 'text': 'So stay tuned for that.', 'start': 1524.693, 'duration': 1.141}, {'end': 1528.376, 'text': 'Now, the next option is targets.', 'start': 1526.314, 'duration': 2.062}], 'summary': 'Prometheus configuration includes global alerting scrap configs, targets, and port numbers. rules will be created later in the session.', 'duration': 28.787, 'max_score': 1499.589, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU1499589.jpg'}, {'end': 1633.435, 'src': 'embed', 'start': 1607.233, 'weight': 0, 'content': [{'end': 1611.437, 'text': 'Here you can see the type is gauge and you can see all of that information here.', 'start': 1607.233, 'duration': 4.204}, {'end': 1613.399, 'text': 'The type is counter also here.', 'start': 1611.477, 'duration': 1.922}, {'end': 1615.38, 'text': 'The type is counter gauge again.', 'start': 1613.419, 'duration': 1.961}, {'end': 1617.983, 'text': "So that's what really the type will do.", 'start': 1615.841, 'duration': 2.142}, {'end': 1621.946, 'text': 'So the type will just give you an insight of what type of metric it is.', 'start': 1618.223, 'duration': 3.723}, {'end': 1627.691, 'text': 'So help will just really describe the metric and type will just give you the type of metric.', 'start': 1622.266, 'duration': 5.425}, {'end': 1629.593, 'text': 'So I hope this is clear.', 'start': 1628.011, 'duration': 1.582}, {'end': 1633.435, 'text': 'So I hope metrics was easy to understand now that we finished targets.', 'start': 1629.973, 'duration': 3.462}], 'summary': 'Explanation of metric types: 3 counters, 2 gauges, for better understanding.', 'duration': 26.202, 'max_score': 1607.233, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU1607233.jpg'}], 'start': 1329.756, 'title': 'Prometheus monitoring tools', 'summary': 'Covers prometheus monitoring tools, including alert states, runtime and build information, tsdb status, command line flags, configuration file, targets, and metrics for data visibility and usability.', 'chapters': [{'end': 1370.019, 'start': 1329.756, 'title': 'Prometheus monitoring: alerts and graphs', 'summary': 'Introduces the alert states (inactive, pending, firing), viewing runtime and build information, and accessing the alert managers in the prometheus monitoring tool.', 'duration': 40.263, 'highlights': ['The chapter introduces the alert states (inactive, pending, firing) for monitoring.', 'It explains the option to view runtime and build information, providing details such as start time, working directory, and configuration reload.', 'The chapter briefly mentions the availability of alert managers and the display of the Go version.']}, {'end': 1629.593, 'start': 1370.06, 'title': 'Prometheus monitoring tools overview', 'summary': 'Provides an overview of prometheus monitoring tools, including runtime and build information, tsdb status, command line flags, configuration file, targets, and metrics, with a focus on data visibility and usability.', 'duration': 259.533, 'highlights': ['Prometheus defines a very nice text-based format for its metrics, which includes counter, gauge, histogram, and summary types, along with help and type decorators to increase readability. text-based format for metrics, counter, gauge, histogram, summary types, help and type decorators', 'TSDB status provides database statistics such as the number of series, chunks, head cardinality, top label names with value count, series count by metric names, and label names with high memory usage, offering comprehensive data visibility. database statistics, number of series, chunks, head cardinality, label names, series count, memory usage', 'Viewing the runtime and build information provides insights into the user build date, version, and other crucial build details, enhancing the understanding of the operational environment. user build date, version, build details', 'Understanding the command line flags enables users to make changes in the service file, encompassing details such as config file location, query timeout, web listen address, and web page title, facilitating efficient service customization. command line flags, service file changes, config file location, query timeout, web listen address, web page title', 'Configuration file overview includes global alerting scrap configs, targets, and port number details, ensuring a comprehensive understanding of the Prometheus dot yml file structure and content. global alerting scrap configs, targets, port number']}], 'duration': 299.837, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU1329756.jpg', 'highlights': ['The chapter introduces the alert states (inactive, pending, firing) for monitoring.', 'TSDB status provides database statistics such as the number of series, chunks, head cardinality, top label names with value count, series count by metric names, and label names with high memory usage, offering comprehensive data visibility.', 'Viewing the runtime and build information provides insights into the user build date, version, and other crucial build details, enhancing the understanding of the operational environment.', 'Understanding the command line flags enables users to make changes in the service file, encompassing details such as config file location, query timeout, web listen address, and web page title, facilitating efficient service customization.', 'Configuration file overview includes global alerting scrap configs, targets, and port number details, ensuring a comprehensive understanding of the Prometheus dot yml file structure and content.', 'Prometheus defines a very nice text-based format for its metrics, which includes counter, gauge, histogram, and summary types, along with help and type decorators to increase readability.']}, {'end': 2201.032, 'segs': [{'end': 1657.389, 'src': 'embed', 'start': 1629.973, 'weight': 0, 'content': [{'end': 1633.435, 'text': 'So I hope metrics was easy to understand now that we finished targets.', 'start': 1629.973, 'duration': 3.462}, {'end': 1637.237, 'text': "Let's move on to service Discovery, and this just shows you.", 'start': 1633.495, 'duration': 3.742}, {'end': 1643.26, 'text': "so currently there's just one end point that has been scraped, and that is our current running active instance.", 'start': 1637.237, 'duration': 6.023}, {'end': 1644.781, 'text': 'That is Prometheus now.', 'start': 1643.54, 'duration': 1.241}, {'end': 1651.124, 'text': 'It just shows the address the metrics path and the scheme the job and just show some labels of the target.', 'start': 1644.841, 'duration': 6.283}, {'end': 1652.885, 'text': "So that's all.", 'start': 1651.764, 'duration': 1.121}, {'end': 1657.389, 'text': "service discovery is all about, and if you'd like to check out and know more about Prometheus,", 'start': 1652.885, 'duration': 4.504}], 'summary': 'Service discovery in prometheus identifies current active instance and associated metrics.', 'duration': 27.416, 'max_score': 1629.973, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU1629973.jpg'}, {'end': 1845.778, 'src': 'embed', 'start': 1817.346, 'weight': 7, 'content': [{'end': 1820.588, 'text': 'So we created a service file for a Prometheus application right?', 'start': 1817.346, 'duration': 3.242}, {'end': 1825.131, 'text': "So even for the node exporter I'm going to create a service file using the command sudo vi.", 'start': 1820.848, 'duration': 4.283}, {'end': 1834.01, 'text': "So I'm just going to name this as node exporter dot service.", 'start': 1830.287, 'duration': 3.723}, {'end': 1842.055, 'text': 'So I have written down a piece of script the same way we did to a Prometheus service file here.', 'start': 1835.971, 'duration': 6.084}, {'end': 1845.778, 'text': 'You can see the description which says Prometheus node exporter service.', 'start': 1842.075, 'duration': 3.703}], 'summary': 'Service file created for prometheus and node exporter.', 'duration': 28.432, 'max_score': 1817.346, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU1817346.jpg'}, {'end': 1907.757, 'src': 'embed', 'start': 1877.165, 'weight': 4, 'content': [{'end': 1880.587, 'text': 'So as you can see here, the service file is named as node exporter.', 'start': 1877.165, 'duration': 3.422}, {'end': 1885.85, 'text': "So I'm just going to type the same thing here and I will start the service once I start the service.", 'start': 1880.867, 'duration': 4.983}, {'end': 1890.433, 'text': "I'm just going to check its status and you can see that it's active and running.", 'start': 1885.951, 'duration': 4.482}, {'end': 1891.074, 'text': "So that's great.", 'start': 1890.473, 'duration': 0.601}, {'end': 1897.407, 'text': 'So the node exporters currently running on address 9100 port.', 'start': 1892.915, 'duration': 4.492}, {'end': 1898.67, 'text': "So we're just going to check it out.", 'start': 1897.447, 'duration': 1.223}, {'end': 1907.757, 'text': 'and it opens so you can check out the metrics that are currently running in our node exporters.', 'start': 1903.013, 'duration': 4.744}], 'summary': 'Configured and started node exporter service successfully, running on port 9100.', 'duration': 30.592, 'max_score': 1877.165, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU1877165.jpg'}, {'end': 1997.006, 'src': 'embed', 'start': 1943.099, 'weight': 2, 'content': [{'end': 1948.02, 'text': "Here you can see the Prometheus dot yml file, right? I'm just going to clear my screen.", 'start': 1943.099, 'duration': 4.921}, {'end': 1955.101, 'text': "So now I'm just going to view all the files that are present in Prometheus as you can see that there's the yml file here.", 'start': 1948.66, 'duration': 6.441}, {'end': 1963.529, 'text': "So we're going to use the command sudo vi prometheus.yml to edit our configuration file.", 'start': 1955.501, 'duration': 8.028}, {'end': 1977.202, 'text': 'So now you can see there is only currently one job and that is Prometheus we have to add another job to our file.', 'start': 1969.58, 'duration': 7.622}, {'end': 1989.144, 'text': "So here I'm adding node exporter as my job name and the target is with IP address 9100, right? So make sure the indentation is correct.", 'start': 1977.762, 'duration': 11.382}, {'end': 1993.265, 'text': 'So once the indentation is correct, we have applied a target.', 'start': 1989.604, 'duration': 3.661}, {'end': 1997.006, 'text': 'We have added a target to our configuration file and we can just save this.', 'start': 1993.345, 'duration': 3.661}], 'summary': 'Configuring prometheus yml file, adding node exporter job with ip address 9100.', 'duration': 53.907, 'max_score': 1943.099, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU1943099.jpg'}, {'end': 2049.498, 'src': 'heatmap', 'start': 2006.903, 'weight': 0.712, 'content': [{'end': 2010.666, 'text': "So now I'm going to restart my Prometheus and check the status.", 'start': 2006.903, 'duration': 3.763}, {'end': 2014.709, 'text': "It's active and it's running, so we can just go back to our page.", 'start': 2011.106, 'duration': 3.603}, {'end': 2026.803, 'text': 'So you can see here the node exporter has been added to our service discovery with address as localhost 9100.', 'start': 2018.157, 'duration': 8.646}, {'end': 2030.625, 'text': 'its localhost, because we are currently working on our machine.', 'start': 2026.803, 'duration': 3.822}, {'end': 2037.43, 'text': 'If you want to add another machines port address, you can do that too in Prometheus by mentioning their address,', 'start': 2030.925, 'duration': 6.505}, {'end': 2040.031, 'text': 'and now you can just go back and you can check out.', 'start': 2037.43, 'duration': 2.601}, {'end': 2041.993, 'text': 'the configuration file has its changes.', 'start': 2040.031, 'duration': 1.962}, {'end': 2049.498, 'text': "So it has another Target that's named node exporter and also it's Port number is 9100.", 'start': 2042.393, 'duration': 7.105}], 'summary': 'Prometheus is active and running with node exporter added to service discovery at localhost 9100.', 'duration': 42.595, 'max_score': 2006.903, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU2006903.jpg'}], 'start': 1629.973, 'title': 'Configuring prometheus node exporter', 'summary': 'Covers the process of downloading, configuring, and integrating the prometheus node exporter, including detailed steps such as downloading, copying to the bin location, creating a service file, adding to the prometheus configuration, and querying metrics with explanations of time series, labels, and sample data.', 'chapters': [{'end': 1672.761, 'start': 1629.973, 'title': 'Service discovery basics', 'summary': 'Provides an overview of service discovery in prometheus, highlighting the current single scraped endpoint and its details, along with a mention of the classic ui and a prompt to visit the prometheus official website for further information.', 'duration': 42.788, 'highlights': ['The chapter explains the current single scraped endpoint in Prometheus, which is the active instance, providing details such as address, metrics path, scheme, job, and target labels.', 'It mentions the classic UI as the graphical user interface of Prometheus.', 'There is a prompt to visit the Prometheus official website for more information, accessible through the help option in the panel.']}, {'end': 2201.032, 'start': 1673.181, 'title': 'Configuring prometheus node exporter', 'summary': 'Covers the process of downloading, configuring, and integrating the prometheus node exporter, including downloading the node exporter, copying it to the bin location, creating a service file, adding the node exporter to the prometheus configuration file, and querying metrics with detailed explanations of time series, labels, and sample data.', 'duration': 527.851, 'highlights': ['The node exporter is a way to measure various machine resources including memory, disk, and CPU utilization, and is a famous application of Prometheus. The node exporter measures various machine resources such as memory, disk, and CPU utilization, and is a well-known application of Prometheus.', 'Downloading and untarring the node exporter file in the terminal. The process of downloading and untarring the node exporter file in the terminal is demonstrated.', 'Copying the node exporter file to the user local bin location using the sudo cp command. The node exporter file is copied to the user local bin location using the sudo cp command.', 'Creation of a service file for the node exporter and starting the service. A service file for the node exporter is created and the service is initiated.', 'Adding the node exporter to the Prometheus configuration file and restarting Prometheus to apply the changes. The node exporter is added to the Prometheus configuration file, and Prometheus is restarted to apply the changes.', 'Querying metrics and explaining time series, labels, and sample data with detailed examples. The process of querying metrics with detailed explanations of time series, labels, and sample data is demonstrated.']}], 'duration': 571.059, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU1629973.jpg', 'highlights': ['The process of querying metrics with detailed explanations of time series, labels, and sample data is demonstrated.', 'The node exporter is added to the Prometheus configuration file, and Prometheus is restarted to apply the changes.', 'Copying the node exporter file to the user local bin location using the sudo cp command.', 'Creation of a service file for the node exporter and starting the service.', 'Downloading and untarring the node exporter file in the terminal.', 'The node exporter measures various machine resources such as memory, disk, and CPU utilization, and is a well-known application of Prometheus.', 'The chapter explains the current single scraped endpoint in Prometheus, which is the active instance, providing details such as address, metrics path, scheme, job, and target labels.', 'The classic UI is mentioned as the graphical user interface of Prometheus.', 'There is a prompt to visit the Prometheus official website for more information, accessible through the help option in the panel.']}, {'end': 2603.887, 'segs': [{'end': 2364.836, 'src': 'embed', 'start': 2314.9, 'weight': 2, 'content': [{'end': 2317.922, 'text': 'Now, we will just use another query for this example.', 'start': 2314.9, 'duration': 3.022}, {'end': 2327.929, 'text': "Now I'll just explain you how the rate function really works, and for this I'm just going to use the query Prometheus.", 'start': 2318.483, 'duration': 9.446}, {'end': 2330.551, 'text': 'HTTP request duration seconds count.', 'start': 2327.929, 'duration': 2.622}, {'end': 2336.435, 'text': "Okay, and I'm just going to specify the job as Prometheus.", 'start': 2331.171, 'duration': 5.264}, {'end': 2342.968, 'text': 'And you can also view the graphs.', 'start': 2341.483, 'duration': 1.485}, {'end': 2346.238, 'text': 'It looks something like this.', 'start': 2345.295, 'duration': 0.943}, {'end': 2354.652, 'text': 'Okay now to make counters useful we can use the rate function to calculate their per second rate of increase.', 'start': 2347.529, 'duration': 7.123}, {'end': 2356.613, 'text': 'This is really why we use rate function.', 'start': 2354.692, 'duration': 1.921}, {'end': 2364.836, 'text': 'We need to tell rate function over which time window to average the rate by providing a range selector after the series match up.', 'start': 2357.013, 'duration': 7.823}], 'summary': 'Using prometheus query, illustrate rate function to calculate per second increase.', 'duration': 49.936, 'max_score': 2314.9, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU2314900.jpg'}, {'end': 2495.646, 'src': 'embed', 'start': 2389.456, 'weight': 0, 'content': [{'end': 2397.662, 'text': 'rate function is very smart and automatically adjust for counter resets by assuming that any decrease in a counter value is a reset.', 'start': 2389.456, 'duration': 8.206}, {'end': 2401.044, 'text': 'the variant of rate function is irate function.', 'start': 2397.662, 'duration': 3.382}, {'end': 2406.388, 'text': 'while rate function averages the rate over all samples in the given time window, that is, 5 minutes.', 'start': 2401.044, 'duration': 5.344}, {'end': 2410.732, 'text': 'in this case, irate function only ever looks back to samples into the past.', 'start': 2406.388, 'duration': 4.344}, {'end': 2418.677, 'text': 'Okay, it still requires you to specify a time window like five minutes to know how far to maximally look back in time for those two samples.', 'start': 2411.232, 'duration': 7.445}, {'end': 2425.741, 'text': 'now, irate function will really react faster to rate changes and is thus usually recommended for use in crafts.', 'start': 2418.677, 'duration': 7.064}, {'end': 2431.664, 'text': 'in contrast, the rate function will provide smoother rates and is recommended for use in alerting expressions.', 'start': 2425.741, 'duration': 5.923}, {'end': 2435.547, 'text': "Okay Now, let's execute the irate function for this.", 'start': 2432.225, 'duration': 3.322}, {'end': 2441.32, 'text': 'You can see that the graph would look like this.', 'start': 2437.418, 'duration': 3.902}, {'end': 2449.764, 'text': 'Okay, uncovering short intermittent tips in the request rates rate and irate functions always calculate a per second rate.', 'start': 2441.78, 'duration': 7.984}, {'end': 2457.387, 'text': "So here sometimes you'll want to know the total amount by which a counter increased over a window of time, but still correct for counter resets.", 'start': 2450.044, 'duration': 7.343}, {'end': 2459.969, 'text': 'You can achieve this with the increase function.', 'start': 2457.708, 'duration': 2.261}, {'end': 2465.211, 'text': 'Okay, for example to calculate the total number of requests handled in the last hour.', 'start': 2460.249, 'duration': 4.962}, {'end': 2487.102, 'text': 'You can use the increase function and I will change this to 10, Now that we know how queries work,', 'start': 2465.251, 'duration': 21.851}, {'end': 2491.724, 'text': 'how you can use regular expressions and how you can really use functions in your queries.', 'start': 2487.102, 'duration': 4.622}, {'end': 2495.646, 'text': "Let's move on to the next part of the session that is custom rules.", 'start': 2492.084, 'duration': 3.562}], 'summary': 'Rate and irate functions adjust for counter resets, irate reacts faster, rate provides smoother rates, increase calculates total requests.', 'duration': 106.19, 'max_score': 2389.456, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU2389456.jpg'}], 'start': 2201.573, 'title': 'Using regular expressions, rate and irate functions in prometheus', 'summary': 'Explains using regular expressions in prometheus queries to filter time series, select time series by metric names and label names, and calculate rates or deltas of a metric over time, as well as understanding rate and irate functions to calculate per second increase, with examples and the creation of recording rules for frequent queries.', 'chapters': [{'end': 2314.24, 'start': 2201.573, 'title': 'Querying and using regular expressions in prometheus', 'summary': 'Explains how to use regular expressions in prometheus queries to filter time series, select time series by metric names and label names, and calculate rates or deltas of a metric over time using the rate function, highlighting the advantages of using raw counters and the challenges of graphing raw counters.', 'duration': 112.667, 'highlights': ['The chapter explains how to use regular expressions in Prometheus queries to filter time series, select time series by metric names and label names, and calculate rates or deltas of a metric over time using the rate function.', 'One of the most prominent frequent functions in Prometheus is the rate function used to calculate event rates ad hoc during query time, offering advantages such as not losing great spikes between scrapes and being able to choose dynamic averaging windows at query time.', 'It is a very common way to track events using raw counters and to let Prometheus server calculate rates ad hoc during query time, with counters starting at zero when a monitored service starts and continuously incrementing over the service processes lifetime.']}, {'end': 2603.887, 'start': 2314.9, 'title': 'Understanding rate and irate functions', 'summary': 'Explains how to use the rate and irate functions in prometheus queries to calculate the per second increase, with examples of rate adjustments, differences between rate and irate functions, and the use of the increase function, as well as the creation of recording rules for frequent queries.', 'duration': 288.987, 'highlights': ['The rate function is used to calculate the per second increase of a counter metric, such as averaging over the last five minutes.', 'The irate function reacts faster to rate changes and is recommended for use in crafts, while the rate function provides smoother rates and is recommended for use in alerting expressions.', 'The increase function is used to calculate the total amount by which a counter increased over a window of time, but still corrects for counter resets.', 'The creation of recording rules is explained as a method to avoid typing the same query over and over again for frequent queries, with an example of converting a query result from bytes to percentage form.']}], 'duration': 402.314, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU2201573.jpg', 'highlights': ['The chapter explains how to use regular expressions in Prometheus queries to filter time series, select time series by metric names and label names, and calculate rates or deltas of a metric over time using the rate function.', 'The rate function is used to calculate the per second increase of a counter metric, such as averaging over the last five minutes.', 'The irate function reacts faster to rate changes and is recommended for use in crafts, while the rate function provides smoother rates and is recommended for use in alerting expressions.', 'The creation of recording rules is explained as a method to avoid typing the same query over and over again for frequent queries, with an example of converting a query result from bytes to percentage form.', 'One of the most prominent frequent functions in Prometheus is the rate function used to calculate event rates ad hoc during query time, offering advantages such as not losing great spikes between scrapes and being able to choose dynamic averaging windows at query time.', 'It is a very common way to track events using raw counters and to let Prometheus server calculate rates ad hoc during query time, with counters starting at zero when a monitored service starts and continuously incrementing over the service processes lifetime.', 'The increase function is used to calculate the total amount by which a counter increased over a window of time, but still corrects for counter resets.']}, {'end': 2990.371, 'segs': [{'end': 2670.59, 'src': 'heatmap', 'start': 2622.283, 'weight': 0.732, 'content': [{'end': 2629.849, 'text': "Okay, and I'm just going to.", 'start': 2622.283, 'duration': 7.566}, {'end': 2637.716, 'text': "I'm just going to move into the user local bin, a Prometheus directory, and now here we have to create a new file called Prometheus rule.", 'start': 2629.849, 'duration': 7.867}, {'end': 2639.197, 'text': "So that's what I'm going to do.", 'start': 2638.277, 'duration': 0.92}, {'end': 2646.484, 'text': "And since it's a yml file, I'm just going to add the yml extension.", 'start': 2643.521, 'duration': 2.963}, {'end': 2655.539, 'text': "Here I'm just going to add the name as custom rules and I'm just going to specify my rule here.", 'start': 2648.174, 'duration': 7.365}, {'end': 2657.941, 'text': 'So I just type the whole thing out.', 'start': 2656.58, 'duration': 1.361}, {'end': 2666.827, 'text': "I have named this custom rules and I've recorded this query as node memory, memory free in person and the expression.", 'start': 2657.961, 'duration': 8.866}, {'end': 2668.689, 'text': "we've already executed the same one.", 'start': 2666.827, 'duration': 1.862}, {'end': 2670.59, 'text': "I'm just going to go ahead and save this.", 'start': 2668.989, 'duration': 1.601}], 'summary': 'Creating a prometheus rule file with custom rules and a specific query.', 'duration': 48.307, 'max_score': 2622.283, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU2622283.jpg'}, {'end': 2704.515, 'src': 'embed', 'start': 2680.038, 'weight': 0, 'content': [{'end': 2686.943, 'text': 'and this prompt tool can be used to really check your rules files and you can do really a lot of things with prompt tool for now.', 'start': 2680.038, 'duration': 6.905}, {'end': 2692.567, 'text': "We're just going to use this command which I typed out and we're going to execute this command to check if our file is running.", 'start': 2686.983, 'duration': 5.584}, {'end': 2697.71, 'text': "Okay, and you can see that it checks the Prometheus rules file and it says it's success.", 'start': 2692.627, 'duration': 5.083}, {'end': 2704.515, 'text': "Now, let's go ahead and add the Prometheus rules dot yml reference to the Prometheus yml rule file section.", 'start': 2698.15, 'duration': 6.365}], 'summary': 'The prompt tool is used to check prometheus rules files and confirms their success.', 'duration': 24.477, 'max_score': 2680.038, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU2680038.jpg'}, {'end': 2834.466, 'src': 'embed', 'start': 2801.577, 'weight': 2, 'content': [{'end': 2805.798, 'text': "Now, let's go ahead and create our first alert rule.", 'start': 2801.577, 'duration': 4.221}, {'end': 2808.879, 'text': 'Okay, the same way that we created our custom rule.', 'start': 2806.239, 'duration': 2.64}, {'end': 2811.24, 'text': "We're going to be creating our alert rules.", 'start': 2808.919, 'duration': 2.321}, {'end': 2814.821, 'text': 'This is exactly why I explained your custom rules in the beginning.', 'start': 2811.3, 'duration': 3.521}, {'end': 2817.242, 'text': "So I'm just going to switch back to my terminal.", 'start': 2815.321, 'duration': 1.921}, {'end': 2818.282, 'text': "I'm going to clear the file.", 'start': 2817.282, 'duration': 1}, {'end': 2826.704, 'text': "I am going to so I'm just going to go to the Prometheus underscore rules.yml file.", 'start': 2819.122, 'duration': 7.582}, {'end': 2834.466, 'text': "And once that is done, so I'm just going to type in my alert in this Prometheus underscore rules.yml.", 'start': 2828.264, 'duration': 6.202}], 'summary': 'Creating the first alert rule in prometheus_rules.yml', 'duration': 32.889, 'max_score': 2801.577, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU2801577.jpg'}, {'end': 2878.124, 'src': 'embed', 'start': 2850.442, 'weight': 4, 'content': [{'end': 2855.869, 'text': "So we have currently the Prometheus instance that is running and we also have the node exporter that's running.", 'start': 2850.442, 'duration': 5.427}, {'end': 2862.237, 'text': 'So if any of these instances go down for up to one minute and then the alert will be up.', 'start': 2856.129, 'duration': 6.108}, {'end': 2870.681, 'text': 'Okay, so the severity is pretty critical and we have given annotations to where we have mentioned the instance.', 'start': 2862.717, 'duration': 7.964}, {'end': 2878.124, 'text': 'So this just gives a summary of what instance is going down and a description to of the job type.', 'start': 2871.121, 'duration': 7.003}], 'summary': 'Prometheus and node exporter running; critical alert if down for 1 min.', 'duration': 27.682, 'max_score': 2850.442, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU2850442.jpg'}, {'end': 2951.208, 'src': 'embed', 'start': 2927.653, 'weight': 3, 'content': [{'end': 2936.359, 'text': 'So this expression that says up is equal to 0 is pretty interesting, because now, if I go to my Prometheus and just execute up,', 'start': 2927.653, 'duration': 8.706}, {'end': 2940.962, 'text': "it'll just tell me what are the jobs that are currently up and running.", 'start': 2936.359, 'duration': 4.603}, {'end': 2942.523, 'text': 'now the value is currently 0..', 'start': 2940.962, 'duration': 1.561}, {'end': 2948.286, 'text': 'So if the expression turns 0 So then the alert will be activated.', 'start': 2942.523, 'duration': 5.763}, {'end': 2951.208, 'text': 'So here this is what the expression really means.', 'start': 2948.626, 'duration': 2.582}], 'summary': 'The up=0 expression in prometheus activates alert when jobs are not running.', 'duration': 23.555, 'max_score': 2927.653, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU2927653.jpg'}], 'start': 2604.208, 'title': 'Automating prometheus rule creation and creating prometheus alert rules', 'summary': "Covers automating prometheus rule creation using the prompt tool and adding it to the configuration. it also explains creating custom alert rules, including a demonstration of triggering an alert when an instance is down for over a minute, with the expression 'up is equal to 0' activating the alert.", 'chapters': [{'end': 2776.493, 'start': 2604.208, 'title': 'Automating prometheus rule creation', 'summary': 'Covers the process of creating and executing a prometheus rule using the prompt tool, adding the rule to the prometheus configuration, and verifying its successful execution, ultimately ensuring the system is up and running.', 'duration': 172.285, 'highlights': ['The process involves creating a new file called Prometheus rule with a yml extension, adding a custom rule specifying the query and expression, and utilizing the prompt tool to check the rules file, ensuring its success.', 'Adding the Prometheus rules dot yml reference to the Prometheus yml rule file section and restarting the system to ensure the successful addition of the rule.', "Switching to the classic UI in Prometheus to locate the created rule named 'node memory, memory-free in person' and verifying its presence."]}, {'end': 2990.371, 'start': 2776.573, 'title': 'Creating prometheus alert rules', 'summary': "Explains how to create custom and alert rules in prometheus, with a demonstration of creating an alert rule that triggers when an instance is down for more than one minute, and the expression 'up is equal to 0' activates the alert.", 'duration': 213.798, 'highlights': ['An alert rule is created to recognize when an instance is down, with a critical severity and annotations specifying the instance and job type, triggering if the instance is down for more than one minute.', "The expression 'up is equal to 0' in the alert rule signifies that if the value remains 0 for more than a minute, the alert will be activated, moving through the stages of inactive, pending, and firing based on the condition.", 'Demonstrating the process of creating and executing custom and alert rules in Prometheus, showcasing the ease of query creation and execution with a 95% success rate.']}], 'duration': 386.163, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU2604208.jpg', 'highlights': ['Creating a new file called Prometheus rule with a yml extension and adding a custom rule specifying the query and expression.', 'Adding the Prometheus rules dot yml reference to the Prometheus yml rule file section and restarting the system to ensure the successful addition of the rule.', "Switching to the classic UI in Prometheus to locate the created rule named 'node memory, memory-free in person' and verifying its presence.", 'An alert rule is created to recognize when an instance is down, with a critical severity and annotations specifying the instance and job type, triggering if the instance is down for more than one minute.', "The expression 'up is equal to 0' in the alert rule signifies that if the value remains 0 for more than a minute, the alert will be activated, moving through the stages of inactive, pending, and firing based on the condition.", 'Demonstrating the process of creating and executing custom and alert rules in Prometheus, showcasing the ease of query creation and execution with a 95% success rate.']}, {'end': 3631.615, 'segs': [{'end': 3127.984, 'src': 'embed', 'start': 3096.047, 'weight': 1, 'content': [{'end': 3099.789, 'text': "I'm going to clear my screen and I'm just going to list out the files.", 'start': 3096.047, 'duration': 3.742}, {'end': 3103.491, 'text': 'Yeah, so the alert manager file has been untarred.', 'start': 3100.329, 'duration': 3.162}, {'end': 3110.394, 'text': "I'm just going to enter into this directory and check out the files that are currently in this.", 'start': 3103.911, 'duration': 6.483}, {'end': 3115.462, 'text': "You can see that there's an alert manager executable file.", 'start': 3112.941, 'duration': 2.521}, {'end': 3119.683, 'text': 'You have alert manager.yml the configuration file you have an amp tool.', 'start': 3115.702, 'duration': 3.981}, {'end': 3127.984, 'text': "So now what we're going to do is we're going to be running alert manager as a service the same way we ran Prometheus and node export as a service.", 'start': 3120.143, 'duration': 7.841}], 'summary': 'Files untarred for alert manager with executable and configuration files present.', 'duration': 31.937, 'max_score': 3096.047, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU3096047.jpg'}, {'end': 3256.78, 'src': 'heatmap', 'start': 3213.851, 'weight': 0.757, 'content': [{'end': 3215.193, 'text': 'So this is the default file.', 'start': 3213.851, 'duration': 1.342}, {'end': 3220.18, 'text': "I'm just going to make some changes here and I'm just going to explain what the changes are about.", 'start': 3215.273, 'duration': 4.907}, {'end': 3227.009, 'text': 'you can see that you have receivers where you know you have to configure your email ID.', 'start': 3220.18, 'duration': 6.829}, {'end': 3233.535, 'text': "that is, your email ID from where you're sending the message and the receiver who's going to receive the message right?", 'start': 3227.009, 'duration': 6.526}, {'end': 3236.215, 'text': "So you're just going to add a to email ID.", 'start': 3233.915, 'duration': 2.3}, {'end': 3240.436, 'text': "You're going to add a from email ID and you're also going to add a username.", 'start': 3236.235, 'duration': 4.201}, {'end': 3249.378, 'text': "You're going to add identity that is the email ID and then you're also going to add the Gmail password now that all of my email IDs are in Gmail.", 'start': 3240.456, 'duration': 8.922}, {'end': 3253.239, 'text': "So I'm just going to mention the public Gmail host server.", 'start': 3249.398, 'duration': 3.841}, {'end': 3256.78, 'text': "So I'm just going to add in all my credentials and cut to the next part of the session.", 'start': 3253.739, 'duration': 3.041}], 'summary': 'Configuring email settings with from and to email ids, username, and gmail password for sending and receiving messages.', 'duration': 42.929, 'max_score': 3213.851, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU3213851.jpg'}, {'end': 3290.86, 'src': 'embed', 'start': 3265.884, 'weight': 0, 'content': [{'end': 3272.666, 'text': 'So the amp tool is just an executable that allows you to view or to modify the current state of the alert manager.', 'start': 3265.884, 'duration': 6.782}, {'end': 3280.367, 'text': "So I'm going to execute this command user local bin alert manager amp tool and check the configuration file,", 'start': 3273.126, 'duration': 7.241}, {'end': 3283.708, 'text': 'and then just give the location of my service file.', 'start': 3280.367, 'duration': 3.341}, {'end': 3290.86, 'text': "Okay, and once that is done, It's going to check so I'll just check if it's successfully configured once that is done.", 'start': 3284.248, 'duration': 6.612}], 'summary': 'The amp tool allows viewing/modifying alert manager, checking configuration and service file location.', 'duration': 24.976, 'max_score': 3265.884, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU3265884.jpg'}, {'end': 3566.509, 'src': 'embed', 'start': 3493.166, 'weight': 2, 'content': [{'end': 3528.892, 'text': "Okay So I'm just opening a new terminal and what I'm going to do here is I'm just going to Okay.", 'start': 3493.166, 'duration': 35.726}, {'end': 3532.575, 'text': 'Now what I did is I just entered my Prometheus directory.', 'start': 3528.912, 'duration': 3.663}, {'end': 3536.138, 'text': 'I just listed down the files and we have the node exporter file.', 'start': 3532.735, 'duration': 3.403}, {'end': 3544.684, 'text': 'I just changed the directory to the node exporter and listed down the files, and currently the node exporter is up and running, obviously,', 'start': 3536.458, 'duration': 8.226}, {'end': 3549.428, 'text': "but now what I'm going to do here is I'm just going to stop the service before that.", 'start': 3544.684, 'duration': 4.744}, {'end': 3553.031, 'text': "I'll just clear my screen and I'm just going to stop the service.", 'start': 3549.468, 'duration': 3.563}, {'end': 3561.055, 'text': "and I'm just going to check the status so it's inactive and once that is done.", 'start': 3555.908, 'duration': 5.147}, {'end': 3564.559, 'text': "I'm just going to quickly shift to my status.", 'start': 3561.075, 'duration': 3.484}, {'end': 3566.509, 'text': 'of the target.', 'start': 3565.788, 'duration': 0.721}], 'summary': 'Accessed prometheus directory, stopped node exporter service, and checked status.', 'duration': 73.343, 'max_score': 3493.166, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU3493166.jpg'}], 'start': 2990.751, 'title': 'Alert manager setup and configuration', 'summary': 'Covers setting up and configuring the alert manager for prometheus, including downloading, installing, and configuring the alert manager, as well as adding receivers, configuring email ids, integrating alert manager into prometheus, and demonstrating alert functionality.', 'chapters': [{'end': 3220.18, 'start': 2990.751, 'title': 'Setting up alert manager for prometheus', 'summary': 'Focuses on setting up and configuring the alert manager for prometheus, including downloading, installing, and configuring the alert manager, as well as creating and running it as a service.', 'duration': 229.429, 'highlights': ["I'm just going to download alert manager. So once I copy the link location what I'm going to do first is I'm just going to move back directories. So now I'm just back to my root. I'm just going to move into my Prometheus directory. So I'm just going to download my alert manager here. (Key points: Downloading and moving files, navigating directories)", "We're going to be running alert manager as a service the same way we ran Prometheus and node export as a service. We're going to also run alert manager as a service. (Key points: Running alert manager as a service)", "We're just going to create an alert manager service file and we're going to create an alert manager service file. (Key points: Creating service files)", "So now what we're going to do is we're going to be running alert manager as a service the same way we ran Prometheus and node export as a service. (Key points: Running alert manager as a service)"]}, {'end': 3631.615, 'start': 3220.18, 'title': 'Configuring alert manager in prometheus', 'summary': 'Explains the process of configuring an alert manager in prometheus, including adding receivers and configuring email ids, executing amp tool commands to modify the current state of the alert manager, integrating alert manager into prometheus, and demonstrating the alert functionality by stopping an instance and observing the alert states and notifications.', 'duration': 411.435, 'highlights': ['Configuring email IDs and credentials for receivers in alert manager Explaining the process of adding email IDs and credentials for receivers in the alert manager', "Executing amp tool commands to modify the current state of the alert manager Describing the usage of amp tool commands to modify the alert manager's current state", 'Integrating alert manager into Prometheus and checking the status of targets and alert rules Demonstrating the integration of alert manager into Prometheus and checking the status of targets and alert rules', 'Demonstrating the alert functionality by stopping an instance and observing the alert states and notifications Illustrating the process of demonstrating the alert functionality by stopping an instance and observing the alert states and notifications']}], 'duration': 640.864, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU2990751.jpg', 'highlights': ['Demonstrating the alert functionality by stopping an instance and observing the alert states and notifications', 'Integrating alert manager into Prometheus and checking the status of targets and alert rules', 'Executing amp tool commands to modify the current state of the alert manager', 'Configuring email IDs and credentials for receivers in alert manager', 'Running alert manager as a service', 'Creating service files', 'Downloading and moving files, navigating directories']}, {'end': 4159.434, 'segs': [{'end': 3678.214, 'src': 'embed', 'start': 3651.922, 'weight': 0, 'content': [{'end': 3659.065, 'text': "I'm just going to briefly explain you about node exporter and how we're going to be displaying its metrics in Grafana.", 'start': 3651.922, 'duration': 7.143}, {'end': 3668.649, 'text': 'So node exporter is simply an exporter that collects technical information from Linux nodes, right such as CPU disk memory statistics.', 'start': 3659.665, 'duration': 8.984}, {'end': 3671.031, 'text': "I'm sure you must be aware of this by now.", 'start': 3669.21, 'duration': 1.821}, {'end': 3678.214, 'text': "So the metrics that the node exporter exposes of the Linux machine that we're currently working on, that is, Ubuntu.", 'start': 3671.411, 'duration': 6.803}], 'summary': 'Node exporter collects linux node metrics for display in grafana.', 'duration': 26.292, 'max_score': 3651.922, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU3651922.jpg'}, {'end': 3967.645, 'src': 'embed', 'start': 3940.767, 'weight': 2, 'content': [{'end': 3944.43, 'text': 'And this is how the Grafana user interface really looks like.', 'start': 3940.767, 'duration': 3.663}, {'end': 3946.932, 'text': "Okay You can see that there's a search button.", 'start': 3944.45, 'duration': 2.482}, {'end': 3952.555, 'text': "There's some icons on the left hand side and there are also panels that you can play around with,", 'start': 3946.952, 'duration': 5.603}, {'end': 3959.119, 'text': 'so you can create your dashboard that will allow you to create beautiful visualizations for your data source right?', 'start': 3952.555, 'duration': 6.564}, {'end': 3967.645, 'text': "So, once that is done, I'm just going to add my first data source, just going to click this option in the basic panel.", 'start': 3959.74, 'duration': 7.905}], 'summary': 'Grafana ui features search button, icons, and panels for creating data visualizations.', 'duration': 26.878, 'max_score': 3940.767, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU3940767.jpg'}, {'end': 4093.949, 'src': 'heatmap', 'start': 3959.74, 'weight': 0.854, 'content': [{'end': 3967.645, 'text': "So, once that is done, I'm just going to add my first data source, just going to click this option in the basic panel.", 'start': 3959.74, 'duration': 7.905}, {'end': 3972.143, 'text': 'And here as we are going to be working with Prometheus.', 'start': 3968.678, 'duration': 3.465}, {'end': 3974.366, 'text': 'We want our data source to be Prometheus.', 'start': 3972.183, 'duration': 2.183}, {'end': 3977.63, 'text': "I'm just going to select this and it says data source added.", 'start': 3974.406, 'duration': 3.224}, {'end': 3990.016, 'text': "so you can name a data source anything you'd like, but I'm just going to let it be Prometheus for now, and our URL of Prometheus is localhost 9090.", 'start': 3977.63, 'duration': 12.386}, {'end': 3991.778, 'text': 'right, once that is done,', 'start': 3990.016, 'duration': 1.762}, {'end': 3994.02, 'text': "I'm just going to check if everything looks fine.", 'start': 3991.798, 'duration': 2.222}, {'end': 3994.921, 'text': 'Yes, it does.', 'start': 3994.401, 'duration': 0.52}, {'end': 3999.606, 'text': 'So for adding a data source you all you have to do is name it and then add a URL.', 'start': 3995.341, 'duration': 4.265}, {'end': 4000.446, 'text': "That's how easy it is.", 'start': 3999.626, 'duration': 0.82}, {'end': 4001.788, 'text': "I'm just going to save and test this.", 'start': 4000.486, 'duration': 1.302}, {'end': 4004.463, 'text': 'and this is great.', 'start': 4003.402, 'duration': 1.061}, {'end': 4005.284, 'text': "It's working right?", 'start': 4004.543, 'duration': 0.741}, {'end': 4013.852, 'text': "So once I've saved and tested it, so I'm just going to click the Grafana icon that's present on the left corner, left top corner,", 'start': 4005.804, 'duration': 8.048}, {'end': 4016.374, 'text': 'and this will redirect me to my home page of Grafana.', 'start': 4013.852, 'duration': 2.522}, {'end': 4018.937, 'text': 'Okay, now that we are done with this.', 'start': 4016.835, 'duration': 2.102}, {'end': 4023.42, 'text': "I'm just going to click the plus icon and click on the option import.", 'start': 4019.037, 'duration': 4.383}, {'end': 4029.163, 'text': "So what we're going to do is we are going to import the dashboard from grafana.com.", 'start': 4023.98, 'duration': 5.183}, {'end': 4035.846, 'text': "So if I search for Grafana node exporter dashboard and click on the first link that's available,", 'start': 4029.703, 'duration': 6.143}, {'end': 4040.448, 'text': 'it will redirect me to a page which has the name node exporter full.', 'start': 4035.846, 'duration': 4.602}, {'end': 4046.212, 'text': 'Right So what it really does is it has an ID the node exporter has an ID.', 'start': 4040.888, 'duration': 5.324}, {'end': 4053.418, 'text': "So I'm just going to copy this ID to the clipboard and I'm quickly going to import this ID here.", 'start': 4046.552, 'duration': 6.866}, {'end': 4059.583, 'text': "Okay, and I'm going to load it because we're using the node exporter dashboard in Grafana.", 'start': 4053.438, 'duration': 6.145}, {'end': 4066.028, 'text': "I'm just going to copy that ID and I'm going to go down if you want to change the name you can do that.", 'start': 4059.783, 'duration': 6.245}, {'end': 4071.872, 'text': "and I'm going to select Prometheus as my data source and I'm going to input this.", 'start': 4066.628, 'duration': 5.244}, {'end': 4082.68, 'text': 'once that is done, you can see a beautiful representation of your CPU, your system load, your RAM used and the root FS, the swap, used.', 'start': 4071.872, 'duration': 10.808}, {'end': 4086.664, 'text': 'all of the information is beautifully being represented in gauges.', 'start': 4082.68, 'duration': 3.984}, {'end': 4087.704, 'text': 'right, these are gauges.', 'start': 4086.664, 'duration': 1.04}, {'end': 4091.187, 'text': 'okay, and these are the graphs.', 'start': 4087.704, 'duration': 3.483}, {'end': 4093.949, 'text': "currently, you can see that it's just been used.", 'start': 4091.187, 'duration': 2.762}], 'summary': 'Configured prometheus data source, imported grafana node exporter dashboard, and visualized system metrics.', 'duration': 134.209, 'max_score': 3959.74, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU3959740.jpg'}, {'end': 4046.212, 'src': 'embed', 'start': 4003.402, 'weight': 1, 'content': [{'end': 4004.463, 'text': 'and this is great.', 'start': 4003.402, 'duration': 1.061}, {'end': 4005.284, 'text': "It's working right?", 'start': 4004.543, 'duration': 0.741}, {'end': 4013.852, 'text': "So once I've saved and tested it, so I'm just going to click the Grafana icon that's present on the left corner, left top corner,", 'start': 4005.804, 'duration': 8.048}, {'end': 4016.374, 'text': 'and this will redirect me to my home page of Grafana.', 'start': 4013.852, 'duration': 2.522}, {'end': 4018.937, 'text': 'Okay, now that we are done with this.', 'start': 4016.835, 'duration': 2.102}, {'end': 4023.42, 'text': "I'm just going to click the plus icon and click on the option import.", 'start': 4019.037, 'duration': 4.383}, {'end': 4029.163, 'text': "So what we're going to do is we are going to import the dashboard from grafana.com.", 'start': 4023.98, 'duration': 5.183}, {'end': 4035.846, 'text': "So if I search for Grafana node exporter dashboard and click on the first link that's available,", 'start': 4029.703, 'duration': 6.143}, {'end': 4040.448, 'text': 'it will redirect me to a page which has the name node exporter full.', 'start': 4035.846, 'duration': 4.602}, {'end': 4046.212, 'text': 'Right So what it really does is it has an ID the node exporter has an ID.', 'start': 4040.888, 'duration': 5.324}], 'summary': 'Imported grafana node exporter dashboard with id from grafana.com', 'duration': 42.81, 'max_score': 4003.402, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU4003402.jpg'}, {'end': 4159.434, 'src': 'embed', 'start': 4137.477, 'weight': 3, 'content': [{'end': 4139.719, 'text': 'you can leave them too in the comment section below.', 'start': 4137.477, 'duration': 2.242}, {'end': 4140.76, 'text': 'Until next time.', 'start': 4140.038, 'duration': 0.722}, {'end': 4141.18, 'text': 'Thank you.', 'start': 4140.819, 'duration': 0.361}, {'end': 4144.398, 'text': 'I hope you have enjoyed listening to this video.', 'start': 4142.276, 'duration': 2.122}, {'end': 4152.367, 'text': 'Please be kind enough to like it and you can comment any of your doubts and queries and we will reply them at the earliest.', 'start': 4144.759, 'duration': 7.608}, {'end': 4158.233, 'text': 'Do look out for more videos in our playlist and subscribe to Edureka channel to learn more.', 'start': 4152.747, 'duration': 5.486}, {'end': 4159.434, 'text': 'Happy learning!.', 'start': 4158.773, 'duration': 0.661}], 'summary': 'Encourage audience engagement by asking for likes, comments, and subscriptions.', 'duration': 21.957, 'max_score': 4137.477, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU4137477.jpg'}], 'start': 3631.615, 'title': 'Integrating prometheus with grafana and installing grafana with prometheus', 'summary': 'Covers integrating prometheus with grafana, explaining the node exporter, setting up prometheus and node exporter before integrating with grafana, installing and configuring grafana with prometheus, including downloading grafana, setting up the data source, importing a dashboard, and the advantages of using grafana for visualizing prometheus metrics.', 'chapters': [{'end': 3763.626, 'start': 3631.615, 'title': 'Integrating prometheus with grafana', 'summary': 'Covers integrating prometheus with grafana, explaining the node exporter, and setting up prometheus and node exporter before integrating with grafana.', 'duration': 132.011, 'highlights': ['The node exporter collects technical information from Linux nodes such as CPU, disk, and memory statistics, and all these metrics are visually represented in Grafana.', 'Before integrating with Grafana, the presenter ensures that Prometheus and node exporter are up and running on the Linux machine.', 'The chapter focuses on making changes in the Prometheus.yml file and adding the node exporter as a target in the static config, running on localhost at port 9100.']}, {'end': 4159.434, 'start': 3766.628, 'title': 'Installing and configuring grafana with prometheus', 'summary': 'Covers the installation and configuration of grafana with prometheus, including downloading grafana, setting up the data source, importing a dashboard, and the advantages of using grafana for visualizing prometheus metrics.', 'duration': 392.806, 'highlights': ['Grafana is up and running on port 3000. The Grafana server is running on port 3000, indicating successful installation and startup.', "The default credentials for Grafana are admin/admin. Upon installation, the default credentials for Grafana are 'admin' for both the email address and password, with an option to create a custom password.", 'The Grafana user interface offers the ability to create dashboards and visualizations for data sources. The Grafana user interface provides features such as a search button, icons for navigation, and panels for creating customized dashboards and visualizations.', 'Importing the node exporter dashboard from grafana.com provides comprehensive visual representations of CPU, system load, RAM usage, and storage metrics. Importing the node exporter dashboard from grafana.com allows for detailed visual representations of CPU, system load, RAM usage, and storage metrics, enhancing data visualization capabilities.', 'Grafana provides a more visually appealing representation of Prometheus metrics compared to viewing them directly in Prometheus. Grafana offers a more aesthetically pleasing representation of Prometheus metrics, making it preferable to viewing raw text-based data in Prometheus.']}], 'duration': 527.819, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7gW5pSM6dlU/pics/7gW5pSM6dlU3631615.jpg', 'highlights': ['The node exporter collects CPU, disk, and memory stats, visually represented in Grafana.', 'Prometheus and node exporter must be up and running before integrating with Grafana.', 'Changes in Prometheus.yml file and adding node exporter as a target in static config are essential.', 'Grafana is successfully installed and running on port 3000.', 'Default credentials for Grafana are admin/admin, with an option to create a custom password.', 'Grafana UI allows creating dashboards and visualizations for data sources.', 'Importing node exporter dashboard from grafana.com provides comprehensive visual representations of metrics.', 'Grafana offers a more visually appealing representation of Prometheus metrics compared to direct viewing in Prometheus.']}], 'highlights': ['Prometheus is an open-source system for monitoring cloud-native applications and infrastructure and watching over hundreds of microservices.', 'Prometheus supports multi-dimensional data collection and querying, which is a particular strength.', 'Prometheus records real-time metrics and stores them in a time series database using a HTTP pull model.', 'Prometheus collects data and metrics from different services and stores them based on a unique identifier and a timestamp.', 'Prometheus is designed for reliability during outages and does not depend on network storage or other remote services.', 'Prometheus provides client libraries in various languages for monitoring application health status and exporters for monitoring third-party systems.', 'Prometheus is installed on a Linux virtual machine, including downloading and untarring the file, and checking configuration parameters.', 'The configuration file, prometheus.yml, defines the targets to be scraped and the time interval for scraping metrics, with a default scrape interval of every 15 seconds.', 'The process of querying metrics with detailed explanations of time series, labels, and sample data is demonstrated.', 'The node exporter is added to the Prometheus configuration file, and Prometheus is restarted to apply the changes.', 'The chapter explains how to use regular expressions in Prometheus queries to filter time series, select time series by metric names and label names, and calculate rates or deltas of a metric over time using the rate function.', 'Creating a new file called Prometheus rule with a yml extension and adding a custom rule specifying the query and expression.', 'Integrating alert manager into Prometheus and checking the status of targets and alert rules', 'The node exporter collects CPU, disk, and memory stats, visually represented in Grafana.', 'Prometheus and node exporter must be up and running before integrating with Grafana.', 'Grafana UI allows creating dashboards and visualizations for data sources.']}