Prometheus

Prometheus

  1. 什么是普罗米修斯?

是个时间序列数据库,根据时间标识数据

  1. 监控架构?

获取数据

整理数据

展示数据

  1. type的分类?

数值、只能递增

可大可小的仪表盘数据

直方图范围数据

summary百分比数据

  1. 数据的样子?结构?

指标:监控的是什么东西?

标签:是对消息的描述

样本:实际数据+时间戳

  1. 使用方式

prom SQL查询语言

  1. 重要的点

配置文件查看:status -> configration

监控的服务:status -> targets,这里面会显示job对应的ip

右边的命令提示

  1. 配置

重点一:全局配置。抓取间隔、抓取超时时间、评估间隔

重点二:告警配置。

第三部分:抓取配置

配置文件在prometheus.yml文件里面写的。

找这个配置文件的方法:

ps -ef | grep prometheus

  1. 跨namespace的服务访问方式

service.namespace.svc.cluster.local

  1. 前端页面的展示仪表盘,即页面部署样式,可以在grafana的官网下载json模版插件

  2. 架构

  1. 告警触发条件和告警发送方式定义
  1. p99 p95是啥意思?

99%的请求响应时间低于哪个毫秒

  1. Prometheus的时序数据库是哪个?

TSDB

  1. 工作原理
  1. 默认配置文件是哪个?

prometheus.yml

里面有全局配置、抓取规则、抓取数据来源、告警规则这些

一般默认用9090端口

grafana的默认端口3000

  1. grafana和Prometheus是怎么联动的?

grafana通过发送http请求,找Prometheus获取数据,来进行展示

  1. 大的界面叫仪表盘,小的框框叫图表

  2. Prometheus监控k8s集群的链路是怎么样的?

Prometheus 会先通过访问 kube-apiserver 获取 Kubernetes 集群中的 Node、Pod、Service、Endpoint 等信息进行服务发现,然后根据这些目标地址直接去抓 kubelet、node-exporter、kube-state-metrics 以及业务 Pod 等组件暴露的 metrics 接口,从而实现对整个集群的监控。

相关推荐
AAA@峥15 小时前
从零搭建 Prometheus 完整监控告警体系|Linux 部署 + node_exporter+Grafana 可视化
云原生·grafana·prometheus
liuyicenysabel2 天前
Grafana + Prometheus 分级告警配置设计(P0/P1/P2)
javascript·grafana·prometheus
随遇而安zx2 天前
SpringCloud---可观测性与监控:Actuator / Micrometer / Prometheus / Grafana 深度解析
spring cloud·grafana·prometheus
qq_452396232 天前
第四篇:《Prometheus 深度实战:指标设计、Exporter 开发与服务发现》
服务发现·prometheus
刘某的Cloud3 天前
k8s部署prometheus架构规则
linux·运维·kubernetes·prometheus·监控
LlmCraft|大模型工程实践3 天前
12. Docker 日志管理与监控:ELK 日志收集 + Prometheus 性能监控
elk·docker·prometheus
DevOps老兵3 天前
AI Infra实战02:GPU监控实战,用DCGM+Prometheus+Grafana看清每一张卡
人工智能·grafana·prometheus·ai infra·gpu监控·dcgm
heimeiyingwang3 天前
【Prometheus·入门篇】数据模型:Metric 类型、标签与时间序列
prometheus
heimeiyingwang4 天前
【Prometheus·部署篇】配置详解:scrape_config、relabeling 与服务发现
prometheus
heimeiyingwang7 天前
【Prometheus·入门篇】Prometheus 是什么:从 Nagios 到云原生监控的演进
prometheus