Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Monitoring kubetnetes clusters using Prometheus Operator

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

A brief introduction to Prometheus

Prometheus is an open source monitoring system, which has become the de facto standard for monitoring indicators in cloud native. Almost all the core components of Kubernetes and other cloud native systems output their own runtime monitoring information in the format of Prometheus indicators.

Main features:

A multi-dimensional data model identified by indicator names and key-value pairs. The flexible query language PromQL is adopted. It does not rely on distributed storage and serves an autonomous single point. Use http to complete the pull of monitoring data. The push of timing data is supported through the gateway. Support a variety of graphics and Dashboard display.

In addition, there are a variety of optional components in the entire ecosystem of Prometheus for functional expansion.

Prometheus-Operator

CoreOS provides an administrative tool called Operator, which is the controller that manages specific applications. Extend Kubernetes API to help users create, configure and manage complex or stateful application instances (such as etcd, Redis, MySQL, Prometheus, etc.) in a software way.

It deploys and configures the services that Prometheus and Prometheus need to monitor through Kubernetes's CRD (Custom Resource Definition, custom resource definition).

Prometheus-Operator uses the following two resources to configure Prometheus and the services it monitors.

Prometheus: the deployment of Prometheus. ServiceMonitor: used to describe the services monitored by Prometheus.

First, let's take a look at the architecture diagram of Prometheus-Operator:

When the browser accesses grafana http://grafana.cnlinux.club/, you can see the monitoring charts of various resources.

The user name is admin and the password is the password specified in the values.yaml configuration file

Browsers access Alertmanager

Http://alert.cnlinux.club/, you can see the alarm item.

Now that all installation is complete, the next article will detail the use of prometheus to monitor custom services, as well as alarm settings. If you have any questions, please leave a message below. I hope you will pay more attention and like it. Thank you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report