Skip to content

Commit

Permalink
Continuous service discovery
Browse files Browse the repository at this point in the history
This change introduces a new way how 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 would try to fetch metrics from it. If the collector cannot get metrics from a new service right away, it'll send a detailed information about what can be done to enable it to the backend that will be reflected in the new discovered services UI. Any services that are sucessfully discovered will be also reflected in the UI. The collector sends entity events to deliver information about the discovered services.

The new functionality can be enbled with "splunk.continuousDiscovery" feature gate by adding `--feature-gates=splunk.continuousDiscovery` argument to the `otecol` command.
  • Loading branch information
dmitryax committed Sep 13, 2024
1 parent 5208240 commit 186bf57
Show file tree
Hide file tree
Showing 4 changed files with 359 additions and 172 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 186bf57

Please sign in to comment.