在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:prometheus-operator开源软件地址:https://gitee.com/AliyunContainerService/prometheus-operator开源软件介绍:Prometheus OperatorProject status: beta Not all planned features are completed. The API, spec, status and other user facing objects may change, but in a backward compatible way. The Prometheus Operator for Kubernetes provides easy monitoring definitions for Kubernetesservices and deployment and management of Prometheus instances. Once installed, the Prometheus Operator provides the following features:
For an introduction to the Prometheus Operator, see the initial blogpost. Prometheus Operator vs. kube-prometheusThe Prometheus Operator makes the Prometheus configuration Kubernetes nativeand manages and operates Prometheus and Alertmanager clusters. It is a piece ofthe puzzle regarding full end-to-end monitoring. kube-prometheus combines the Prometheus Operatorwith a collection of manifests to help getting started with monitoringKubernetes itself and applications running on top of it. PrerequisitesVersion If you have an older version of Kubernetes and the Prometheus Operator running,we recommend upgrading Kubernetes first and then the Prometheus Operator. CustomResourceDefinitionsThe Operator acts on the following custom resource definitions (CRDs):
To learn more about the CRDs introduced by the Prometheus Operator have a lookat the design doc. InstallationInstall the Operator inside a cluster by running the following command: kubectl apply -f bundle.yaml
To run the Operator outside of a cluster: makehack/run-external.sh <kubectl cluster name> RemovalTo remove the operator and Prometheus, first delete any custom resources you created in each namespace. Theoperator will automatically shut down and remove Prometheus and Alertmanager pods, and associated configmaps. for n in $(kubectl get namespaces -o jsonpath={..metadata.name}); do kubectl delete --all --namespace=$n prometheus,servicemonitor,alertmanagerdone After a couple of minutes you can go ahead and remove the operator itself. kubectl delete -f bundle.yaml The operator automatically creates services in each namespace where you created a Prometheus or Alertmanager resources,and defines three custom resource definitions. You can clean these up now. for n in $(kubectl get namespaces -o jsonpath={..metadata.name}); do kubectl delete --ignore-not-found --namespace=$n service prometheus-operated alertmanager-operateddonekubectl delete --ignore-not-found customresourcedefinitions \ prometheuses.monitoring.coreos.com \ servicemonitors.monitoring.coreos.com \ alertmanagers.monitoring.coreos.com DevelopmentPrerequisites
Testing
Running unit tests:
Running end-to-end tests on local minikube cluster:
ContributingMany files (documentation, manifests, ...) in this repository areauto-generated. E.g.
SecurityIf you find a security vulnerability related to the Prometheus Operator, pleasedo not report it by opening a GitHub issue, but instead please send an e-mail tothe maintainers of the project found in the OWNERS file. |
请发表评论