首页 > 其他分享 >prometheus & cloud monitoring

prometheus & cloud monitoring

时间:2023-07-03 17:23:09浏览次数:40  
标签:available exporter monitoring Prometheus metrics prometheus cloud

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

相关文章

  • 基于 Spring Cloud Function 的 Azure Function 开发
    Notice:本文章不包含AzureFunction环境配置等内容1.1前提Azure账户,且有可使用的订阅Azure支持的JDK(本教程适用于JDK1.8)IntelliJIDEA社区版或无限制版均可Maven3.5+最新的FunctionCoreTools1.2创建SpringCloudFunctionAzure工程在Github仓......
  • 2.1 Prometheus组件
    Prometheus的基本架构: PrometheusServerPrometheusServer是Prometheus监控系统的核心组件之一,它负责采集、存储和管理指标数据,并提供查询和报警功能。以下是一些PrometheusServer的关键特性和功能:1.数据采集:PrometheusServer负责定期从各个配置的目标(如应用程序、主......
  • Prometheus-2:blackbox_exporter黑盒监控
    黑盒监控blackbox_exporter前边介绍有很多exporter可以直接将metrics暴露给Prometheus进行监控,这些称为“白盒监控”,那些exporter无法监控到的指标呢?或者未暴露Metrics给Prometheus的一些服务怎么办?这时就要用到blackbox_exporte“黑盒监控”。blackbox_exporte支持用户通过:HT......
  • SpringCloud学习(四)
    参考:https://blog.csdn.net/qq_25928447/article/details/124340264?spm=1001.2014.3001.5501消息队列之前如果需要进行远程调用,一般可以通过发送HTTP请求来完成,现在,可以使用第二种方式,就是消息队列,它能够将发送方发送的信息放入队列中,当新的消息入队时,会通知接收方进行处理......
  • 多端全栈项目实战:大型商业级代驾业务全流程落地SpringCloudAlibaba+Mysql+Redis+Docke
    多端全栈项目实战:大型商业级代驾业务全流程落地SpringCloudAlibaba+Mysql+Redis+Docker+Uniapp+Vue3随着移动互联网的快速发展和智能手机的普及,代驾服务成为了一个日益火热的行业。在这个行业中,如何构建一个具备商业级可靠性和扩展性的代驾业务系统成为了关键问题。本文将介绍一......
  • SAP Commerce Cloud 的 Footer 区域设计
    我们访问Spartacus首页,发现从后台请求的templateid为:LandingPage2Template我们研究这个CMS请求的响应:https://localhost:9002/occ/v2/electronics-spa/cms/pages?lang=en&curr=USD发现一个名(Name)叫Footer的Slot:这个slot里包含了很多Component,其中之一就是Fo......
  • SAP Commerce Cloud 的 FooterNavigationComponent
    FooterNavigationComponent在UI上对应的区域如下图所示:在Hybris中,FooterNavigationComponent是一个用于构建和管理网站页脚导航的组件。这个组件允许用户轻松地向网站的页脚添加和编辑导航链接,并确保这些链接在整个网站上保持一致。使用FooterNavigationComponent的主......
  • Spring Cloud灰度部署
    1、背景(灰度部署)在我们系统发布生产环境时,有时为了确保新的服务逻辑没有问题,会让一小部分特定的用户来使用新的版本(比如客户端的内测版本),而其余的用户使用旧的版本,那么这个在SpringCloud中该如何来实现呢?负载均衡组件使用:SpringCloudLoadBalancer2、需求3、实现思路通过翻阅S......
  • 【spring cloud学习】3、Eureka Server注册中心
    Eureka本身是Netflix开源的一款注册中心产品,并且SpringCloud提供了相应的集成封装。选择Eureka作为注册中心实例来讲解是出于以下原因:(1)Eureka在业界的应用十分广泛,整个框架经受住了Netflix严酷生产环境的考验。(2)除了Eureka注册中心外,Netflix的其他服务治理功能也十分强大,包括Ribbo......
  • SpringCloud常见组件有哪些?
    SpringCloud包含的组件很多,有很多功能是重复的。其中最常用组件包括:•注册中心组件:Eureka、Nacos等•负载均衡组件:Ribbon•远程调用组件:OpenFeign•网关组件:Zuul、Gateway•服务保护组件:Hystrix、Sentinel•服务配置管理组件:SpringCloudConfig、Nacos......