Configuration - Silence
Silence Configuration ¶
The notification service is designed to seamlessly integrate with third-party systems. This service operates by receiving silence requests or updates from repositories, storing these silence records in a database, and forwarding them to Alertmanager. Consequently, this process leads to the silencing of alerts associated with the relevant labels.
The following is a list of APIs supported by Alertmanager. UAS also offers support for these actions, which can be utilized through both API integration and Git repositories.
List: ¶
https://mas-alert-alertmanager.int.wfraint-gen-a.int.infra.webex.com/api/v2/silences?filter=app_group%3D%22mas%22&silenced=false&inhibited=false&active=true
[
{
"id": "aafc6e33-b8fa-47a5-a843-dcb187006d13",
"status": {
"state": "active"
},
"updatedAt": "2023-12-08T08:45:14.169Z",
"comment": "maintain",
"createdBy": "taowa2",
"endsAt": "2023-12-08T10:44:05.581Z",
"matchers": [
{
"isEqual": true,
"isRegex": false,
"name": "app",
"value": "mas"
}
],
"startsAt": "2023-12-08T08:45:14.169Z"
},
{
"id": "7867c802-63ec-4c17-b546-25b1bdd5dda1",
"status": {
"state": "active"
},
"updatedAt": "2023-10-27T03:07:36.542Z",
"comment": "Silence for 8760h",
"createdBy": "WebexPlatform/monitoring-alert-silencer",
"endsAt": "2024-08-01T12:44:31.813Z",
"matchers": [
{
"isEqual": false,
"isRegex": false,
"name": "app",
"value": "mas"
}
],
"startsAt": "2023-10-27T03:07:36.542Z"
},
{
"id": "e4e6e785-1b35-4437-8664-857b9750ea79",
"status": {
"state": "pending"
},
"updatedAt": "2023-12-08T08:47:30.370Z",
"comment": "maintain",
"createdBy": "taowa2",
"endsAt": "2023-12-10T10:45:39.693Z",
"matchers": [
{
"isEqual": true,
"isRegex": false,
"name": "app",
"value": "mas"
}
],
"startsAt": "2023-12-09T08:45:39.693Z"
},
{
"id": "4e19c234-10e0-462b-92c9-02d450ecec35",
"status": {
"state": "expired"
},
"updatedAt": "2023-12-08T08:47:30.370Z",
"comment": "maintain",
"createdBy": "taowa2",
"endsAt": "2023-12-08T08:47:30.370Z",
"matchers": [
{
"isEqual": true,
"isRegex": false,
"name": "app",
"value": "mas"
}
],
"startsAt": "2023-12-08T08:47:30.370Z"
}
]
Add: ¶
https://prometheusalerts.int.wfraint-gen-a.int.infra.webex.com/api/v2/silences
POST Request
{
"matchers": [
{
"name": "app",
"value": "mas.*",
"isRegex": true,
"isEqual": true
}
],
"startsAt": "2023-12-09T08:45:39.693Z",
"endsAt": "2023-12-10T10:45:39.693Z",
"createdBy": "taowa2",
"comment": "maintain",
"id": null
}
Response
{"silenceID":"4e19c234-10e0-462b-92c9-02d450ecec35"}
Update: ¶
https://prometheusalerts.int.wfraint-gen-a.int.infra.webex.com/api/v2/silences
POST Request
{
"matchers": [
{
"name": "app",
"value": "mas.*",
"isRegex": true,
"isEqual": true
}
],
"startsAt": "2023-12-09T08:45:39.693Z",
"endsAt": "2023-12-10T10:45:39.693Z",
"createdBy": "taowa2",
"comment": "maintain",
"id": "e4e6e785-1b35-4437-8664-857b9750ea79"
}
Delete: ¶
https://mas-alert-alertmanager.int.wfraint-gen-a.int.infra.webex.com/api/v2/silence/0e833d5d-0a70-4b19-8fcd-0d7b77540745
