Author: Sahil Suri

How to setup prometheus monitoring tool on Linux Centos 7

What is Prometheus? Prometheus is an open source monitoring tool which was developed in 2012. Its architecture is modular and comes with several readily available modules called exporters, which help you capture metrics from popular software. Prometheus is written in the Go language and stores its captured data in a time series database (A time series database is optimized for handling data points indexed by time). Prometheus offers a versatile and customizable interface allowing system administrators to heavily tune the metrics they want to measure and also enhance the accuracy of measurement. Prometheus’s main features are: a multi-dimensional data model with time series data identified by metric name and key/value pairs a flexible query language to leverage this dimensionality no reliance on distributed storage; single server nodes are autonomous time series collection happens via a pull model over HTTP pushing time series is supported via an intermediary gateway targets are discovered via service discovery or static configuration multiple modes of graphing and dashboard creation support Basic architecture Prometheus The below diagram illustrates the basic architecture of the Prometheus ecosystem and where different components fit together. Note that each Prometheus server is standalone, not depending on network storage or other remote services. With a basic understanding of Prometheus architecture, we now proceed to install and set it up on a Centos 7 system. Step 1: Download Prometheus software from GitHub. We’ll use wget to download...

Read More

8 lsmod, rmmod, modprobe, and modinfo command examples in Linux

  What is Linux Kernel? The kernel is just a piece of code. Ok, not a bit of code 1000’s of lines. For example, Linux kernel has 20 million lines of code. A kernel is a central part of computer operating system which acts as a mediator between system hardware and applications installed in the system. The Kernel converts program’s instructions to machine understandable language and passes them through device drivers. What are types of Kernel? We have two types of Kernels are there. Monolithic kernel Modular kernel Before going into difference of kernels we should know what is a kernel module is What is a Kernel module? A kernel module is a part of the kernel which can do some work. Say for example Linux Kernel will not support all types of hardware, So programmers will write some kernel modules and distribute them along with their software. Whenever you want to make this hardware to work, we have to load this piece of software into the kernel so that your system understands it. This software is nothing but Kernel module. The modules also referred to as device drivers are specialized pieces of software which power or control access to a peripheral. They are loaded into or unloaded from the running kernel without the need of a reboot. What is a Monolithic kernel? A monolithic kernel is where the...

Read More

5 lsblk command examples in Linux

  The lsblk Linux command is a useful command which lists information about all or the specified block devices. It queries the /sys virtual file system to obtain the information that it displays. The command displays details about all block devices excluding except RAM disks in a tree-like format by default. lsblk is installed as part of the util-Linux package. The “util-linux” package contains a large variety of low-level system utilities that are necessary for a Linux system to function. Among others, util-linux contains the fdisk configuration tool and the login program. Verify the lsblk command in CentOS/Redhat [root@linuxnix ~]# which lsblk /usr/bin/lsblk [root@linuxnix ~]# rpm -qf /usr/bin/lsblk util-linux-2.23.2-33.el7.x86_64 [root@linuxnix ~]# rpm -ql util-linux | grep -w lsblk /usr/bin/lsblk /usr/share/bash-completion/completions/lsblk /usr/share/man/man8/lsblk.8.gz Verify the lsblk command in Ubuntu/Debian Linux sahil@linuxnix:~$ ls -l /bin/lsblk -rwxr-xr-x 1 root root 77280 May 27 2016 /bin/lsblk sahil@linuxnix:~$ dpkg -S /bin/lsblk util-linux: /bin/lsblk sahil@linuxnix:~$ dpkg-query -L util-linux | grep lsblk /bin/lsblk /usr/share/bash-completion/completions/lsblk /usr/share/man/man8/lsblk.8.gz sahil@linuxnix:~$ Example 1: Let’s run the lsblk command without any additional options and understand the output: [sahil@linuxnix:~] $ lsblk NAME                          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT loop0                           7:0    0  208M  0 loop loop1                           7:1    0  456M  0 loop /mnt/rh sr0                            11:0    1 1024M  0 rom sda                             8:0    0   60G  0 disk |-sda1                          8:1    0  512M  0 part /boot `-sda2                          8:2    0 59.5G  0 part   |-os_vg-root_lv (dm-0)      253:0    0   16G  0 lvm  /   |-os_vg-swap_01_lv (dm-1)  ...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.