Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuous service discovery #5363

Merged
merged 1 commit into from
Sep 16, 2024
Merged

Continuous service discovery #5363

merged 1 commit into from
Sep 16, 2024

Conversation

dmitryax
Copy link
Contributor

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.

@dmitryax dmitryax requested review from a team as code owners September 13, 2024 23:33
@atoulme
Copy link
Contributor

atoulme commented Sep 13, 2024

Changes look ok but lint disagrees, please take a look.

@dmitryax
Copy link
Contributor Author

Changes look ok but lint disagrees, please take a look.

Oh right, I forgot to remove a function that was split

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.
@dmitryax dmitryax merged commit 9dc5f0c into main Sep 16, 2024
236 checks passed
@dmitryax dmitryax deleted the continuous-discovery branch September 16, 2024 23:32
@github-actions github-actions bot locked and limited conversation to collaborators Sep 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants