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