10 2022 档案

摘要:k8s外部实现pod发现 使用外部网络单独部署的prometheus-server进行服务发现k8s中的资源 在 namespace monitoring 创建服务发现账号 prometheus 并授权。 k8s创建sa用户并授权集群权限 root@master1:~/yaml# cat outsi 阅读全文
posted @ 2022-10-10 13:34 PunchLinux 阅读(277) 评论(0) 推荐(0)
摘要:服务发现的类型介绍 prometheus默认是采用pull方式拉取监控数据的,也就是定时去目标主机上抓取metrics数据,每一个被抓取的目标需要暴露一个HTTP接口,prometheus通过这个暴露的接口就可以获取到相应的指标数据,这种方式需要由目标服务决定采集的目标有哪些,通过配置在scrape 阅读全文
posted @ 2022-10-09 21:05 PunchLinux 阅读(2671) 评论(0) 推荐(0)
摘要:安装grafana grafana介绍 grafana是⼀个可视化组件,⽤于接收客户端浏览器的请求并连接到prometheus查询数据,最后经过渲染并在浏览器进⾏体系化显示,需要注意的是,grafana查询数据类似于abbix⼀样需要自定义模板,模板可以手动制作也可以导入已有模板。 grafana安 阅读全文
posted @ 2022-10-07 11:42 PunchLinux 阅读(1013) 评论(0) 推荐(0)
摘要:收集node-exporter指标数据 修改prometheus-server配置文件,在scrape_configs配置项下,添加新job root@prometheus:~\ vim /usr/local/prometheus/prometheus.yml ... - job_name: "k8 阅读全文
posted @ 2022-10-07 11:34 PunchLinux 阅读(1254) 评论(0) 推荐(0)
摘要:基于Operator方式和二进制方式部署prometheus环境Operator部署 Operator部署器是基于已经编写好的yaml文件,可以将prometheus server、alertmanager、grafana、nodeexporter等组件⼀键批量部署在k8s集群当中。 github项目地址: https://github.com/promethe 阅读全文
posted @ 2022-10-05 21:27 PunchLinux 阅读(902) 评论(0) 推荐(0)