乐趣区

关于prometheus:alertmanager-silence-api-添加

Add


curl '10.26.5x.3x:9093/api/v2/silences' \-H 'Content-Type: application/json' \
  --data '{"matchers":[{"name":"alertname","value":"Host_磁盘监控告警_linux_high>85%","isRegex":false}],"startsAt":"2022-08-22T09:10:45.446Z","endsAt":"2022-09-17T09:44:45.446Z","createdBy":"test","comment":"tmp","id":null}' \
  --compressed \
  --insecur

Update

curl '10.26.5x.3x:9093/api/v2/silences' \-H 'Content-Type: application/json' \
  --data '{"matchers":[{"name":"alertname","value":"Host_磁盘监控告警_linux_high>85%","isRegex":false}],"startsAt":"2022-08-22T09:10:45.446Z","endsAt":"2022-09-17T09:44:45.446Z","createdBy":"test","comment":"tmp111111111111111111111","id":"199514ee-9e60-4d0e-8c32-8b98a48c1953"}' \
  --compressed \
  --insecure

退出移动版