Last generated November 2, 2026
Silence
Silence is the Schema for the silences API.
Version v1alpha2
Example CR
apiVersion: observability.giantswarm.io/v1alpha2
kind: Silence
metadata:
name: my-sample-silence
namespace: default
spec:
matchers:
- name: alertname
value: MyPagingAlert
matchType: "="
- name: alertname
value: Heartbeat
matchType: "!="
---
# Example: schedule an upcoming maintenance window with exact timestamps.
apiVersion: observability.giantswarm.io/v1alpha2
kind: Silence
metadata:
name: scheduled-maintenance-silence
namespace: default
spec:
startsAt: "2025-07-16T02:00:00Z"
endsAt: "2025-07-16T06:00:00Z"
matchers:
- name: alertname
value: ".*Disk.*"
matchType: "=~"
- name: job
value: node-exporter
matchType: "="
---
# Example: silence active from creation for a fixed duration (hours and minutes).
apiVersion: observability.giantswarm.io/v1alpha2
kind: Silence
metadata:
name: incident-response-silence
namespace: default
spec:
duration: "2h30m"
matchers:
- name: severity
value: "warning|info"
matchType: "=~"
- name: team
value: platform
matchType: "="
---
# Example: silence active for one week using the week unit.
apiVersion: observability.giantswarm.io/v1alpha2
kind: Silence
metadata:
name: week-long-silence
namespace: default
spec:
duration: "1w"
matchers:
- name: alertname
value: KnownFlappingAlert
matchType: "="
Properties
.apiVersion
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
.kind
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
.metadata
.spec
SilenceSpec defines the desired state of Silence.
.spec.duration
Duration defines how long the silence is active from StartsAt (or creation time when StartsAt is unset). Ignored when EndsAt is set. Takes precedence over the valid-until annotation. Supports weeks (w), days (d), hours (h), minutes (m), and seconds (s): “7d”, “2w”, “1d12h”, “30m”.
.spec.endsAt
EndsAt defines when the silence expires. Takes precedence over Duration and the valid-until annotation.
.spec.matchers
Matchers defines the alert matchers that this silence will apply to.
.spec.matchers[*]
SilenceMatcher defines an alert matcher to be muted by the Silence.
.spec.matchers[*].matchType
MatchType defines the type of matching to perform.
.spec.matchers[*].name
Name of the label to match.
.spec.matchers[*].value
Value to match for the given label name.
.spec.startsAt
StartsAt defines when the silence becomes active. Defaults to the object’s creation timestamp.
This documentation page shows information based on silence-operator v0.21.1.
Need help with the platform API?
We listen in your Slack support channel. And of course, we welcome your pull requests to improve these docs!