Documentation
¶
Index ¶
Constants ¶
View Source
const AnnotationsSourceTenants = "monitoring.grafana.com/source_tenants"
Variables ¶
View Source
var DefaultArguments = Arguments{ SyncInterval: 5 * time.Minute, MimirNameSpacePrefix: "alloy", HTTPClientConfig: config.DefaultHTTPClientConfig, PrometheusHTTPPrefix: "/prometheus", }
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct {
Address string `alloy:"address,attr"`
TenantID string `alloy:"tenant_id,attr,optional"`
UseLegacyRoutes bool `alloy:"use_legacy_routes,attr,optional"`
PrometheusHTTPPrefix string `alloy:"prometheus_http_prefix,attr,optional"`
HTTPClientConfig config.HTTPClientConfig `alloy:",squash"`
SyncInterval time.Duration `alloy:"sync_interval,attr,optional"`
MimirNameSpacePrefix string `alloy:"mimir_namespace_prefix,attr,optional"`
ExternalLabels map[string]string `alloy:"external_labels,attr,optional"`
ExtraQueryMatchers *ExtraQueryMatchers `alloy:"extra_query_matchers,block,optional"`
RuleSelector kubernetes.LabelSelector `alloy:"rule_selector,block,optional"`
RuleNamespaceSelector kubernetes.LabelSelector `alloy:"rule_namespace_selector,block,optional"`
}
func (*Arguments) SetToDefault ¶
func (args *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new Component and initializes required clients based on the provided configuration.
func (*Component) CurrentHealth ¶
func (*Component) NotifyClusterChange ¶ added in v1.1.0
func (c *Component) NotifyClusterChange()
type ConfigUpdate ¶
type ConfigUpdate struct {
// contains filtered or unexported fields
}
type DebugInfo ¶
type DebugInfo struct {
Error string `alloy:"error,attr,optional"`
PrometheusRules []DebugK8sPrometheusRule `alloy:"prometheus_rule,block,optional"`
MimirRuleNamespaces []DebugMimirNamespace `alloy:"mimir_rule_namespace,block,optional"`
}
type DebugK8sPrometheusRule ¶
type DebugMimirNamespace ¶
type ExtraQueryMatchers ¶ added in v1.5.0
type ExtraQueryMatchers struct {
Matchers []Matcher `alloy:"matcher,block,optional"`
}
func (*ExtraQueryMatchers) Validate ¶ added in v1.5.0
func (e *ExtraQueryMatchers) Validate() error
Click to show internal directories.
Click to hide internal directories.