Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct {
// The targets to use for enrichment
Targets []discovery.Target `alloy:"targets,attr"`
// Which label from targets to use for matching (e.g. "hostname", "ip")
TargetMatchLabel string `alloy:"target_match_label,attr"`
// Which label from logs to match against (e.g. "hostname", "ip")
// If not specified, TargetMatchLabel will be used
MetricsMatchLabel string `alloy:"metrics_match_label,attr,optional"`
// List of labels to copy from discovered targets to logs. If empty, all labels will be copied.
LabelsToCopy []string `alloy:"labels_to_copy,attr,optional"`
ForwardTo []storage.Appendable `alloy:"forward_to,attr"`
}
Arguments configures the prometheus.enrich component.
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
type Exports ¶
type Exports struct {
Receiver storage.Appendable `alloy:"receiver,attr"`
}
Exports holds values which are exported by the prometheus.enrich component.
Click to show internal directories.
Click to hide internal directories.