-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable configuring telemetry through service config file (#4069)
* consolidate flags for configuring telemetry Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * Enable configuring metrics via service config Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * Make components take MetricsLevel from TelemetrySettings Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * Fix lint errors Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * Remove configuration for metrics prefix and adding instance ID Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * Make entire Collector available to telemetry initialization, use it to set metrics prefix to buildInfo.Command Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * fix metrics prefix tests Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * Fix lint errors Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * config/telemetry: parseLevel() no longer needs to be exported Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * config/telemetry: remove intanceID and prefix flags Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * Apply PR feedback Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * address PR feedback Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * Avoid linter complaining about use of deprecated functions Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com> * Update CHANGELOG Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
- Loading branch information
Showing
22 changed files
with
200 additions
and
144 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
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
19 changes: 19 additions & 0 deletions
19
config/configunmarshaler/testdata/invalid-metrics-level.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
receivers: | ||
examplereceiver: | ||
processors: | ||
exampleprocessor: | ||
exporters: | ||
exampleexporter: | ||
extensions: | ||
exampleextension: | ||
service: | ||
telemetry: | ||
metrics: | ||
level: "unknown" | ||
extensions: [exampleextension] | ||
pipelines: | ||
traces: | ||
receivers: [examplereceiver] | ||
processors: [exampleprocessor] | ||
exporters: [exampleexporter] | ||
|
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.