Monday, 19 June 2017

Cloud Monitoring : Nagios vs. Prometheus

Written By: Amol Khanorkar

What is monitoring and why it is needed in Cloud-Computing ?

Monitoring of infrastructure resources in clouds computing plays a crucial role in providing guarantees of up-time in application's performance, availability, and security. As we are moving from traditional servers to cloud servers and infrastructure which provides an opportunity to take advantage of the scaling of Infrastructure vertical as well as horizontal as most of the things are moving to the cloud computing era. 

Here, we need to make sure that the applications should be up and running without facing any trouble and fulfill the end-user's request with great Performance and Highly available in time. For this, we need to use monitoring service to ensure all the services are up and running well. Not often discussed, server monitoring has only gained in importance with the move to the cloud. 

In this blog, we are going to see the features of two monitoring tools Nagios & Prometheus. Also, their features.

In short, why monitor ? 
- Know when thing goes wrong
- Be able to debug & gain insight
- Trending to see changes over time, and drive technical/business decision

What is Nagios ? 
Nagios is recognized as the top solution to monitor servers in a variety of different ways.  Server monitoring is made easy in Nagios because of the flexibility to monitor your servers with and without agents.

Nagios provides monitoring solution largely in below areas,
  • Network Monitoring
  • Server Monitoring
  • Application Monitoring
Nagios provides complete monitoring of network protocols – including TCP/IP and UDP protocols. Implementing effective network protocol monitoring with Nagios offers increased server, services, and application availability, as well as fast detection of network outages and protocol failures.
What is Prometheus ?
Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud. Since its inception in 2012, many companies and organizations have adopted Prometheus, and the project has a very active developer and user community. It is now a standalone open source project and maintained independently of any company.
Prometheus Offers:
  • Inclusive monitoring
  • Powerful data model
  • Manageable and reliable
  • Efficient and Scalable

Comparison and Features: 

Protocols / Plugins
NRPE, NRDP, NSClient++ (mainly used to monitor Windows machines), NCPA.

Nagios executes scripts on remote server and then plugins sends metrics data to the centralized Nagios server.
NRPE (nagios remote plugin executor) is build upon a client server protocol where a remote server we intend to monitor listens on a specific port for TCP/IP.
Pull method uses here to fetch data, it means server approaches open ports on it’s agents rather than agents connecting to it.

It uses exporters to PULL metrics data from remote servers.

Prometheus- time series collection happens via a pull model over HTTP
Query Language
Nagios does not support native query language for data analysis.
The Prometheus query language allows you to slice and dice the dimensional data for ad-hoc exploration, graphing, and alerting.
Data Model
Nagios has non dimensional data so it is little bit hard to read and analyze data.
Prometheus has great support for service discovery for many major cloud and container platforms like   kubernetes ,EC2,Azure etc)So it can not only go out and pull metrics data directly from instances as they float around your dynamic cluster scheduler, but also attach identity metadata (as provided by the service discovery) to the time series collected from each instance. For example, you may map EC2 tags or Kubernetes labels into your Prometheus time series labels to give you more useful metrics.
Which is more suitable for docker based apps?
Checking a Docker container is a little bit harder, because the command can only be run as root, whereas the NRPE service   on the remote host runs as a non-privileged user (usually called nagios).
Here, we recommends Prometheus as it works in a pull based server which expects monitored servers to provide a web interface from which it can scrape data. There are several exporters available for Prometheus which will capture metrics and then expose them over http for Prometheus to scrape. In addition there are libraries which can be used to create custom exporters. As we are concerned with monitoring docker containers we will use the container_exporter capture metrics.
High Availability
Nagios is host centric
Yes, By Duplication but No clustering
 Prometheus can implement in high level architecture
Data Storage
Nagios only keeps current state of checks and requires plugin for storage.
Prometheus uses levelDB for indexing and uses internal subsystem for storage. We can set flags to control memory usage for same and stores data in time series format.
Support data store Time Series
Autodetect Pods/Machines
Yes, need to write custom scripts
Metrics Collectors (DB/Infra)
Docker Support
Kubernetes Stats Support
No, need to write custom scripts to fetch stats from remote server.
Maintenance Requirements
Mysql + Server
Tuning + Lightweight DB
Ease of Configuration
Simple Install it
Dockerized and Yaml files
UI / Dashboards
Built In Dashboard
Alert Manager
Nagios notifications can be sent on emails. Nagios notifications can be sent on emails. 
We can integrate it with Pagerduty and other PUSH notification services.
It is possible to send alerts to a number of services: Email, Generic Webhooks, Slack. All of the setup is performed via configuration and the altering rules are scriptable
Yes (Methods of achieving a distributed monitoring solution can sometimes be complicated. Before you embark on designing and deploying a distributed monitoring solution you should outline the goals you wish to achieve with the solution you are proposing.)
Yes (A single Prometheus server can easily handle millions of time series. That’s enough for a thousand servers with a thousand time series each scraped every 10 seconds. As your systems scale beyond that, Prometheus can scale too.)
GPL 2.0, NagiosPL 
Apache 2.0

