Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prometheus vs ElasticSearch. Which is better for container and server monitoring? [closed]

ElasticSearch is a document store and more of a search engine, I think ElasticSearch is not good choice for monitoring high dimensional data as it consumes lot of resources. On the other hand prometheus is a TSDB which is designed for capturing high dimensional data.

Anyone experienced in this please let me know what's the best tool to go with for container and server monitoring.

like image 887
Aditya C S Avatar asked Nov 24 '16 20:11

Aditya C S


People also ask

What is difference between Prometheus and Elasticsearch?

Prometheus and the Elasticsearch stack are both used for monitoring applications. But while Prometheus is primarily meant to monitor metrics, the Elasticsearch stack or the ELK stack is mainly used to collect, store, analyze, and visualize application logs.

Does Prometheus use Elasticsearch?

Prometheus + ElasticsearchShip your Prometheus metrics to Elasticsearch and unify them with your logs and APM data for increased observability that's free and open. Getting started with Elasticsearch: Store, search, and analyze with the free and open Elastic Stack.

Is elk and Prometheus same?

Prometheus is used for metric collection, various systems monitoring, and setting up alerts based on these metrics. ELK is used to take all types of data, perform different types of analytics based on these data, search, and visualize it.

What is Prometheus How is different from other monitoring tools?

What Is Prometheus? Prometheus is a monitoring solution for recording and processing any purely numeric time-series. It gathers, organizes, and stores metrics along with unique identifiers and timestamps. Prometheus is open-source software that collects metrics from targets by "scraping" metrics HTTP endpoints.

What is the difference between Prometheus and Elasticsearch stack?

Prometheus and the Elasticsearch stack are both used for monitoring applications. But while Prometheus is primarily meant to monitor metrics, the Elasticsearch stack or the ELK stack is mainly used to collect, store, analyze, and visualize application logs. In this article, we will see what Prometheus and ELK stack is and compare their differences.

What are Prometheus metrics and how do they work?

Prometheus metrics are only one part of what makes your containers and clusters observable. Avoid operational silos by bringing your Prometheus data together with logs and traces. Learn more about observability with the Elastic Stack. Watch how to augment Prometheus metrics with logs and APM data .

Why use elastic as a centralized Prometheus store?

Using Elastic as a centralized store can help you consolidate data from hundreds of Prometheus instances and achieve a global view of data coming from all resources.

Why use ElasticSearch for historical data?

And no wonder -- Elasticsearch treats all these data types as just another index and allows you to aggregate, correlate, analyze and visualize all your operational data however you want. Features like data rollups in Elastic make it possible to store historical time series data at a fraction of the storage cost of raw data.


1 Answers

ELK is a general-purpose no-sql stack that can be used for monitoring. We've successfully deployed one on production and used it for some aspects of our monitoring system. You can ship metrics into it (if you wish) and use it to monitor them, but its not specifically designed to do that. Nor does the non-commercial version (version 7.9) come with an alerting system - you'll need to setup another component for that (like Sensu) or pay for ES commercial license.

Prometheus, on the other hand, is designed to be used for monitoring. And along with its metric-gathering clients (or other 3rd party clients like Telegraf and its service discovery options (like consul) and its alert-manager is just the right tool for this job.

Ultimately, both solutions can work, but in my opinion Elasticsearch will require more work and more upkeep (we found that ES clusters are a pain to maintain - but that depends on the amount of data you'll have).

like image 152
FuzzyAmi Avatar answered Sep 20 '22 14:09

FuzzyAmi