Skip to content

Commit

Permalink
Update converters with 0.99 upgrade (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptodev authored and wildum committed May 23, 2024
1 parent 539dd5a commit ef037b6
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 @@ -145,5 +145,6 @@ func toKubernetesResolver(cfg *loadbalancingexporter.K8sSvcResolver) *loadbalanc
return &loadbalancing.KubernetesResolver{
Service: cfg.Service,
Ports: cfg.Ports,
Timeout: cfg.Timeout,
}
}
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 ef037b6

Please sign in to comment.