As per the comparison, both the renowned tools has their own capabilities and the features.  
It depends on your infrastructure's need and the architecture, evaluate the tool, decide which tool will fulfill the goal and then adopt it for monitoring and analyzing purposes.

Finally, I came to the conclusion that Prometheus is more popular and majorly used now a days. It has lot of good features over Nagios.

I hope this blog will help you out to evaluate the tool and please give your valuable inputs to improve it.


Tags: Server Monitoring, Cloud Computing, DevOps, Nagios, Prometheus


  1. Really the best monitoring and tracking solution I've ever used. I can not even imagine that with the help of a smartphone I can easily control employees, a guy, a child, this is really cool. As in spy movies) And most importantly, a person does not guess about the spying, since the mobile tracker is hidden And this gives an unreal advantage on people, because who owns the information-owns the world)

  2. Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area "Devops Training in Chennai"

  3. I believe there are many more pleasurable opportunities ahead for
    individuals that looked at your site.

    AWS Training in Bangalore

    AWS Training in Bangalore

    AWS Training in Chennai

  4. شرکت تلکا هاست پیشرو در میزبانی انواع وب سایت و هم چنین دارای انواع خرید هاست ارزان با کنترل پنل سی پنل میباشد.حتما از سایت ما دیدن کنید و از قیمت های مناسب برای انواع سرویس های وب و ثبت انواع دامنه شگفت زده شوید.


    سایت موسیقی ایرانی دارای محتوای آموزشی اخبار به روز هنر و سینما و موسیقی دانلود فیلم های جدید ایرانی و آموزش ردومی های ایرانی

  5. I am frequently to blogging we truly appreciate your content regularly. The content has really peaks my interest. I’m going to bookmark your blog and maintain checking choosing info.
    multi-tenant monitoring

  6. Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area
    web designing training in chennai

    web designing training in omr

    digital marketing training in chennai

    digital marketing training in omr

    rpa training in chennai

    rpa training in omr

    tally training in chennai

    tally training in omr

  7. Cyber attacks on individuals, on schools and learning institutions, government installations, military, businesses and any other establishment which can be added to this list have been reported. best cloud security companies

  8. Crypto-currency as a modern form of the digital asset has received a worldwide acclaim for easy and faster financial transactions and its awareness among people have allowed them to take more interest in the field thus opening up new and advanced ways of making payments. Referral Code with the growing demand of this global phenomenon more,new traders and business owners are now willing to invest in this currency platform despite its fluctuating prices however it is quite difficult to choose the best one when the market is full. In the list of crypto-currencies bit-coins is one of the oldest and more popular Referral Code for the last few years. It is basically used for trading goods and services and has become the part of the so-called computerized block-chain system allowing anyone to use it thus increasing the craze among the public, Referral Code.

    Common people who are willing to purchase BTC can use an online wallet system for buying them safely in exchange of cash or credit cards and in a comfortable way from the thousands of BTC foundations around the world and keep them as assets for the future. Due to its popularity, many corporate investors are now accepting them as cross-border payments and the rise is unstoppable. With the advent of the internet and mobile devices,information gathering has become quite easy as a result the BTC financial transactions are accessible and its price is set in accordance with people’s choice and preferences thus leading to a profitable investment with Referral Code Code. Recent surveys have also proved that instability is good for BTC exchange as if there is instability and political unrest in the country due to which banks suffer then investing in BTC can surely be a better option. Again bit-coin transaction fees are pretty cheaper and a more convenient technology for making contracts thus attracting the crowd. The BTC can also be converted into different fiat currencies and is used for trading of securities, for land titles, document stamping, public rewards and vice versa.

    Another advanced block-chain project is Ethereumor the ETH which has served much more than just a digital form of crypto-currency Referral Code and its popularity in the last few decades have allowed billions of people to hold wallets for them. With the ease of the online world,the ETH have allowed the retailers and business organizations to accept them for trading purposes, therefore, can serve as the future of the financial system.

  9. Our full Lace Front Wigs are all hand made with a lace cap. They are manufactured with thin lace sewn on top of the cap. Individual hairs are then sewn onto the thin lace. Each lace wig has lace all around the unit which will need to be cut prior to securing the wig to your head. You will need to cut along the hairline around your entire head. By doing so, you will be able to wear your hair anyway you like. You can even style ponytails, up-dos, etc. Once the Lace Wigs is successfully applied, it will appear that all the hair is growing directly from your head!

    Lace front wigs are hand-made with lace front cap & machine weft at back. Lace front wigs are manufactured with a thin lace that extends from ear to ear across the hairline. When you receive the wig, the lace will be quite long in the front. Cut and style according to your preference, as you will need to apply adhesive along the front of the wig. Once the wig is applied, you will still have Lace Wigs with a very natural appearance.
    TeamWigz Provide the Best Lace Front Wigs and Lace Wigs in Johannesburg and South Africa.


Amazon EKS - Kubernetes on AWS

By Komal Devgaonkar Amazon Elastic Container Service for Kubernetes (Amazon EKS), which is highly available and scalable AWS service....