prometheus
https://prometheus.io/
为云监控而生
From metrics to insight
Power your metrics and alerting with the leading
open-source monitoring solution.
Prometheus is a Cloud Native Computing Foundation graduated project.
从openstack产生的虚拟机,到k8s产生的虚拟POD,都可以支持监控。
openstack exporter
https://blog.zhaw.ch/icclab/monitoring-an-openstack-deployment-with-prometheus-and-grafana/
Here is the list of the 18 metrics currently collected by Prometheus Openstack exporter:
neutron_public_ip_usage hypervisor_memory_mbs_total
neutron_net_size hypervisor_running_vms
hypervisor_memory_mbs_used hypervisor_disk_gbs_total
hypervisor_vcpus_total hypervisor_disk_gbs_used
openstack_allocation_ratio hypervisor_vcpus_used
nova_instances nova_resources_ram_mbs
nova_resources_disk_gbs swift_replication_duration_seconds
openstack_exporter_cache_age_seconds swift_disk_usage_bytes
swift_replication_stats swift_quarantined_objects
Alternatively you could use Prometheus’s Node exporter for more detailed metrics on node usage – this needs to be installed in the controller/compute nodes and the prometheus.yml configuration file also needs to be changed. A docker container is also available at Docker Hub.
Although Prometheus provides some rudimentary graph support, combining it with a more powerful graphing solution makes it much easier to see what’s going on in your system. For this reason, we set up Grafana.
监控POD
https://276622709.github.io/2021/04/16/%E4%BD%BF%E7%94%A8helm%E5%AE%89%E8%A3%85prometheus%E5%AE%9E%E8%B7%B5/
实验目的
完善k8s实验环境,通过helm方便快速的搭建prometheus项目监控k8s实验环境,了解prometheus的工作原理
前提条件
已完成kubernetes的环境搭建和helm的客户端安装
项目地址
https://github.com/prometheus-operator/kube-prometheus
项目包含的组件有以下几个
The Prometheus Operator
Highly available Prometheus
Highly available Alertmanager
Prometheus node-exporter
Prometheus Adapter for Kubernetes Metrics APIs
kube-state-metrics
Grafana
https://github.com/prometheus-operator/kube-prometheus
This repository collects Kubernetes manifests, Grafana dashboards, and Prometheus rules combined with documentation and scripts to provide easy to operate end-to-end Kubernetes cluster monitoring with Prometheus using the Prometheus Operator.
The content of this project is written in jsonnet. This project could both be described as a package as well as a library.
Components included in this package:
The Prometheus Operator
Highly available Prometheus
Highly available Alertmanager
Prometheus node-exporter
Prometheus Adapter for Kubernetes Metrics APIs
kube-state-metrics
Grafana
This stack is meant for cluster monitoring, so it is pre-configured to collect metrics from all Kubernetes components. In addition to that it delivers a default set of dashboards and alerting rules. Many of the useful dashboards and alerts come from the kubernetes-mixin project, similar to this project it provides composable jsonnet as a library for users to customize to their needs.
标签:available,exporter,monitoring,Prometheus,metrics,prometheus,cloud From: https://www.cnblogs.com/lightsong/p/17523406.html