上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 56 下一页
摘要: 一 服务定义 https://www.consul.io/docs/discovery/services#security-configurations 1.1 service 这是定义服务的根级参数。您可以指定参数来配置服务。 范围 描述 默认 必需的 id 指定服务 ID 的字符串值。 如果未指 阅读全文
posted @ 2021-11-25 21:25 小吉猫 阅读(2079) 评论(0) 推荐(1) 编辑
摘要: 一 consul监控项 Transaction timing Leadership changes Autopilot Garbage collection 二 consul服务监控 File descriptors CPU usage Network activity Disk activity 阅读全文
posted @ 2021-11-25 20:23 小吉猫 阅读(1171) 评论(0) 推荐(1) 编辑
摘要: 一 系统设置 1.1 系统时间同步 ~# apt -y install chrony ~# systemctl start chrony ~# systemctl enable chrony 1.2 服务器规划 主机名 IP 角色 consul-01 192.168.174.103 consul s 阅读全文
posted @ 2021-11-24 21:20 小吉猫 阅读(1648) 评论(0) 推荐(0) 编辑
摘要: 一 consul命令格式 root@consul-01:~# consul --help Usage: consul [--version] [--help] <command> [<args>] 可用的命令有: acl 与 Consul 的 ACL 交互 agent 运行一个 Consul 代理 阅读全文
posted @ 2021-11-24 17:59 小吉猫 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 一 consul介绍 官方文档:https://www.consul.io/docs/intro Consul 是一种服务网格解决方案,提供具有服务发现、配置和分段功能的全功能控制平面。这些功能中的每一个都可以根据需要单独使用,也可以一起使用以构建完整的服务网格。Consul 需要一个数据平面并支持 阅读全文
posted @ 2021-11-24 17:28 小吉猫 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 一 修改zoo.cfg文件 官方文档:http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_configuration root@zk-01:~# echo "4lw.commands.whitelist=*" >> /usr/ 阅读全文
posted @ 2021-11-24 16:18 小吉猫 阅读(328) 评论(0) 推荐(0) 编辑
摘要: ~# cat /usr/local/prometheus/rules/redis.yaml groups: - name: redisdown rules: - alert: RedisDown expr: redis_up == 0 for: 1m labels: name: instance s 阅读全文
posted @ 2021-11-24 15:20 小吉猫 阅读(745) 评论(0) 推荐(0) 编辑
摘要: ~# cat /usr/local/prometheus/rules/pod.yaml groups: - name: Container rules: - alert: ContainerCPU expr: (sum by(name,instance) (rate(container_cpu_us 阅读全文
posted @ 2021-11-24 15:19 小吉猫 阅读(555) 评论(0) 推荐(0) 编辑
摘要: prometheus.yml # my global config global: scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. evaluation_in 阅读全文
posted @ 2021-11-24 15:18 小吉猫 阅读(445) 评论(0) 推荐(0) 编辑
摘要: prometheus的配置文件prometheus.yml,它主要分以下几个配置块: 全局配置 global 告警配置 alerting 规则文件配置 rule_files 拉取配置 scrape_configs 远程读写配置 remote_read、remote_write 全局配置 global 阅读全文
posted @ 2021-11-24 14:58 小吉猫 阅读(3020) 评论(0) 推荐(0) 编辑
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 56 下一页