create-silence
Create alert silences in Prometheus Alertmanager by specifying matchers, duration, and reason to temporarily suppress notifications for specific alerts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matchers | Yes | List of matchers for alerts | |
| startsAt | No | Silence start time (ISO8601 format, default is current time) | |
| endsAt | Yes | Silence end time (ISO8601 format) | |
| createdBy | Yes | Username who created the silence | |
| comment | Yes | Reason or explanation for the silence |
Input Schema (JSON Schema)
{
"properties": {
"comment": {
"description": "Reason or explanation for the silence",
"type": "string"
},
"createdBy": {
"description": "Username who created the silence",
"type": "string"
},
"endsAt": {
"description": "Silence end time (ISO8601 format)",
"type": "string"
},
"matchers": {
"description": "List of matchers for alerts",
"items": {
"additionalProperties": false,
"properties": {
"isRegex": {
"description": "Use regex matching",
"type": "boolean"
},
"name": {
"description": "Matcher name (e.g. alertname)",
"type": "string"
},
"value": {
"description": "Matcher value (e.g. HighCPULoad)",
"type": "string"
}
},
"required": [
"name",
"value"
],
"type": "object"
},
"type": "array"
},
"startsAt": {
"description": "Silence start time (ISO8601 format, default is current time)",
"type": "string"
}
},
"required": [
"matchers",
"endsAt",
"createdBy",
"comment"
],
"type": "object"
}