-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[receiver/discovery] Combine matching conditions with different statuses
Define a match conditions status as a field instead of a map key. This way we make the status evaluation deterministic. The first matching rule defines the status of the discovery endpoint. Without this reorganization it's unclear which status wins in case of overlapping matching rules. For example the following configuration: ``` receivers: prometheus_simple: rule: type == "hostport" and command contains "otelcol" resource_attributes: one.key: one.value two.key: two.value status: metrics: successful: - regexp: ^otelcol_process_uptime$ first_only: true log_record: body: Successfully connected to prometheus server ``` is changed to ``` receivers: prometheus_simple: rule: type == "hostport" and command contains "otelcol" resource_attributes: one.key: one.value two.key: two.value status: metrics: - status: successful regexp: ^otelcol_process_uptime$ first_only: true log_record: body: Successfully connected to prometheus server ```
- Loading branch information
Showing
40 changed files
with
1,141 additions
and
1,077 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.