文章分类 -  Prometheus / prometheus-服务自动发现功能

摘要:1、安装包的定制 - 定制node_exporter及consul注册 - 定制自动安装脚本 上传node_exporter服务包到搭建的文件服务中 解压 tar -zxvf node_exporter-1.7.0.linux-amd64.tar.gz 重命名 mv node_exporter-1. 阅读全文
posted @ 2024-03-24 19:17 ~技术小白 阅读(6) 评论(0) 推荐(0) 编辑
摘要:1、内部自建的http文件服务器 - nginx服务器 - 管理文件 安装nginx 检查下是否有安装gcc、openssl gcc --version openssl 没有的话需要安装gcc、openssl yum gcc openssl yum install pcre pcre-devel y 阅读全文
posted @ 2024-03-10 20:35 ~技术小白 阅读(5) 评论(0) 推荐(0) 编辑
摘要:发生在采集样本数据之前,对于Target实例的标签进行重写的机制在prometheus被称为relabeling机制 使用replace/labelmap重写标签 scrape_configs: - job_name: node_exporter consul_sd_configs: - serve 阅读全文
posted @ 2024-03-09 18:31 ~技术小白 阅读(5) 评论(0) 推荐(0) 编辑
摘要:consul用于云原生的服务治理,可以实现服务发现、服务配置、健康检查、键值存储、安全服务通信、多数据中心等 主要解决云原生环境中复杂多样的微服务的管理问题,尤其是分布式集群,涉及的服务多、变化多,靠人工变化几无可能。 安装consul 安装相关工具 yum install yum-utils 加入 阅读全文
posted @ 2024-03-08 20:47 ~技术小白 阅读(2) 评论(0) 推荐(0) 编辑
摘要:- JSON格式或者YML格式 - 不需要重启prometheus - 批量管理 - job_name: "files_sd_test" file_sd_configs: - files: - /usr/local/prometheus/files_sd/*.yml refresh_interval 阅读全文
posted @ 2024-03-08 13:07 ~技术小白 阅读(1) 评论(0) 推荐(0) 编辑
摘要:为什么需要服务发现? - 管理灵活 - 应对大规模环境 阅读全文
posted @ 2024-03-07 21:07 ~技术小白 阅读(2) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示