In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to deploy Prometheus Operator, the content is very detailed, interested friends can refer to, hope to be helpful to you.
In practice, the Prometheus Operator version v0.14.0 is used. Due to the rapid iteration speed of project development, the deployment method may be updated.
Download the latest source code git clone https://github.com/coreos/prometheus-operator.gitcd prometheus-operator
For ease of management, creating a separate Namespace monitoring,Prometheus Operator-related components will be deployed to this Namespace.
Kubectl create namespace monitoring installs Prometheus Operator Deploymenthelm install-- name prometheus-operator-- set rbacEnable=true-- namespace=monitoring helm/prometheus-operator
All the components of Prometheus Operator are packaged into Helm Chart, which makes installation and deployment very convenient. If you are not familiar with Helm, you can refer to the previous relevant section.
Install Prometheus, Alertmanager and Grafanahelm install-- name prometheus-- set serviceMonitorsSelector.app=prometheus-- set ruleSelector.app=prometheus-- namespace=monitoring helm/prometheushelm install-- name alertmanager-- namespace=monitoring helm/alertmanagerhelm install-- name grafana-- namespace=monitoring helm/grafana
Resources of type Prometheus can be viewed through kubectl get prometheus.
Each Service corresponds to a ServiceMonitor, which makes up the Target list of Pormetheus.
We have noticed that some Exporter do not run Pod because Kubernetes internal components such as API Server, Scheduler, and Kubelet natively support Prometheus, and only need to define Service to obtain monitoring data directly from predefined ports.
The browser opens the Web UI http://192.168.56.105:30413/targets of Pormetheus
DataSource and Dashboard for Grafana have been configured automatically. Click Home to use the Dashboard we discussed at the beginning.
We have practiced three Kubernetes monitoring schemes.
Weave Scope can show a complete view of clusters and applications. Its excellent interactivity allows users to easily carry out real-time monitoring and problem diagnosis of containerized applications.
Heapster is the native cluster monitoring scheme of Kubernetes. Predefined Dashboard can monitor Kubernetes from both Cluster and Pods levels.
Prometheus Operator is probably the most comprehensive open source monitoring solution for Kubernetes. In addition to being able to monitor Node and Pod, it also supports various cluster management components, such as API Server, Scheduler, Controller Manager, and so on.
On how to deploy Prometheus Operator to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.