-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add sub command to generate sample configuration for the collector #5943
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
logging: | ||
# LogLevel defines log level of the logging exporter; options are debug, info, warn, error. | ||
loglevel: 0 | ||
# SamplingInitial defines how many samples are initially logged during each second. | ||
sampling_initial: 2 | ||
# SamplingThereafter defines the sampling rate after the initial samples are logged. | ||
sampling_thereafter: 500 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
otlp: | ||
# Timeout is the timeout for every attempt to send data to the backend. | ||
timeout: 5s | ||
# The target to which the exporter is going to send traces or metrics, | ||
# using the gRPC protocol. The valid syntax is described at | ||
# https://github.com/grpc/grpc/blob/master/doc/naming.md. | ||
endpoint: "otel-collector.default:4317" | ||
# The compression key for supported compression types within collector. | ||
compression: gzip | ||
# TLSSetting struct exposes TLS client configuration. | ||
tls: | ||
# Path to the CA cert. For a client this verifies the server certificate. | ||
# For a server this verifies client certificates. If empty uses system root CA. | ||
# (optional) | ||
ca_file: "/path/to/ca" | ||
# Path to the TLS cert to use for TLS required connections. (optional) | ||
cert_file: "/path/to/cert" | ||
# Path to the TLS key to use for TLS required connections. (optional) | ||
key_file: "/path/to/key" | ||
# In gRPC when set to true, this is used to disable the client transport security. | ||
# See https://godoc.org/google.golang.org/grpc#WithInsecure. | ||
# In HTTP, this disables verifying the server's certificate chain and host name | ||
# (InsecureSkipVerify in the tls Config). Please refer to | ||
# https://godoc.org/crypto/tls#Config for more information. | ||
# (optional, default false) | ||
insecure: false | ||
# InsecureSkipVerify will enable TLS but not verify the certificate. | ||
insecure_skip_verify: false | ||
# The headers associated with gRPC requests. | ||
headers: null |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
otlphttp: | ||
# The target URL to send data to (e.g.: http://some.url:9411/v1/traces). | ||
endpoint: "localhost:3333" | ||
# TLSSetting struct exposes TLS client configuration. | ||
tls: | ||
# Path to the CA cert. For a client this verifies the server certificate. | ||
# For a server this verifies client certificates. If empty uses system root CA. | ||
# (optional) | ||
ca_file: "/path/to/ca" | ||
# Path to the TLS cert to use for TLS required connections. (optional) | ||
cert_file: "/path/to/cert" | ||
# Path to the TLS key to use for TLS required connections. (optional) | ||
key_file: "/path/to/key" | ||
# In HTTP, this disables verifying the server's certificate chain and host name | ||
# (InsecureSkipVerify in the tls Config). Please refer to | ||
# https://godoc.org/crypto/tls#Config for more information. | ||
# (optional, default false) | ||
insecure: false | ||
# InsecureSkipVerify will enable TLS but not verify the certificate. | ||
insecure_skip_verify: false | ||
# Timeout parameter configures `http.Client.Timeout`. | ||
timeout: 30s | ||
# Additional headers attached to each HTTP request sent by the client. | ||
# Existing header values are overwritten if collision happens. | ||
headers: null | ||
# The compression key for supported compression types within collector. | ||
compression: gzip | ||
# The URL to send metrics to. If omitted the Endpoint + "/v1/metrics" will be used. | ||
metrics_endpoint: "/api/v2/metrics/consume" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
memory_ballast: | ||
# SizeMiB is the size, in MiB, of the memory ballast | ||
# to be created for this process. | ||
size_mib: 500 | ||
# SizeInPercentage is the maximum amount of memory ballast, in %, targeted to be | ||
# allocated. The fixed memory settings SizeMiB has a higher precedence. | ||
size_in_percentage: 50 |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this won't cause backward compatibility issues because we are forcing implementations to embed the base factory, right?