Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to accumulate practical experience in cloud computing? what's going on with Prometheus?

Shulou Source: shulou.com Published: 2022-06-03 04:12:27 10月05日 Update

How to accumulate practical experience in cloud computing? What's going on with Prometheus? For a qualified cloud computing operator, Prometheus (Prometheus) is an open source monitoring system with a very cool name. While learning cloud computing theory, we should also participate in various projects. Today, the editor will give you a brief introduction to Prometheus.

The main features of Prometheus:

Multidimensional data model (time series with metric names and key-value pairs)

Flexible query language

Do not rely on distributed storage

Time series are collected by pull and transmitted by http protocol

Supports push time series through mediation gateways

Monitoring data is discovered through service or static configuration

Support for charts and dashboard and other ways.

Prometheus components:

Prometheus master server for collecting and storing time series data

Application client code base

Push gateway of short-term jobs

GUI dashboard based on Rails/SQL

Special-purpose exporter (including HAProxy, StatsD, Ganglia, etc.)

Alertmanager for alarm

Command line tool query.

What can Prometheus do?

Prometheus supports a multi-dimensional index data model. After pulling the data regularly through the HTTP protocol, the server uses a flexible query language to achieve the purpose of monitoring. The main uses are as follows:

1. Used as a burying point system in the business layer

Prometheus supports all major development languages (Go, Java, Python, Ruby officially provide clients, and other languages have third-party open source clients). We can bury the core business through the client side, such as issuing order process and adding shopping cart process.

2. Used as an application monitoring system in the application layer

Some mainstream applications can collect core indicators from these applications through official or third-party exporters. Such as Redis, MySQL.

3. Used as system monitoring at the system level

In addition to the commonly used software, Prometheus also has related system layer and network layer exporter to monitor the server or network.

4. Integrate other monitoring

Prometheus can also integrate other monitoring systems through a variety of exporte to collect monitoring data, such as AWS CloudWatch, JMX, Pingdom and so on.

Note: although Prometheus also provides tools such as Grok exporter to read logs, Prometheus is a monitoring system, not a log system, and application logs should go to tool stacks such as ELK.

Tags: Monitoring system data application sequence time time series monitoring system language support service can be passed through customers tools methods logs queries actual combat business mainstream Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Microsoft Docker macOS Shulou Information