Skip to content

Commit

Permalink
Continuous service discovery (#5363)
Browse files Browse the repository at this point in the history
This change introduces a new way of how the discovery mechanism works. Instead of observing data for the first 10 seconds and creating a static receiver_cretor config from that, it'll be running discovery receiver watching for all supported receivers. Once a new endpoint for any supported service is available, the collector will try to fetch metrics from it. If the collector cannot get metrics from a new service right away, it'll send detailed information about what can be done to enable it to the backend, which will be reflected in the newly discovered services UI. Any services that are successfully discovered will also be reflected in the UI. The collector sends entity events as OTLP logs to deliver information about the discovered services.

The new functionality can be enabled with "splunk.continuousDiscovery" feature gate by adding --feature-gates=splunk.continuousDiscovery argument to the otecol command.
  • Loading branch information
dmitryax authored Sep 16, 2024
1 parent aec8fd2 commit 9dc5f0c
Show file tree
Hide file tree
Showing 4 changed files with 268 additions and 249 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ require (
go.etcd.io/etcd/client/v2 v2.305.15
go.opentelemetry.io/collector/component/componentstatus v0.109.0
go.opentelemetry.io/collector/config/confighttp v0.109.0
go.opentelemetry.io/collector/config/configopaque v1.15.0
go.opentelemetry.io/collector/config/configtelemetry v0.109.0
go.opentelemetry.io/collector/confmap v1.15.0
go.opentelemetry.io/collector/confmap/provider/envprovider v1.15.0
Expand Down Expand Up @@ -350,7 +351,6 @@ require (
go.opentelemetry.io/collector/config/configcompression v1.15.0 // indirect
go.opentelemetry.io/collector/config/configgrpc v0.109.0 // indirect
go.opentelemetry.io/collector/config/confignet v0.109.0 // indirect
go.opentelemetry.io/collector/config/configopaque v1.15.0 // indirect
go.opentelemetry.io/collector/config/configretry v1.15.0 // indirect
go.opentelemetry.io/collector/config/configtls v1.15.0 // indirect
go.opentelemetry.io/collector/config/internal v0.109.0 // indirect
Expand Down Expand Up @@ -625,7 +625,7 @@ require (
go.opencensus.io v0.24.0
go.opentelemetry.io/collector/component v0.109.0
go.opentelemetry.io/collector/consumer v0.109.0
go.opentelemetry.io/collector/featuregate v1.15.0 // indirect
go.opentelemetry.io/collector/featuregate v1.15.0
go.opentelemetry.io/collector/semconv v0.109.0
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.55.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.55.0 // indirect
Expand Down
Loading

0 comments on commit 9dc5f0c

Please sign in to comment.