Skip to content

Commit

Permalink
replace alloy tags by river
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum committed May 23, 2024
1 parent b72aa79 commit 539dd5a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type Arguments struct {

// DatabaseNameAttribute is the attribute name used to identify the database name from span attributes.
// The default value is db.name
DatabaseNameAttribute string `alloy:"database_name_attribute,attr,optional"`
DatabaseNameAttribute string `river:"database_name_attribute,attr,optional"`

// Output configures where to send processed data. Required.
Output *otelcol.ConsumerArguments `river:"output,block"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type Arguments struct {

// MetricsExpiration is the time period after which metrics are considered stale and are removed from the cache.
// Default value (0) means that the metrics will never expire.
MetricsExpiration time.Duration `alloy:"metrics_expiration,attr,optional"`
MetricsExpiration time.Duration `river:"metrics_expiration,attr,optional"`

// Namespace is the namespace of the metrics emitted by the connector.
Namespace string `river:"namespace,attr,optional"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ type ResolverSettings struct {
Kubernetes *KubernetesResolver `river:"kubernetes,block,optional"`
// TODO: add AWSCloudMap
// https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/27588
//AWSCloudMap *AWSCloudMapResolver `alloy:"aws_cloud_map,block,optional"`
//AWSCloudMap *AWSCloudMapResolver `river:"aws_cloud_map,block,optional"`
}

func (resolverSettings ResolverSettings) Convert() loadbalancingexporter.ResolverSettings {
Expand Down Expand Up @@ -205,9 +205,9 @@ func (dnsResolver *DNSResolver) Convert() loadbalancingexporter.DNSResolver {

// KubernetesResolver defines the configuration for the k8s resolver
type KubernetesResolver struct {
Service string `alloy:"service,attr"`
Ports []int32 `alloy:"ports,attr,optional"`
Timeout time.Duration `alloy:"timeout,attr,optional"`
Service string `river:"service,attr"`
Ports []int32 `river:"ports,attr,optional"`
Timeout time.Duration `river:"timeout,attr,optional"`
}

var _ river.Defaulter = &KubernetesResolver{}
Expand Down

0 comments on commit 539dd5a

Please sign in to comment.