The silence-operator manages alertmanager alerts.
The silence-operator monitors the Kubernetes API server for changes
to Silence
objects and ensures that the current Alertmanager alerts match these objects.
The Operator reconciles the Silence
Custom Resource Definition (CRD) which
can be found here.
Silence
CRs.Sample CR:
apiVersion: monitoring.giantswarm.io/v1alpha1
kind: Silence
metadata:
name: test-silence1
spec:
targetTags:
- name: installation
value: kind
- name: provider
value: local
matchers:
- name: cluster
value: test
isRegex: false
targetTags
field:sync
command uses to match CRs towards a specific environmentname
and value
which is a regexp matched against corresponding name
tag given on the command lineSilence
doesn't specify any targetTags
it is assumed to match any environment and is syncedSilence
to be synced, all tags defined in its targetTags
must match all tags given on the sync
command lineFor example, to ensure raw CR, stored at /folder/cr.yaml
, run:
silence-operator sync --tag installation=kind --tag provider=local --dir /folder
matchers
field corresponds to the Alertmanager silence matchers
each of which consists of:name
- name of tag on an alert to matchvalue
- fixed string or expression to match against the value of the tag named by name
above on an alertisRegex
- a boolean specifying whether to treat value
as a regex (=~
) or a fixed string (=
)isEqual
- a boolean specifying whether to use equal signs (=
or =~
) or to negate the matcher (!=
or !~
)Download the latest release: https://github.com/giantswarm/silence-operator/releases/latest
Clone the git repository: https://github.com/giantswarm/silence-operator.git
Download the latest docker image from here: https://quay.io/repository/giantswarm/silence-operator
Build the standard way.
go build github.com/giantswarm/silence-operator
See CONTRIBUTING for details on submitting patches, the contribution workflow as well as reporting bugs.
For security issues, please see the security policy.
silence-operator is under the Apache 2.0 license. See the LICENSE file for details.
Version | Tag | Published |
---|---|---|
v0.4.1-0.20211129213849-60b2bff483c8 | 6mos ago | |
v0.4.0 | 6mos ago | |
v0.3.1-0.20211115085805-3ad14687ee68 | 6mos ago | |
v0.3.0 | 6mos ago |