钉钉告警api_钉钉崩溃了怎么回事

(52) 2024-08-24 07:01:01

dingding.yaml

[root@xx prometheus-rule]# cat dingding.yaml 
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: webhook-dingtalk
  name: webhook-dingtalk
  namespace: monitoring
spec:
  replicas: 1
  selector:
    matchLabels:
      app: webhook-dingtalk
  template:
    metadata:
      labels:
        app: webhook-dingtalk
    spec:
      containers:
      - image: timonwong/prometheus-webhook-dingtalk:latest
        name: webhook-dingtalk
        args:
        - --ding.profile=webhook1=https://oapi.dingtalk.com/robot/send?access_token=8fa4c053f5fe4184eaa01d14ccc200b6b414a1884earceaeewsx3
        #上面创建的钉钉机器人hook
        ports:
        - containerPort: 8060
          protocol: TCP
        resources:
          requests:
            cpu: 100m
            memory: 10

THE END

发表回复