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

alertmanager silence api 添加_第1张图片

alertmanager silence api 添加_第2张图片

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

alertmanager silence api 添加_第3张图片

alertmanager silence api 添加_第4张图片

你可能感兴趣的:(prometheus)