You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2022. It is now read-only.
This repo is no longer under development, as the functionality is now available in Alertmanager!
alertmanager-filter
alertmanager-filter receives webhooks from Prometheus Alertmanager, filters and forwards them by a ruleset.
These rules can consist of labels and/or the time when the webhook was received.
Motivation
We wanted time based routing without introducing additional tools which have their own state about alerts.
There is a proposed time-based muting of alerts in alertmanager#2393, which time interval parser this tool uses.
We dislike the proposed muting because we more wanted a ruleset of who is oncall and as of writing this the PR is not merged.
Docker image
Docker image is available on Docker Hub, Quay.io and GitHub
You just need to map your config file into the container at /etc/alertmanager-filter/config.yml docker run -v config.yml:/etc/alertmanager-filter/config.yml swoga/alertmanager-filter
Command line flags
alertmanager-filter requires a path to a YAML config file supplied in the command line flag --config.file=config.yml.
--debug can be used to raise the log level.
Configuration file
listen: <string> | default = :9776metrics_path: <string> | default = /metricsalerts_path: <string> | default = /alertstime_intervals:
# map key is the name of the time interval<string>: [ <time_interval>, ... ]receivers:
# map key is the name of the alertmanager receiver<string>: <receiver>