草庐IT

dingding

全部标签

k8s集群监控及报警(Prometheus+AlertManager+Grafana+prometheusAlert+Dingding)

背景:k8s集群部署后,急需可靠稳定低延时的集群监控报警系统,报警k8s集群正常有序运行,经过不断调研和测试,最终选择Prometheus+AlertManager+Grafana+prometheusAlert的部署方案,故障信息报警至钉钉群和邮件,如需要额外监控可部署pushgateway主动推送数据到Prometheus进行数据采集部署方案:Prometheus+AlertManager+Grafana+prometheusAlert+Dingding(可自行部署pushgateway)前提:k8s集群已经部署完毕,详细见使用kubeadm搭建生产环境的单master节点k8s集群部署一

dingding机器人

“自定义机器人”只支持消息发送,自动回复需要“企业内部机器人”消息发送importrequestsimportjsonres=requests.post('https://oapi.dingtalk.com/robot/send?access_token=036a339axxx',data=json.dumps({"text":{"content":"helloworld"#不设置关键词},"at":{"atUserIds":["user123"],"isAtAll":False#不要省略},"msgtype":"text",}),headers={'Content-Type':'applic

python dingding --- 钉钉机器人API

dingding—钉钉机器人github源码地址:https://github.com/zly717216/dingding一、模块介绍版本号dingding:V1.0.0功能当前版本支持群机器人相关API调用,包括发送文本消息、文本链接、markdown、整体跳转ActionCard、独立跳转ActionCard、FeedCard。文本消息类型文本链接类型markdown类型整体跳转ActionCard类型独立跳转ActionCard类型FeedCard类型如何使用1.创建钉钉群2.创建机器人,复制webhook,如:https://oapi.dingtalk.com/robot/send?

python dingding --- 钉钉机器人API

dingding—钉钉机器人github源码地址:https://github.com/zly717216/dingding一、模块介绍版本号dingding:V1.0.0功能当前版本支持群机器人相关API调用,包括发送文本消息、文本链接、markdown、整体跳转ActionCard、独立跳转ActionCard、FeedCard。文本消息类型文本链接类型markdown类型整体跳转ActionCard类型独立跳转ActionCard类型FeedCard类型如何使用1.创建钉钉群2.创建机器人,复制webhook,如:https://oapi.dingtalk.com/robot/send?