mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
Fixes #190. With this feature unsee can be configured to proxy requests to selected Alertmanager instances, if it's enabled unsee silence form will send a request via unsee rather than directly. This allows users to manage silences in environments where they have access to unsee but not to Alertmanager. Only silences endpoints on Alertmanager API are proxied.
60 lines
818 B
Go
60 lines
818 B
Go
package config
|
|
|
|
import "time"
|
|
|
|
type alertmanagerConfig struct {
|
|
Name string
|
|
URI string
|
|
Timeout time.Duration
|
|
Proxy bool
|
|
}
|
|
|
|
type jiraRule struct {
|
|
Regex string
|
|
URI string
|
|
}
|
|
|
|
type configSchema struct {
|
|
Alertmanager struct {
|
|
Interval time.Duration
|
|
Servers []alertmanagerConfig
|
|
}
|
|
Annotations struct {
|
|
Default struct {
|
|
Hidden bool
|
|
}
|
|
Hidden []string
|
|
Visible []string
|
|
}
|
|
Debug bool
|
|
Filters struct {
|
|
Default []string
|
|
}
|
|
Labels struct {
|
|
Keep []string
|
|
Strip []string
|
|
Color struct {
|
|
Static []string
|
|
Unique []string
|
|
}
|
|
}
|
|
Listen struct {
|
|
Address string
|
|
Port int
|
|
Prefix string
|
|
}
|
|
Log struct {
|
|
Config bool
|
|
Level string
|
|
}
|
|
JIRA []jiraRule
|
|
Receivers struct {
|
|
Keep []string
|
|
Strip []string
|
|
}
|
|
Sentry struct {
|
|
Private string
|
|
Public string
|
|
}
|
|
}
|