Monitoring with Prometheus | Get Started.

Monitoring with Prometheus | Get Started.

Introduction:

Prometheus is the open source monitoring solution which gives powerful metrics and alerts.

When to use Prometheus?

  1. Time Series Data: Prometheus works well for numeric time series data.
  2. Multidimensional Data: If the organization follows Microservice architecture Prometheus is the great tool to monitor multi-dimensional data.
  3. Machine Centric Monitoring: Prometheus is used for the machine-centric monitoring and application monitoring which is based on the service-oriented architecture.
  4. Quick Diagnose of the infrastructure: Prometheus is designed for the reliability. When something goes down Prometheus helps to debug and analyze the issues with the infrastructure.

When to not use Prometheus?

  1. Accuracy: If the use case is 100% accuracy then Prometheus is not the suitable option. Like for billing systems. Even this is reliable but not suitable for this kind of use cases.

Install Prometheus on Ubuntu

Step 1 | Download the latest version of the Binary

$ wget https://github.com/prometheus/prometheus/releases/download/v1.7.1/prometheus-1.7.1.linux-amd64.tar.gz

You can find the latest release of Prometheus here.

Step 2 | Untar zip file

$ tar -xvf prometheus-1.7.1.linux-amd64.tar.gz

Step 3 | Start Prometheus for Self-Monitoring

./prometheus -config.file=prometheus.yml

Step 4 | Verify Prometheus metrics

Verify the Prometheus will be running on port 9090.


Features

  1. Supports Multidimensional Data Model
  2. Time series collection
  3. A functional expression language that lets the user select and aggregate time series data in real time.
  4. Multiple modes for graphing and dashboarding.
  5. Service Discovery / Static Configuration are supported.

Prometheus Architecture


Architecture is also available here.

Push gateway and Short-Lived Jobs: In Architecture Push gateway and short-lived jobs are used for the gathering the metrics.

Prometheus Server: Prometheus server run independently and rely on local storage for processing and alerting. Prometheus server gathers and stores all time series data. Where Prometheus server finds the targets from other services as well for example Kubernetes, Consul and DNS.

Alert Manager: Alert Manager is responsible for notifying the alert to the end user using different integrations like Pagerduty / Email.

UI: Prometheus is having its own Web UI. But it’s possible to use the Grafana as the user interface.

This is a getting started with the Prometheus.

要查看或添加评论,请登录

Jakir Patel的更多文章

社区洞察

其他会员也浏览了