Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Those values are used to retrieve the Alertmanager configuration from the secret named after conf.Monitoring.AlertmanagerSecretName // AlertmanagerConfigKey is the key to the alertmanager configuration in the secret AlertmanagerConfigKey = "alertmanager.yaml" // TemplatesSuffix is the suffix used to identify the templates in the secret TemplatesSuffix = ".tmpl" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (Service) Configure ¶
func (s Service) Configure(ctx context.Context, alertmanagerConfigContent []byte, templates map[string]string, tenantID string) error
Configure sends the configuration and templates to Mimir Alertmanager's API It is the caller responsibility to make sure templates names are valid (do not contain any path), and that templates are referenced in the configuration. https://grafana.com/docs/mimir/latest/references/http-api/#set-alertmanager-configuration
Click to show internal directories.
Click to hide internal directories.