# Functions
DedupAlerts will collect alert groups from all defined Alertmanager upstreams and deduplicate them, so we only return unique alerts.
DedupAutocomplete returns a list of autocomplete hints merged from all Alertmanager upstreams.
DedupColors returns a color map merged from all Alertmanager upstream color maps.
DedupKnownLabels returns a deduplicated slice of all known label names.
DedupKnownLabelValues returns a list of all known values for label $name.
DedupKnownLabels returns a deduplicated slice of all known label names.
GetAlertmanagerByName returns an instance of Alertmanager by name or nil if not found.
GetAlertmanagers returns a list of all defined Alertmanager instances.
NewAlertmanager creates a new Alertmanager instance.
NewHTTPTransport handles the logic of creating a http.RoundTripper instance with properl tls.Config setup.
RegisterAlertmanager will add an Alertmanager instance to the list of instances used when pulling alerts from upstreams.
WithExternalURI option allows to set custom ExternalURI on our instance.
WithHTTPHeaders option can be passed to NewAlertManager in order to set a map of headers that will be passed with every request.
WithHTTPTransport option can be passed to NewAlertmanager in order to set a custom HTTP transport (http.RoundTripper implementation).
WithProxy option can be passed to NewAlertmanager in order to enable request proxying for karma clients.
WithRequestTimeout option can be passed to NewAlertmanager in order to set a custom timeout for Alertmanager upstream requests.
# Structs
Alertmanager represents Alertmanager upstream instance.
# Type aliases
Option allows to pass functional options to NewAlertmanager().