Skip to content

Commit

Permalink
Update converters with 0.99 upgrade (#755) (#756)
Browse files Browse the repository at this point in the history
(cherry picked from commit 77425ec)

Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
  • Loading branch information
github-actions[bot] and ptodev authored Jun 6, 2024
1 parent 2687a2d commit abf2bc0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func toKubernetesResolver(cfg *loadbalancingexporter.K8sSvcResolver) *loadbalanc
return &loadbalancing.KubernetesResolver{
Service: cfg.Service,
Ports: cfg.Ports,
Timeout: cfg.Timeout,
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ func toServicegraphConnector(state *State, id component.InstanceID, cfg *service
MaxItems: cfg.Store.MaxItems,
TTL: cfg.Store.TTL,
},
CacheLoop: cfg.CacheLoop,
StoreExpirationLoop: cfg.StoreExpirationLoop,
MetricsFlushInterval: cfg.MetricsFlushInterval,
CacheLoop: cfg.CacheLoop,
StoreExpirationLoop: cfg.StoreExpirationLoop,
MetricsFlushInterval: cfg.MetricsFlushInterval,
DatabaseNameAttribute: cfg.DatabaseNameAttribute,
Output: &otelcol.ConsumerArguments{
Metrics: ToTokenizedConsumers(nextMetrics),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func toSpanmetricsConnector(state *State, id component.InstanceID, cfg *spanmetr
Explicit: explicit,
},
MetricsFlushInterval: cfg.MetricsFlushInterval,
MetricsExpiration: cfg.MetricsExpiration,
Namespace: cfg.Namespace,
ResourceMetricsCacheSize: cfg.ResourceMetricsCacheSize,
ResourceMetricsKeyAttributes: cfg.ResourceMetricsKeyAttributes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ otelcol.connector.servicegraph "default" {
}
cache_loop = "2m0s"
store_expiration_loop = "5s"
database_name_attribute = ""
database_name_attribute = "db_name3"

output {
metrics = [otelcol.exporter.otlp.default.input]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ connectors:
max_items: 10
cache_loop: 2m
store_expiration_loop: 5s
database_name_attribute: db_name3

exporters:
otlp:
Expand Down

0 comments on commit abf2bc0

Please sign in to comment.