Last generated November 2, 2026

Silence

Silence is the Schema for the silences API.

Full name:
silences.observability.giantswarm.io
Group:
observability.giantswarm.io
Singular name:
silence
Plural name:
silences
Scope:
Namespaced
Versions:
v1alpha2

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

string

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

string

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

object

.spec

object

SilenceSpec defines the desired state of Silence.

.spec.duration

string

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

string

EndsAt defines when the silence expires. Takes precedence over Duration and the valid-until annotation.

.spec.matchers

array Required

Matchers defines the alert matchers that this silence will apply to.

.spec.matchers[*]

object

SilenceMatcher defines an alert matcher to be muted by the Silence.

.spec.matchers[*].matchType

string

MatchType defines the type of matching to perform.

.spec.matchers[*].name

string Required

Name of the label to match.

.spec.matchers[*].value

string Required

Value to match for the given label name.

.spec.startsAt

string

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.