Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { WebAddr string ManagementAddr string Environment string OtelUrl string Instance string PrintVersion bool Logger zap.Config Connectors []connectors.Connector WhereTemplate *template.Template Interval time.Duration Dashboards map[string]*Dashboard Style string }
func NewConfiguration ¶
type Dashboard ¶
type Dashboard struct { Name string Mode DashboardMode Filter []Rule }
type DashboardMode ¶
type DashboardMode uint8
const ( // Excluding is the default mode, this mirrors a mindset of "everything // new has to be looked at, at least once". // `0` is the empty value, so in case it is used in a context with // uninitialized data, it will still be the default. Excluding DashboardMode = iota Including )
func (DashboardMode) MarshalTOML ¶
func (s DashboardMode) MarshalTOML() ([]byte, error)
func (DashboardMode) String ¶
func (s DashboardMode) String() string
func (*DashboardMode) UnmarshalTOML ¶
func (s *DashboardMode) UnmarshalTOML(data interface{}) (err error)
type Rule ¶
type Rule struct { Description string What RuleMatcher When RuleMatcher Labels map[string]RuleMatcher }
type RuleMatcher ¶
func ParseRuleMatcher ¶
func ParseRuleMatcher(value string) RuleMatcher
Click to show internal directories.
Click to hide internal directories.