From db5c4729dfb7c3edca956b24a3b2db5cee8ab550 Mon Sep 17 00:00:00 2001 From: Pablo Collins Date: Fri, 21 Jul 2023 09:08:16 -0700 Subject: [PATCH] update cfg metadata --- cfg-metadata/exporter/awscloudwatchlogs.yaml | 32 +- cfg-metadata/exporter/awsemf.yaml | 30 +- cfg-metadata/exporter/awskinesis.yaml | 32 +- cfg-metadata/exporter/awsxray.yaml | 38 + cfg-metadata/exporter/cassandra.yaml | 31 + cfg-metadata/exporter/clickhouse.yaml | 49 +- cfg-metadata/exporter/coralogix.yaml | 414 +++---- cfg-metadata/exporter/datadog.yaml | 78 +- cfg-metadata/exporter/dynatrace.yaml | 107 +- cfg-metadata/exporter/elasticsearch.yaml | 80 +- cfg-metadata/exporter/f5cloud.yaml | 107 +- cfg-metadata/exporter/googlecloud.yaml | 129 +- cfg-metadata/exporter/googlecloudpubsub.yaml | 32 +- .../exporter/googlemanagedprometheus.yaml | 43 +- cfg-metadata/exporter/influxdb.yaml | 120 +- cfg-metadata/exporter/instana.yaml | 77 +- cfg-metadata/exporter/jaeger.yaml | 103 +- cfg-metadata/exporter/jaeger_thrift.yaml | 77 +- cfg-metadata/exporter/kafka.yaml | 46 +- cfg-metadata/exporter/loadbalancing.yaml | 105 +- cfg-metadata/exporter/logicmonitor.yaml | 150 +++ cfg-metadata/exporter/logzio.yaml | 107 +- cfg-metadata/exporter/loki.yaml | 166 +-- cfg-metadata/exporter/mezmo.yaml | 107 +- cfg-metadata/exporter/opencensus.yaml | 99 +- cfg-metadata/exporter/otlp.yaml | 73 +- cfg-metadata/exporter/otlphttp.yaml | 79 +- cfg-metadata/exporter/prometheus.yaml | 69 +- .../exporter/prometheusremotewrite.yaml | 96 +- cfg-metadata/exporter/pulsar.yaml | 92 +- cfg-metadata/exporter/sapm.yaml | 8 +- cfg-metadata/exporter/sentry.yaml | 7 + cfg-metadata/exporter/signalfx.yaml | 238 +--- cfg-metadata/exporter/skywalking.yaml | 103 +- cfg-metadata/exporter/splunk_hec.yaml | 77 +- cfg-metadata/exporter/sumologic.yaml | 107 +- cfg-metadata/exporter/tanzuobservability.yaml | 186 +-- cfg-metadata/exporter/zipkin.yaml | 107 +- cfg-metadata/extension/awsproxy.yaml | 48 +- cfg-metadata/extension/docker_observer.yaml | 55 + cfg-metadata/extension/ecs_task_observer.yaml | 79 +- cfg-metadata/extension/headers_setter.yaml | 4 + cfg-metadata/extension/health_check.yaml | 69 +- cfg-metadata/extension/http_forwarder.yaml | 146 +-- cfg-metadata/extension/k8s_observer.yaml | 2 +- cfg-metadata/extension/oauth2client.yaml | 42 +- cfg-metadata/extension/pprof.yaml | 6 - cfg-metadata/extension/zpages.yaml | 8 - cfg-metadata/processor/batch.yaml | 6 + cfg-metadata/processor/cumulativetodelta.yaml | 9 + cfg-metadata/processor/filter.yaml | 12 +- cfg-metadata/processor/groupbytrace.yaml | 2 +- cfg-metadata/processor/resourcedetection.yaml | 1062 +++++++++++++++-- cfg-metadata/processor/servicegraph.yaml | 17 + .../receiver/active_directory_ds.yaml | 85 +- cfg-metadata/receiver/aerospike.yaml | 135 ++- cfg-metadata/receiver/apache.yaml | 161 ++- cfg-metadata/receiver/awsfirehose.yaml | 71 +- cfg-metadata/receiver/awsxray.yaml | 57 +- cfg-metadata/receiver/azuremonitor.yaml | 64 + cfg-metadata/receiver/bigip.yaml | 262 ++-- cfg-metadata/receiver/carbon.yaml | 9 - cfg-metadata/receiver/chrony.yaml | 40 +- cfg-metadata/receiver/cloudfoundry.yaml | 79 +- cfg-metadata/receiver/collectd.yaml | 6 - cfg-metadata/receiver/couchdb.yaml | 133 +-- cfg-metadata/receiver/datadog.yaml | 78 ++ cfg-metadata/receiver/docker_stats.yaml | 402 ++++--- cfg-metadata/receiver/elasticsearch.yaml | 492 ++++---- cfg-metadata/receiver/expvar.yaml | 193 ++- cfg-metadata/receiver/filelog.yaml | 10 + cfg-metadata/receiver/flinkmetrics.yaml | 261 ++-- cfg-metadata/receiver/googlecloudpubsub.yaml | 4 - cfg-metadata/receiver/googlecloudspanner.yaml | 11 +- cfg-metadata/receiver/haproxy.yaml | 421 +++++++ cfg-metadata/receiver/hostmetrics.yaml | 4 + cfg-metadata/receiver/httpcheck.yaml | 101 +- cfg-metadata/receiver/iis.yaml | 80 +- cfg-metadata/receiver/influxdb.yaml | 69 +- cfg-metadata/receiver/jaeger.yaml | 220 +--- cfg-metadata/receiver/jmx.yaml | 2 - cfg-metadata/receiver/k8s_cluster.yaml | 2 +- cfg-metadata/receiver/k8sobjects.yaml | 3 + cfg-metadata/receiver/kafka.yaml | 52 +- cfg-metadata/receiver/kafkametrics.yaml | 52 +- cfg-metadata/receiver/kubeletstats.yaml | 43 +- cfg-metadata/receiver/loki.yaml | 190 +++ cfg-metadata/receiver/memcached.yaml | 65 +- cfg-metadata/receiver/mongodb.yaml | 205 ++-- cfg-metadata/receiver/mongodbatlas.yaml | 80 +- cfg-metadata/receiver/mysql.yaml | 220 ++-- cfg-metadata/receiver/nginx.yaml | 114 +- cfg-metadata/receiver/nsxt.yaml | 155 ++- cfg-metadata/receiver/opencensus.yaml | 76 +- cfg-metadata/receiver/oracledb.yaml | 157 ++- cfg-metadata/receiver/otlp.yaml | 149 +-- cfg-metadata/receiver/otlpjsonfile.yaml | 34 + cfg-metadata/receiver/podman_stats.yaml | 8 +- cfg-metadata/receiver/postgresql.yaml | 65 +- cfg-metadata/receiver/prometheus_simple.yaml | 77 +- cfg-metadata/receiver/pulsar.yaml | 4 +- cfg-metadata/receiver/purefa.yaml | 103 +- cfg-metadata/receiver/purefb.yaml | 161 +++ cfg-metadata/receiver/rabbitmq.yaml | 142 +-- cfg-metadata/receiver/redis.yaml | 205 ++-- cfg-metadata/receiver/riak.yaml | 202 ++-- cfg-metadata/receiver/saphana.yaml | 268 +++-- cfg-metadata/receiver/sapm.yaml | 69 +- cfg-metadata/receiver/signalfx.yaml | 69 +- cfg-metadata/receiver/skywalking.yaml | 149 +-- cfg-metadata/receiver/snmp.yaml | 3 + cfg-metadata/receiver/snowflake.yaml | 369 ++++++ cfg-metadata/receiver/solace.yaml | 48 +- cfg-metadata/receiver/splunk_hec.yaml | 75 +- cfg-metadata/receiver/sqlquery.yaml | 26 + cfg-metadata/receiver/sqlserver.yaml | 127 +- cfg-metadata/receiver/sshcheck.yaml | 120 ++ cfg-metadata/receiver/statsd.yaml | 9 - cfg-metadata/receiver/syslog.yaml | 43 +- cfg-metadata/receiver/tcplog.yaml | 43 +- cfg-metadata/receiver/udplog.yaml | 37 + cfg-metadata/receiver/vcenter.yaml | 285 +++-- cfg-metadata/receiver/wavefront.yaml | 6 - cfg-metadata/receiver/windowseventlog.yaml | 31 + .../receiver/windowsperfcounters.yaml | 4 + cfg-metadata/receiver/zipkin.yaml | 69 +- cfg-metadata/receiver/zookeeper.yaml | 111 +- 127 files changed, 6576 insertions(+), 6567 deletions(-) create mode 100644 cfg-metadata/exporter/cassandra.yaml create mode 100644 cfg-metadata/exporter/logicmonitor.yaml create mode 100644 cfg-metadata/extension/docker_observer.yaml create mode 100644 cfg-metadata/receiver/azuremonitor.yaml create mode 100644 cfg-metadata/receiver/datadog.yaml create mode 100644 cfg-metadata/receiver/haproxy.yaml create mode 100644 cfg-metadata/receiver/loki.yaml create mode 100644 cfg-metadata/receiver/purefb.yaml create mode 100644 cfg-metadata/receiver/snowflake.yaml create mode 100644 cfg-metadata/receiver/sshcheck.yaml diff --git a/cfg-metadata/exporter/awscloudwatchlogs.yaml b/cfg-metadata/exporter/awscloudwatchlogs.yaml index 003e804..b296583 100644 --- a/cfg-metadata/exporter/awscloudwatchlogs.yaml +++ b/cfg-metadata/exporter/awscloudwatchlogs.yaml @@ -5,35 +5,26 @@ fields: - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: log_group_name kind: string default: "" @@ -59,6 +50,13 @@ fields: doc: | LogRetention is the option to set the log retention policy for the CloudWatch Log Group. Defaults to Never Expire if not specified or set to 0 Possible values are 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 2192, 2557, 2922, 3288, or 3653 +- name: tags + type: map[string]*string + kind: map + doc: | + Tags is the option to set tags for the CloudWatch Log Group. If specified, please add add at least 1 and at most 50 tags. Input is a string to string map like so: { 'key': 'value' } + Keys must be between 1-128 characters and follow the regex pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]+)$ + Values must be between 1-256 characters and follow the regex pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$ - name: sending_queue type: awscloudwatchlogsexporter.QueueSettings kind: struct @@ -68,7 +66,7 @@ fields: fields: - name: queue_size kind: int - default: 5000 + default: 1000 doc: | QueueSize set the length of the sending queue - name: num_workers @@ -121,3 +119,9 @@ fields: default: "" doc: | IAM role to upload segments to a different account. +- name: raw_log + kind: bool + default: false + doc: | + Export raw log string instead of log wrapper + Required for emf logs diff --git a/cfg-metadata/exporter/awsemf.yaml b/cfg-metadata/exporter/awsemf.yaml index 0fc8f27..b2245ed 100644 --- a/cfg-metadata/exporter/awsemf.yaml +++ b/cfg-metadata/exporter/awsemf.yaml @@ -70,6 +70,14 @@ fields: doc: | Namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other. +- name: retain_initial_value_of_delta_metric + kind: bool + default: false + doc: | + RetainInitialValueOfDeltaMetric is the flag to signal that the initial value of a metric is a valid datapoint. + The default behavior is that the first value occurrence of a metric is set as the baseline for the calculation of + the delta to the next occurrence. With this flag set to true the exporter will instead use this first value as the + initial delta value. This is especially useful when handling low frequency metrics. - name: dimension_rollup_option kind: string default: ZeroAndSingleDimensionRollup @@ -83,6 +91,13 @@ fields: doc: | LogRetention is the option to set the log retention policy for the CloudWatch Log Group. Defaults to Never Expire if not specified or set to 0 Possible values are 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 2192, 2557, 2922, 3288, or 3653 +- name: tags + type: map[string]*string + kind: map + doc: | + Tags is the option to set tags for the CloudWatch Log Group. If specified, please add at most 50 tags. Input is a string to string map like so: { 'key': 'value' } + Keys must be between 1-128 characters and follow the regex pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]+)$ + Values must be between 1-256 characters and follow the regex pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$ - name: parse_json_encoded_attr_values type: '[]string' kind: slice @@ -172,7 +187,7 @@ fields: type: resourcetotelemetry.Settings kind: struct doc: | - ResourceToTelemetrySettings is the option for converting resource attrihutes to telemetry attributes. + ResourceToTelemetrySettings is an option for converting resource attrihutes to telemetry attributes. "Enabled" - A boolean field to enable/disable this option. Default is `false`. If enabled, all the resource attributes will be converted to metric labels by default. fields: @@ -181,3 +196,16 @@ fields: default: false doc: | Enabled indicates whether to convert resource attributes to telemetry attributes. Default is `false`. +- name: detailed_metrics + kind: bool + default: false + doc: | + DetailedMetrics is an option for retaining detailed datapoint values in exported metrics (e.g instead of exporting a quantile as a statistical value, + preserve the quantile's population) +- name: version + kind: string + default: "1" + doc: | + Version is an option for sending metrics to CloudWatchLogs with Embedded Metric Format in selected version (with "_aws") + https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Specification.html#CloudWatch_Embedded_Metric_Format_Specification_structure + Otherwise, sending metrics as Embedded Metric Format version 0 (without "_aws") diff --git a/cfg-metadata/exporter/awskinesis.yaml b/cfg-metadata/exporter/awskinesis.yaml index e59139c..d39a7b5 100644 --- a/cfg-metadata/exporter/awskinesis.yaml +++ b/cfg-metadata/exporter/awskinesis.yaml @@ -6,67 +6,45 @@ fields: type: time.Duration kind: int64 default: 5s - doc: | - Timeout is the timeout for every attempt to send data to the backend. - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: encoding type: awskinesisexporter.Encoding kind: struct diff --git a/cfg-metadata/exporter/awsxray.yaml b/cfg-metadata/exporter/awsxray.yaml index 90850cd..a27a4ad 100644 --- a/cfg-metadata/exporter/awsxray.yaml +++ b/cfg-metadata/exporter/awsxray.yaml @@ -68,3 +68,41 @@ fields: - name: aws_log_groups type: '[]string' kind: slice +- name: telemetry + type: telemetry.Config + kind: struct + doc: | + TelemetryConfig contains the options for telemetry collection. + fields: + - name: enabled + kind: bool + default: false + doc: | + Enabled determines whether any telemetry should be recorded. + - name: include_metadata + kind: bool + default: false + doc: | + IncludeMetadata determines whether metadata (instance ID, hostname, resourceARN) + should be included in the telemetry. + - name: contributors + type: '[]component.ID' + kind: slice + doc: | + Contributors can be used to explicitly define which X-Ray components are contributing to the telemetry. + If omitted, only X-Ray components with the same component.ID as the setup component will have access. + - name: hostname + kind: string + default: "" + doc: | + Hostname can be used to explicitly define the hostname associated with the telemetry. + - name: instance_id + kind: string + default: "" + doc: | + InstanceID can be used to explicitly define the instance ID associated with the telemetry. + - name: resource_arn + kind: string + default: "" + doc: | + ResourceARN can be used to explicitly define the resource ARN associated with the telemetry. diff --git a/cfg-metadata/exporter/cassandra.yaml b/cfg-metadata/exporter/cassandra.yaml new file mode 100644 index 0000000..4bb8a67 --- /dev/null +++ b/cfg-metadata/exporter/cassandra.yaml @@ -0,0 +1,31 @@ +type: '*cassandraexporter.Config' +fields: +- name: dsn + kind: string + default: 127.0.0.1 +- name: keyspace + kind: string + default: otel +- name: trace_table + kind: string + default: otel_spans +- name: logs_table + kind: string + default: otel_logs +- name: replication + type: cassandraexporter.Replication + kind: struct + fields: + - name: class + kind: string + default: SimpleStrategy + - name: replication_factor + kind: int + default: 1 +- name: compression + type: cassandraexporter.Compression + kind: struct + fields: + - name: algorithm + kind: string + default: LZ4Compressor diff --git a/cfg-metadata/exporter/clickhouse.yaml b/cfg-metadata/exporter/clickhouse.yaml index 4a7f25c..d8a9986 100644 --- a/cfg-metadata/exporter/clickhouse.yaml +++ b/cfg-metadata/exporter/clickhouse.yaml @@ -6,40 +6,29 @@ fields: type: time.Duration kind: int64 default: 5s - doc: | - Timeout is the timeout for every attempt to send data to the backend. - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: sending_queue type: clickhouseexporter.QueueSettings kind: struct @@ -49,16 +38,34 @@ fields: fields: - name: queue_size kind: int - default: 5000 + default: 1000 doc: | QueueSize set the length of the sending queue -- name: dsn +- name: endpoint kind: string default: "" doc: | - DSN is the ClickHouse server Data Source Name. - For tcp protocol reference: [ClickHouse/clickhouse-go#dsn](https://github.com/ClickHouse/clickhouse-go#dsn). - For http protocol reference: [mailru/go-clickhouse/#dsn](https://github.com/mailru/go-clickhouse/#dsn). + Endpoint is the clickhouse endpoint. +- name: username + kind: string + default: "" + doc: | + Username is the authentication username. +- name: password + kind: string + default: "" + doc: | + Username is the authentication password. +- name: database + kind: string + default: default + doc: | + Database is the database name to export. +- name: connection_params + type: map[string]string + kind: map + doc: | + ConnectionParams is the extra connection parameters with map format. for example compression/dial_timeout - name: logs_table_name kind: string default: otel_logs @@ -76,6 +83,6 @@ fields: MetricsTableName is the table name for metrics. default is `otel_metrics`. - name: ttl_days kind: uint - default: 7 + default: 0 doc: | TTLDays is The data time-to-live in days, 0 means no ttl. diff --git a/cfg-metadata/exporter/coralogix.yaml b/cfg-metadata/exporter/coralogix.yaml index 769135f..6d9e363 100644 --- a/cfg-metadata/exporter/coralogix.yaml +++ b/cfg-metadata/exporter/coralogix.yaml @@ -5,150 +5,193 @@ fields: - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: timeout type: time.Duration kind: int64 default: 5s - doc: | - Timeout is the timeout for every attempt to send data to the backend. -- name: endpoint +- name: domain kind: string default: "" doc: | - 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. + Coralogix domain +- name: domain_settings + type: configgrpc.GRPCClientSettings + kind: struct + doc: | + GRPC Settings used with Domain + fields: + - name: endpoint + kind: string + default: "" + - name: compression + type: configcompression.CompressionType + kind: string + default: gzip + - name: tls + type: configtls.TLSClientSetting + kind: struct + fields: + - name: ca_file + kind: string + default: "" + - name: ca_pem + type: configopaque.String + kind: string + default: "" + - name: cert_file + kind: string + default: "" + - name: cert_pem + type: configopaque.String + kind: string + default: "" + - name: key_file + kind: string + default: "" + - name: key_pem + type: configopaque.String + kind: string + default: "" + - name: min_version + kind: string + default: "" + - name: max_version + kind: string + default: "" + - name: reload_interval + type: time.Duration + kind: int64 + - name: insecure + kind: bool + default: false + - name: insecure_skip_verify + kind: bool + default: false + - name: server_name_override + kind: string + default: "" + - name: keepalive + type: '*configgrpc.KeepaliveClientConfig' + kind: ptr + fields: + - name: time + type: time.Duration + kind: int64 + - name: timeout + type: time.Duration + kind: int64 + - name: permit_without_stream + kind: bool + default: false + - name: read_buffer_size + kind: int + - name: write_buffer_size + kind: int + - name: wait_for_ready + kind: bool + default: false + - name: headers + type: map[string]configopaque.String + kind: map + - name: balancer_name + kind: string + default: "" + - name: auth + type: '*configauth.Authentication' + kind: ptr + fields: + - name: authenticator + type: component.ID + kind: struct +- name: endpoint + kind: string + default: https:// - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: keepalive type: '*configgrpc.KeepaliveClientConfig' kind: ptr - doc: | - The keepalive parameters for gRPC client. See grpc.WithKeepaliveParams. - (https://godoc.org/google.golang.org/grpc#WithKeepaliveParams). fields: - name: time type: time.Duration @@ -161,42 +204,24 @@ fields: default: false - name: read_buffer_size kind: int - doc: | - ReadBufferSize for gRPC client. See grpc.WithReadBufferSize. - (https://godoc.org/google.golang.org/grpc#WithReadBufferSize). - name: write_buffer_size kind: int - doc: | - WriteBufferSize for gRPC gRPC. See grpc.WithWriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WithWriteBufferSize). - name: wait_for_ready kind: bool default: false - doc: | - WaitForReady parameter configures client to wait for ready state before sending data. - (https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md) - name: headers type: map[string]configopaque.String kind: map - doc: | - The headers associated with gRPC requests. - name: balancer_name kind: string default: "" - doc: | - Sets the balancer in grpclb_policy to discover the servers. Default is pick_first. - https://github.com/grpc/grpc-go/blob/master/examples/features/load_balancing/README.md - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing RPCs. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: traces type: configgrpc.GRPCClientSettings kind: struct @@ -206,85 +231,56 @@ fields: - name: endpoint kind: string default: https:// - doc: | - 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. - name: compression type: configcompression.CompressionType kind: string - default: "" - doc: | - The compression key for supported compression types within collector. + default: gzip - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: keepalive type: '*configgrpc.KeepaliveClientConfig' kind: ptr - doc: | - The keepalive parameters for gRPC client. See grpc.WithKeepaliveParams. - (https://godoc.org/google.golang.org/grpc#WithKeepaliveParams). fields: - name: time type: time.Duration @@ -297,42 +293,24 @@ fields: default: false - name: read_buffer_size kind: int - doc: | - ReadBufferSize for gRPC client. See grpc.WithReadBufferSize. - (https://godoc.org/google.golang.org/grpc#WithReadBufferSize). - name: write_buffer_size kind: int - doc: | - WriteBufferSize for gRPC gRPC. See grpc.WithWriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WithWriteBufferSize). - name: wait_for_ready kind: bool default: false - doc: | - WaitForReady parameter configures client to wait for ready state before sending data. - (https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md) - name: headers type: map[string]configopaque.String kind: map - doc: | - The headers associated with gRPC requests. - name: balancer_name kind: string default: "" - doc: | - Sets the balancer in grpclb_policy to discover the servers. Default is pick_first. - https://github.com/grpc/grpc-go/blob/master/examples/features/load_balancing/README.md - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing RPCs. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: metrics type: configgrpc.GRPCClientSettings kind: struct @@ -342,85 +320,56 @@ fields: - name: endpoint kind: string default: https:// - doc: | - 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. - name: compression type: configcompression.CompressionType kind: string default: gzip - doc: | - The compression key for supported compression types within collector. - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: keepalive type: '*configgrpc.KeepaliveClientConfig' kind: ptr - doc: | - The keepalive parameters for gRPC client. See grpc.WithKeepaliveParams. - (https://godoc.org/google.golang.org/grpc#WithKeepaliveParams). fields: - name: time type: time.Duration @@ -433,43 +382,25 @@ fields: default: false - name: read_buffer_size kind: int - doc: | - ReadBufferSize for gRPC client. See grpc.WithReadBufferSize. - (https://godoc.org/google.golang.org/grpc#WithReadBufferSize). - name: write_buffer_size kind: int default: 524288 - doc: | - WriteBufferSize for gRPC gRPC. See grpc.WithWriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WithWriteBufferSize). - name: wait_for_ready kind: bool default: false - doc: | - WaitForReady parameter configures client to wait for ready state before sending data. - (https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md) - name: headers type: map[string]configopaque.String kind: map - doc: | - The headers associated with gRPC requests. - name: balancer_name kind: string default: "" - doc: | - Sets the balancer in grpclb_policy to discover the servers. Default is pick_first. - https://github.com/grpc/grpc-go/blob/master/examples/features/load_balancing/README.md - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing RPCs. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: logs type: configgrpc.GRPCClientSettings kind: struct @@ -479,85 +410,56 @@ fields: - name: endpoint kind: string default: https:// - doc: | - 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. - name: compression type: configcompression.CompressionType kind: string - default: "" - doc: | - The compression key for supported compression types within collector. + default: gzip - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: keepalive type: '*configgrpc.KeepaliveClientConfig' kind: ptr - doc: | - The keepalive parameters for gRPC client. See grpc.WithKeepaliveParams. - (https://godoc.org/google.golang.org/grpc#WithKeepaliveParams). fields: - name: time type: time.Duration @@ -570,42 +472,24 @@ fields: default: false - name: read_buffer_size kind: int - doc: | - ReadBufferSize for gRPC client. See grpc.WithReadBufferSize. - (https://godoc.org/google.golang.org/grpc#WithReadBufferSize). - name: write_buffer_size kind: int - doc: | - WriteBufferSize for gRPC gRPC. See grpc.WithWriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WithWriteBufferSize). - name: wait_for_ready kind: bool default: false - doc: | - WaitForReady parameter configures client to wait for ready state before sending data. - (https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md) - name: headers type: map[string]configopaque.String kind: map - doc: | - The headers associated with gRPC requests. - name: balancer_name kind: string default: "" - doc: | - Sets the balancer in grpclb_policy to discover the servers. Default is pick_first. - https://github.com/grpc/grpc-go/blob/master/examples/features/load_balancing/README.md - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing RPCs. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: private_key type: configopaque.String kind: string diff --git a/cfg-metadata/exporter/datadog.yaml b/cfg-metadata/exporter/datadog.yaml index 55f02f9..d600cf2 100644 --- a/cfg-metadata/exporter/datadog.yaml +++ b/cfg-metadata/exporter/datadog.yaml @@ -6,67 +6,45 @@ fields: type: time.Duration kind: int64 default: 15s - doc: | - Timeout is the timeout for every attempt to send data to the backend. - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: tls type: datadogexporter.LimitedTLSClientSettings kind: struct @@ -125,12 +103,6 @@ fields: - name: endpoint kind: string default: https://api.datadoghq.com - doc: | - Endpoint configures the address for this network connection. - The address has the form "host:port". The host must be a literal IP address, or a host name that can be - resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: resource_attributes_as_tags kind: bool default: false @@ -157,8 +129,8 @@ fields: Mode for exporting histograms. Valid values are 'distributions', 'counters' or 'nobuckets'. - 'distributions' sends histograms as Datadog distributions (recommended). - 'counters' sends histograms as Datadog counts, one metric per bucket. - - 'nobuckets' sends no bucket histogram metrics. .sum and .count metrics will still be sent - if `send_count_sum_metrics` is enabled. + - 'nobuckets' sends no bucket histogram metrics. Aggregation metrics will still be sent + if `send_aggregation_metrics` is enabled. The current default is 'distributions'. - name: send_count_sum_metrics @@ -166,7 +138,14 @@ fields: default: false doc: | SendCountSum states if the export should send .sum and .count metrics for histograms. - The current default is false. + The default is false. + Deprecated: [v0.75.0] Use `send_aggregation_metrics` (HistogramConfig.SendAggregations) instead. + - name: send_aggregation_metrics + kind: bool + default: false + doc: | + SendAggregations states if the exporter should send .sum, .count, .min and .max metrics for histograms. + The default is false. - name: sums type: datadogexporter.SumConfig kind: struct @@ -212,12 +191,6 @@ fields: - name: endpoint kind: string default: https://trace.agent.datadoghq.com - doc: | - Endpoint configures the address for this network connection. - The address has the form "host:port". The host must be a literal IP address, or a host name that can be - resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: ignore_resources type: '[]string' kind: slice @@ -243,6 +216,21 @@ fields: If set to true the OpenTelemetry span name will used in the Datadog resource name. If set to false the resource name will be filled with the instrumentation library name + span kind. The default value is `false`. + - name: compute_stats_by_span_kind + kind: bool + default: false + doc: | + If set to true, enables an additional stats computation check on spans to see they have an eligible `span.kind` (server, consumer, client, producer). + If enabled, a span with an eligible `span.kind` will have stats computed. If disabled, only top-level and measured spans will have stats computed. + NOTE: For stats computed from OTel traces, only top-level spans are considered when this option is off. + - name: peer_service_aggregation + kind: bool + default: false + doc: | + If set to true, enables `peer.service` aggregation in the exporter. If disabled, aggregated trace stats will not include `peer.service` as a dimension. + For the best experience with `peer.service`, it is recommended to also enable `compute_stats_by_span_kind`. + If enabling both causes the datadog exporter to consume too many resources, try disabling `compute_stats_by_span_kind` first. + If the overhead remains high, it will be due to a high cardinality of `peer.service` values from the traces. You may need to check your instrumentation. - name: logs type: datadogexporter.LogsConfig kind: struct @@ -252,12 +240,6 @@ fields: - name: endpoint kind: string default: https://http-intake.logs.datadoghq.com - doc: | - Endpoint configures the address for this network connection. - The address has the form "host:port". The host must be a literal IP address, or a host name that can be - resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: dump_payloads kind: bool default: false diff --git a/cfg-metadata/exporter/dynatrace.yaml b/cfg-metadata/exporter/dynatrace.yaml index c942a53..40551f3 100644 --- a/cfg-metadata/exporter/dynatrace.yaml +++ b/cfg-metadata/exporter/dynatrace.yaml @@ -5,197 +5,124 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: resource_to_telemetry_conversion type: resourcetotelemetry.Settings kind: struct diff --git a/cfg-metadata/exporter/elasticsearch.yaml b/cfg-metadata/exporter/elasticsearch.yaml index 66aa3af..6dba4f9 100644 --- a/cfg-metadata/exporter/elasticsearch.yaml +++ b/cfg-metadata/exporter/elasticsearch.yaml @@ -2,6 +2,22 @@ type: '*elasticsearchexporter.Config' doc: | Config defines configuration for Elastic exporter. fields: +- name: sending_queue + type: exporterhelper.QueueSettings + kind: struct + fields: + - name: enabled + kind: bool + default: false + - name: num_consumers + kind: int + default: 10 + - name: queue_size + kind: int + default: 1000 + - name: storage + type: '*component.ID' + kind: ptr - name: endpoints type: '[]string' kind: slice @@ -37,11 +53,29 @@ fields: default: logs-generic-default doc: | This setting is required when logging pipelines used. +- name: logs_dynamic_index + type: elasticsearchexporter.DynamicIndexSetting + kind: struct + doc: | + fall back to pure LogsIndex, if 'elasticsearch.index.prefix' or 'elasticsearch.index.suffix' are not found in resource or attribute (prio: resource > attribute) + fields: + - name: enabled + kind: bool + default: false - name: traces_index kind: string default: traces-generic-default doc: | This setting is required when traces pipelines used. +- name: traces_dynamic_index + type: elasticsearchexporter.DynamicIndexSetting + kind: struct + doc: | + fall back to pure TracesIndex, if 'elasticsearch.index.prefix' or 'elasticsearch.index.suffix' are not found in resource or attribute (prio: resource > attribute) + fields: + - name: enabled + kind: bool + default: false - name: pipeline kind: string default: "" @@ -92,68 +126,46 @@ fields: - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSClientSetting contains TLS configurations that are specific to client - connections in addition to the common configurations. This should be used by - components configuring TLS client connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: discover type: elasticsearchexporter.DiscoverySettings kind: struct diff --git a/cfg-metadata/exporter/f5cloud.yaml b/cfg-metadata/exporter/f5cloud.yaml index 135d432..8b5d5f7 100644 --- a/cfg-metadata/exporter/f5cloud.yaml +++ b/cfg-metadata/exporter/f5cloud.yaml @@ -5,199 +5,126 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int default: 524288 - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 30s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: gzip - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: traces_endpoint kind: string default: "" diff --git a/cfg-metadata/exporter/googlecloud.yaml b/cfg-metadata/exporter/googlecloud.yaml index dc52463..5e426d0 100644 --- a/cfg-metadata/exporter/googlecloud.yaml +++ b/cfg-metadata/exporter/googlecloud.yaml @@ -2,11 +2,21 @@ type: '*googlecloudexporter.Config' doc: | Config defines configuration for Google Cloud exporter. fields: +- name: project + kind: string + default: "" + doc: | + ProjectID is the project telemetry is sent to if the gcp.project.id + resource attribute is not set. If unspecified, this is determined using + application default credentials. +- name: user_agent + kind: string + default: opentelemetry-collector-contrib {{version}} - name: impersonate type: collector.ImpersonateConfig kind: struct doc: | - ImpersonateConfig defines configuration for service account impersonation + ImpersonateConfig defines configuration for service account impersonation. fields: - name: target_principal kind: string @@ -17,16 +27,6 @@ fields: - name: delegates type: '[]string' kind: slice -- name: project - kind: string - default: "" - doc: | - ProjectID is the project telemetry is sent to if the gcp.project.id - resource attribute is not set. If unspecified, this is determined using - application default credentials. -- name: user_agent - kind: string - default: opentelemetry-collector-contrib {{version}} - name: trace type: collector.TraceConfig kind: struct @@ -56,10 +56,19 @@ fields: GetClientOptions returns additional options to be passed to the underlying Google Cloud API client. Must be set programmatically (no support via declarative config). + If GetClientOptions returns any options, the exporter will not add the + default credentials, as those could conflict with options provided via + GetClientOptions. Optional. - name: endpoint kind: string default: "" + - name: compression + kind: string + default: "" + doc: | + Compression specifies the compression format for Metrics and Logging gRPC requests. + Supported values: gzip. - name: use_insecure kind: bool default: false @@ -104,10 +113,19 @@ fields: GetClientOptions returns additional options to be passed to the underlying Google Cloud API client. Must be set programmatically (no support via declarative config). + If GetClientOptions returns any options, the exporter will not add the + default credentials, as those could conflict with options provided via + GetClientOptions. Optional. - name: endpoint kind: string default: "" + - name: compression + kind: string + default: "" + doc: | + Compression specifies the compression format for Metrics and Logging gRPC requests. + Supported values: gzip. - name: use_insecure kind: bool default: false @@ -117,10 +135,31 @@ fields: kind: int doc: | GRPCPoolSize sets the size of the connection pool in the GCP client + - name: service_resource_labels + kind: bool + default: true + doc: | + ServiceResourceLabels, if true, causes the exporter to copy OTel's + service.name, service.namespace, and service.instance.id resource attributes into the Cloud Logging LogEntry labels. + Disabling this option does not prevent resource_filters from adding those labels. Default is true. - name: metric type: collector.MetricConfig kind: struct fields: + - name: mapmonitoredresource + type: func(pcommon.Resource) *monitoredres.MonitoredResource + kind: func + doc: | + MapMonitoredResource is not exposed as an option in the configuration, but + can be used by other exporters to extend the functionality of this + exporter. It allows overriding the function used to map otel resource to + monitored resource. + - name: extrametrics + type: func(pmetric.Metrics) pmetric.ResourceMetricsSlice + kind: func + doc: | + ExtraMetrics is an extension point for exporters to add to the set + of ResourceMetrics during a call to PushMetrics. - name: getmetricname type: func(string, pmetric.Metric) (string, error) kind: func @@ -129,14 +168,22 @@ fields: exporters which extend the functionality of this exporter. It allows customizing the naming of metrics. baseName already includes type suffixes for summary metrics, but does not (yet) include the domain prefix - - name: mapmonitoredresource - type: func(pcommon.Resource) *monitoredres.MonitoredResource - kind: func + - name: experimental_wal_config + type: '*collector.WALConfig' + kind: ptr doc: | - MapMonitoredResource is not exposed as an option in the configuration, but - can be used by other exporters to extend the functionality of this - exporter. It allows overriding the function used to map otel resource to - monitored resource. + WALConfig holds configuration settings for the write ahead log. + fields: + - name: directory + kind: string + default: "" + doc: | + Directory is the location to store WAL files. + - name: max_backoff + type: time.Duration + kind: int64 + doc: | + MaxBackoff sets the length of time to exponentially re-try failed exports. - name: prefix kind: string default: workload.googleapis.com @@ -172,10 +219,19 @@ fields: GetClientOptions returns additional options to be passed to the underlying Google Cloud API client. Must be set programmatically (no support via declarative config). + If GetClientOptions returns any options, the exporter will not add the + default credentials, as those could conflict with options provided via + GetClientOptions. Optional. - name: endpoint kind: string default: "" + - name: compression + kind: string + default: "" + doc: | + Compression specifies the compression format for Metrics and Logging gRPC requests. + Supported values: gzip. - name: use_insecure kind: bool default: false @@ -230,68 +286,49 @@ fields: EnableSumOfSquaredDeviation enables calculation of an estimated sum of squared deviation. It isn't correct, so we don't send it by default, and don't expose it to users. For some uses, it is expected, however. +- name: destination_project_quota + kind: bool + default: false - name: timeout type: time.Duration kind: int64 default: 12s - doc: | - Timeout is the timeout for every attempt to send data to the backend. - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool - default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. + default: false - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. diff --git a/cfg-metadata/exporter/googlecloudpubsub.yaml b/cfg-metadata/exporter/googlecloudpubsub.yaml index 09854d2..d5a9286 100644 --- a/cfg-metadata/exporter/googlecloudpubsub.yaml +++ b/cfg-metadata/exporter/googlecloudpubsub.yaml @@ -1,67 +1,43 @@ type: '*googlecloudpubsubexporter.Config' -doc: | - TimeoutSettings for timeout. The timeout applies to individual attempts to send data to the backend. fields: - name: timeout type: time.Duration kind: int64 default: 12s - doc: | - Timeout is the timeout for every attempt to send data to the backend. - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: false - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: false - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: project kind: string default: "" diff --git a/cfg-metadata/exporter/googlemanagedprometheus.yaml b/cfg-metadata/exporter/googlemanagedprometheus.yaml index a4c33c6..6baa84f 100644 --- a/cfg-metadata/exporter/googlemanagedprometheus.yaml +++ b/cfg-metadata/exporter/googlemanagedprometheus.yaml @@ -25,10 +25,19 @@ fields: GetClientOptions returns additional options to be passed to the underlying Google Cloud API client. Must be set programmatically (no support via declarative config). + If GetClientOptions returns any options, the exporter will not add the + default credentials, as those could conflict with options provided via + GetClientOptions. Optional. - name: endpoint kind: string default: "" + - name: compression + kind: string + default: "" + doc: | + Compression specifies the compression format for Metrics and Logging gRPC requests. + Supported values: gzip. - name: use_insecure kind: bool default: false @@ -42,64 +51,42 @@ fields: type: time.Duration kind: int64 default: 12s - doc: | - Timeout is the timeout for every attempt to send data to the backend. - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool - default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. + default: false - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. diff --git a/cfg-metadata/exporter/influxdb.yaml b/cfg-metadata/exporter/influxdb.yaml index 7726223..678127c 100644 --- a/cfg-metadata/exporter/influxdb.yaml +++ b/cfg-metadata/exporter/influxdb.yaml @@ -5,198 +5,125 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 5s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: org kind: string default: "" @@ -240,6 +167,19 @@ fields: default: "" doc: | Password is used to optionally specify the basic auth password +- name: span_dimensions + type: '[]string' + kind: slice + doc: | + SpanDimensions are span attributes to be used as line protocol tags. + These are always included as tags: + - trace ID + - span ID + The default values are strongly recommended for use with Jaeger: + - service.name + - span.name + Other common attributes can be found here: + - https://github.com/open-telemetry/opentelemetry-collector/tree/main/semconv - name: metrics_schema kind: string default: telegraf-prometheus-v1 diff --git a/cfg-metadata/exporter/instana.yaml b/cfg-metadata/exporter/instana.yaml index 6a7a224..e3b4e70 100644 --- a/cfg-metadata/exporter/instana.yaml +++ b/cfg-metadata/exporter/instana.yaml @@ -12,137 +12,84 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int default: 524288 - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 30s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided diff --git a/cfg-metadata/exporter/jaeger.yaml b/cfg-metadata/exporter/jaeger.yaml index 9ba9d3b..19b4324 100644 --- a/cfg-metadata/exporter/jaeger.yaml +++ b/cfg-metadata/exporter/jaeger.yaml @@ -6,149 +6,98 @@ fields: type: time.Duration kind: int64 default: 5s - doc: | - Timeout is the timeout for every attempt to send data to the backend. - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: endpoint kind: string default: "" - doc: | - 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. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: keepalive type: '*configgrpc.KeepaliveClientConfig' kind: ptr - doc: | - The keepalive parameters for gRPC client. See grpc.WithKeepaliveParams. - (https://godoc.org/google.golang.org/grpc#WithKeepaliveParams). fields: - name: time type: time.Duration @@ -161,40 +110,22 @@ fields: default: false - name: read_buffer_size kind: int - doc: | - ReadBufferSize for gRPC client. See grpc.WithReadBufferSize. - (https://godoc.org/google.golang.org/grpc#WithReadBufferSize). - name: write_buffer_size kind: int default: 524288 - doc: | - WriteBufferSize for gRPC gRPC. See grpc.WithWriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WithWriteBufferSize). - name: wait_for_ready kind: bool default: false - doc: | - WaitForReady parameter configures client to wait for ready state before sending data. - (https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md) - name: headers type: map[string]configopaque.String kind: map - doc: | - The headers associated with gRPC requests. - name: balancer_name kind: string default: "" - doc: | - Sets the balancer in grpclb_policy to discover the servers. Default is pick_first. - https://github.com/grpc/grpc-go/blob/master/examples/features/load_balancing/README.md - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing RPCs. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. diff --git a/cfg-metadata/exporter/jaeger_thrift.yaml b/cfg-metadata/exporter/jaeger_thrift.yaml index eb6e56f..5a85756 100644 --- a/cfg-metadata/exporter/jaeger_thrift.yaml +++ b/cfg-metadata/exporter/jaeger_thrift.yaml @@ -5,136 +5,83 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 5s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided diff --git a/cfg-metadata/exporter/kafka.yaml b/cfg-metadata/exporter/kafka.yaml index 6f32769..28b92e7 100644 --- a/cfg-metadata/exporter/kafka.yaml +++ b/cfg-metadata/exporter/kafka.yaml @@ -195,68 +195,46 @@ fields: - name: tls type: '*configtls.TLSClientSetting' kind: ptr - doc: | - TLSClientSetting contains TLS configurations that are specific to client - connections in addition to the common configurations. This should be used by - components configuring TLS client connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: kerberos type: '*kafkaexporter.KerberosConfig' kind: ptr diff --git a/cfg-metadata/exporter/loadbalancing.yaml b/cfg-metadata/exporter/loadbalancing.yaml index 2d9f616..4dbfb42 100644 --- a/cfg-metadata/exporter/loadbalancing.yaml +++ b/cfg-metadata/exporter/loadbalancing.yaml @@ -11,156 +11,103 @@ fields: - name: otlp type: otlpexporter.Config kind: struct - doc: | - TimeoutSettings for timeout. The timeout applies to individual attempts to send data to the backend. fields: - name: timeout type: time.Duration kind: int64 default: 5s - doc: | - Timeout is the timeout for every attempt to send data to the backend. - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: endpoint kind: string default: "" - doc: | - 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. - name: compression type: configcompression.CompressionType kind: string default: gzip - doc: | - The compression key for supported compression types within collector. - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: keepalive type: '*configgrpc.KeepaliveClientConfig' kind: ptr - doc: | - The keepalive parameters for gRPC client. See grpc.WithKeepaliveParams. - (https://godoc.org/google.golang.org/grpc#WithKeepaliveParams). fields: - name: time type: time.Duration @@ -173,43 +120,25 @@ fields: default: false - name: read_buffer_size kind: int - doc: | - ReadBufferSize for gRPC client. See grpc.WithReadBufferSize. - (https://godoc.org/google.golang.org/grpc#WithReadBufferSize). - name: write_buffer_size kind: int default: 524288 - doc: | - WriteBufferSize for gRPC gRPC. See grpc.WithWriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WithWriteBufferSize). - name: wait_for_ready kind: bool default: false - doc: | - WaitForReady parameter configures client to wait for ready state before sending data. - (https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md) - name: headers type: map[string]configopaque.String kind: map - doc: | - The headers associated with gRPC requests. - name: balancer_name kind: string default: "" - doc: | - Sets the balancer in grpclb_policy to discover the servers. Default is pick_first. - https://github.com/grpc/grpc-go/blob/master/examples/features/load_balancing/README.md - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing RPCs. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: resolver type: loadbalancingexporter.ResolverSettings kind: struct diff --git a/cfg-metadata/exporter/logicmonitor.yaml b/cfg-metadata/exporter/logicmonitor.yaml new file mode 100644 index 0000000..76f9edd --- /dev/null +++ b/cfg-metadata/exporter/logicmonitor.yaml @@ -0,0 +1,150 @@ +type: '*logicmonitorexporter.Config' +doc: | + Config defines configuration for LogicMonitor exporter. +fields: +- name: endpoint + kind: string + default: "" +- name: tls + type: configtls.TLSClientSetting + kind: struct + fields: + - name: ca_file + kind: string + default: "" + - name: ca_pem + type: configopaque.String + kind: string + default: "" + - name: cert_file + kind: string + default: "" + - name: cert_pem + type: configopaque.String + kind: string + default: "" + - name: key_file + kind: string + default: "" + - name: key_pem + type: configopaque.String + kind: string + default: "" + - name: min_version + kind: string + default: "" + - name: max_version + kind: string + default: "" + - name: reload_interval + type: time.Duration + kind: int64 + - name: insecure + kind: bool + default: false + - name: insecure_skip_verify + kind: bool + default: false + - name: server_name_override + kind: string + default: "" +- name: read_buffer_size + kind: int +- name: write_buffer_size + kind: int +- name: timeout + type: time.Duration + kind: int64 +- name: headers + type: map[string]configopaque.String + kind: map +- name: customroundtripper + type: func(http.RoundTripper) (http.RoundTripper, error) + kind: func +- name: auth + type: '*configauth.Authentication' + kind: ptr + fields: + - name: authenticator + type: component.ID + kind: struct +- name: compression + type: configcompression.CompressionType + kind: string + default: "" +- name: max_idle_conns + type: '*int' + kind: ptr +- name: max_idle_conns_per_host + type: '*int' + kind: ptr +- name: max_conns_per_host + type: '*int' + kind: ptr +- name: idle_conn_timeout + type: '*time.Duration' + kind: ptr +- name: sending_queue + type: exporterhelper.QueueSettings + kind: struct + fields: + - name: enabled + kind: bool + default: true + - name: num_consumers + kind: int + default: 10 + - name: queue_size + kind: int + default: 1000 + - name: storage + type: '*component.ID' + kind: ptr +- name: retry_on_failure + type: exporterhelper.RetrySettings + kind: struct + fields: + - name: enabled + kind: bool + default: true + - name: initial_interval + type: time.Duration + kind: int64 + default: 5s + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 + - name: max_interval + type: time.Duration + kind: int64 + default: 30s + - name: max_elapsed_time + type: time.Duration + kind: int64 + default: 5m0s +- name: resource_to_telemetry_conversion + type: resourcetotelemetry.Settings + kind: struct + doc: "Settings defines configuration for converting resource attributes to telemetry + attributes.\nWhen used, it must be embedded in the exporter configuration:\n\n\ttype + Config struct {\n\t // ...\n\t resourcetotelemetry.Settings `mapstructure:\"resource_to_telemetry_conversion\"`\n\t}\n" + fields: + - name: enabled + kind: bool + default: false + doc: | + Enabled indicates whether to convert resource attributes to telemetry attributes. Default is `false`. +- name: api_token + type: logicmonitorexporter.APIToken + kind: struct + doc: | + ApiToken of Logicmonitor Platform + fields: + - name: access_id + kind: string + default: "" + - name: access_key + type: configopaque.String + kind: string + default: "" diff --git a/cfg-metadata/exporter/logzio.yaml b/cfg-metadata/exporter/logzio.yaml index 0398c8e..24f795b 100644 --- a/cfg-metadata/exporter/logzio.yaml +++ b/cfg-metadata/exporter/logzio.yaml @@ -5,199 +5,126 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int default: 524288 - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 30s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: gzip - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: account_token type: configopaque.String kind: string diff --git a/cfg-metadata/exporter/loki.yaml b/cfg-metadata/exporter/loki.yaml index 0cd2e53..2689d3a 100644 --- a/cfg-metadata/exporter/loki.yaml +++ b/cfg-metadata/exporter/loki.yaml @@ -5,255 +5,123 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int default: 524288 - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 30s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. -- name: tenant_id - type: '*string' - kind: ptr - doc: | - TenantID defines the tenant ID to associate log streams with. - Deprecated: [v0.57.0] use the attribute processor to add a `loki.tenant` hint. - See this component's documentation for more information on how to specify the hint. -- name: labels - type: '*lokiexporter.LabelsConfig' - kind: ptr - doc: | - Labels defines how labels should be applied to log streams sent to Loki. - Deprecated: [v0.57.0] use the attribute processor to add a `loki.attribute.labels` hint. - See this component's documentation for more information on how to specify the hint. - fields: - - name: attributes - type: map[string]string - kind: map - doc: | - Attributes are the log record attributes that are allowed to be added as labels on a log stream. - - name: resource - type: map[string]string - kind: map - doc: | - ResourceAttributes are the resource attributes that are allowed to be added as labels on a log stream. - - name: record - type: map[string]string - kind: map - doc: | - RecordAttributes are the attributes from the record that are allowed to be added as labels on a log stream. Possible keys: - traceID, spanID, severity, severityN. -- name: format - type: '*string' - kind: ptr - doc: | - Allows you to choose the entry format in the exporter. - Deprecated: [v0.57.0] Only the JSON format will be supported in the future. If you rely on the - "body" format and can't change to JSON, let us know before v0.59.0 by opening a GitHub issue - and we'll work with you to find a solution. -- name: tenant - type: '*lokiexporter.Tenant' - kind: ptr - doc: | - Tenant defines how to obtain the tenant ID - Deprecated: [v0.57.0] use the attribute processor to add a `loki.tenant` hint. - See this component's documentation for more information on how to specify the hint. - fields: - - name: source - kind: string - default: "" - doc: | - Source defines where to obtain the tenant ID. Possible values: static, context, attribute. - - name: value - kind: string - default: "" - doc: | - Value will be used by the tenant source provider to lookup the value. For instance, - when the source=static, the value is a static value. When the source=context, value - should be the context key that holds the tenant information. diff --git a/cfg-metadata/exporter/mezmo.yaml b/cfg-metadata/exporter/mezmo.yaml index 3daf837..896f359 100644 --- a/cfg-metadata/exporter/mezmo.yaml +++ b/cfg-metadata/exporter/mezmo.yaml @@ -5,198 +5,125 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 5s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: ingest_url kind: string default: https://logs.mezmo.com/otel/ingest/rest diff --git a/cfg-metadata/exporter/opencensus.yaml b/cfg-metadata/exporter/opencensus.yaml index 0432994..0a7c689 100644 --- a/cfg-metadata/exporter/opencensus.yaml +++ b/cfg-metadata/exporter/opencensus.yaml @@ -5,85 +5,56 @@ fields: - name: endpoint kind: string default: "" - doc: | - 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. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: keepalive type: '*configgrpc.KeepaliveClientConfig' kind: ptr - doc: | - The keepalive parameters for gRPC client. See grpc.WithKeepaliveParams. - (https://godoc.org/google.golang.org/grpc#WithKeepaliveParams). fields: - name: time type: time.Duration @@ -96,97 +67,59 @@ fields: default: false - name: read_buffer_size kind: int - doc: | - ReadBufferSize for gRPC client. See grpc.WithReadBufferSize. - (https://godoc.org/google.golang.org/grpc#WithReadBufferSize). - name: write_buffer_size kind: int default: 524288 - doc: | - WriteBufferSize for gRPC gRPC. See grpc.WithWriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WithWriteBufferSize). - name: wait_for_ready kind: bool default: false - doc: | - WaitForReady parameter configures client to wait for ready state before sending data. - (https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md) - name: headers type: map[string]configopaque.String kind: map - doc: | - The headers associated with gRPC requests. - name: balancer_name kind: string default: "" - doc: | - Sets the balancer in grpclb_policy to discover the servers. Default is pick_first. - https://github.com/grpc/grpc-go/blob/master/examples/features/load_balancing/README.md - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing RPCs. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: false - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: false - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: num_workers kind: int default: 2 diff --git a/cfg-metadata/exporter/otlp.yaml b/cfg-metadata/exporter/otlp.yaml index ff5f149..096f875 100644 --- a/cfg-metadata/exporter/otlp.yaml +++ b/cfg-metadata/exporter/otlp.yaml @@ -1,6 +1,4 @@ type: '*otlpexporter.Config' -doc: | - GRPCClientSettings defines common settings for a gRPC client configuration. fields: - name: timeout type: time.Duration @@ -48,85 +46,56 @@ fields: - name: endpoint kind: string default: "" - doc: | - 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. - name: compression type: configcompression.CompressionType kind: string default: gzip - doc: | - The compression key for supported compression types within collector. - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: keepalive type: '*configgrpc.KeepaliveClientConfig' kind: ptr - doc: | - The keepalive parameters for gRPC client. See grpc.WithKeepaliveParams. - (https://godoc.org/google.golang.org/grpc#WithKeepaliveParams). fields: - name: time type: time.Duration @@ -139,40 +108,22 @@ fields: default: false - name: read_buffer_size kind: int - doc: | - ReadBufferSize for gRPC client. See grpc.WithReadBufferSize. - (https://godoc.org/google.golang.org/grpc#WithReadBufferSize). - name: write_buffer_size kind: int default: 524288 - doc: | - WriteBufferSize for gRPC gRPC. See grpc.WithWriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WithWriteBufferSize). - name: wait_for_ready kind: bool default: false - doc: | - WaitForReady parameter configures client to wait for ready state before sending data. - (https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md) - name: headers type: map[string]configopaque.String kind: map - doc: | - The headers associated with gRPC requests. - name: balancer_name kind: string default: "" - doc: | - Sets the balancer in grpclb_policy to discover the servers. Default is pick_first. - https://github.com/grpc/grpc-go/blob/master/examples/features/load_balancing/README.md - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing RPCs. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. diff --git a/cfg-metadata/exporter/otlphttp.yaml b/cfg-metadata/exporter/otlphttp.yaml index b2fc373..0095a2c 100644 --- a/cfg-metadata/exporter/otlphttp.yaml +++ b/cfg-metadata/exporter/otlphttp.yaml @@ -1,144 +1,89 @@ type: '*otlphttpexporter.Config' -doc: | - HTTPClientSettings defines settings for creating an HTTP client. fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int default: 524288 - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 30s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: gzip - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: sending_queue type: exporterhelper.QueueSettings kind: struct diff --git a/cfg-metadata/exporter/prometheus.yaml b/cfg-metadata/exporter/prometheus.yaml index fd5424c..5e9ce32 100644 --- a/cfg-metadata/exporter/prometheus.yaml +++ b/cfg-metadata/exporter/prometheus.yaml @@ -5,106 +5,73 @@ fields: - name: endpoint kind: string default: "" - doc: | - Endpoint configures the listening address for the server. - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) + - name: client_ca_file_reload + kind: bool + default: false - name: cors type: '*confighttp.CORSSettings' kind: ptr - doc: | - CORS configures the server for HTTP cross-origin resource sharing (CORS). fields: - name: allowed_origins type: '[]string' kind: slice - doc: | - AllowedOrigins sets the allowed values of the Origin header for - HTTP/JSON requests to an OTLP receiver. An origin may contain a - wildcard (*) to replace 0 or more characters (e.g., - "http://*.domain.com", or "*" to allow any origin). - name: allowed_headers type: '[]string' kind: slice - doc: | - AllowedHeaders sets what headers will be allowed in CORS requests. - The Accept, Accept-Language, Content-Type, and Content-Language - headers are implicitly allowed. If no headers are listed, - X-Requested-With will also be accepted by default. Include "*" to - allow any request header. - name: max_age kind: int - doc: | - MaxAge sets the value of the Access-Control-Max-Age response header. - Set it to the number of seconds that browsers should cache a CORS - preflight response for. - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: max_request_body_size kind: int64 - doc: | - MaxRequestBodySize sets the maximum request body size in bytes - name: include_metadata kind: bool default: false - doc: | - IncludeMetadata propagates the client metadata from the incoming requests to the downstream consumers - Experimental: *NOTE* this option is subject to change or removal in the future. +- name: response_headers + type: map[string]configopaque.String + kind: map - name: namespace kind: string default: "" diff --git a/cfg-metadata/exporter/prometheusremotewrite.yaml b/cfg-metadata/exporter/prometheusremotewrite.yaml index f21ea06..05f453f 100644 --- a/cfg-metadata/exporter/prometheusremotewrite.yaml +++ b/cfg-metadata/exporter/prometheusremotewrite.yaml @@ -6,40 +6,29 @@ fields: type: time.Duration kind: int64 default: 5s - doc: | - Timeout is the timeout for every attempt to send data to the backend. - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 50ms - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 200ms - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 1m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: namespace kind: string default: "" @@ -79,140 +68,87 @@ fields: - name: endpoint kind: string default: http://some.url:9411/api/prom/push - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int default: 524288 - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 5s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: resource_to_telemetry_conversion type: resourcetotelemetry.Settings kind: struct diff --git a/cfg-metadata/exporter/pulsar.yaml b/cfg-metadata/exporter/pulsar.yaml index 743af8c..165741a 100644 --- a/cfg-metadata/exporter/pulsar.yaml +++ b/cfg-metadata/exporter/pulsar.yaml @@ -6,67 +6,45 @@ fields: type: time.Duration kind: int64 default: 5s - doc: | - Timeout is the timeout for every attempt to send data to the backend. - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: endpoint kind: string default: pulsar://localhost:6650 @@ -82,6 +60,51 @@ fields: default: otlp_proto doc: | Encoding of messages (default "otlp_proto") +- name: producer + type: pulsarexporter.Producer + kind: struct + doc: | + Producer configuration of the Pulsar producer + fields: + - name: max_reconnect_broker + type: '*uint' + kind: ptr + - name: hashing_scheme + type: pulsarexporter.HashingScheme + kind: string + default: "" + - name: compression_level + type: pulsarexporter.CompressionLevel + kind: string + default: "" + - name: compression_type + type: pulsarexporter.CompressionType + kind: string + default: "" + - name: max_pending_messages + kind: int + - name: batch_builder_type + type: pulsarexporter.BatchBuilderType + kind: string + default: "" + - name: partitions_auto_discovery_interval + type: time.Duration + kind: int64 + - name: batching_max_publish_delay + type: time.Duration + kind: int64 + - name: batching_max_messages + kind: uint + default: 0 + - name: batching_max_size + kind: uint + default: 0 + - name: disable_block_if_queue_full + kind: bool + default: false + - name: disable_batching + kind: bool + default: false - name: tls_trust_certs_file_path kind: string default: "" @@ -106,11 +129,11 @@ fields: - name: key_file kind: string default: "" - - name: Token + - name: token type: '*pulsarexporter.Token' kind: ptr fields: - - name: Token + - name: token type: configopaque.String kind: string default: "" @@ -153,3 +176,14 @@ fields: - name: audience kind: string default: "" +- name: operation_timeout + type: time.Duration + kind: int64 + default: 30s +- name: connection_timeout + type: time.Duration + kind: int64 + default: 5s +- name: map_connections_per_broker + kind: int + default: 1 diff --git a/cfg-metadata/exporter/sapm.yaml b/cfg-metadata/exporter/sapm.yaml index 5fadf49..da815fc 100644 --- a/cfg-metadata/exporter/sapm.yaml +++ b/cfg-metadata/exporter/sapm.yaml @@ -29,7 +29,13 @@ fields: kind: bool default: false doc: | - Disable GZip compression. + Disable compression. If set to true then Compression field is ignored. +- name: compression + kind: string + default: "" + doc: | + Compression method to use (gzip or zstd). Ignored if DisableCompression=true. + If unspecified defaults to gzip. - name: log_detailed_response kind: bool default: false diff --git a/cfg-metadata/exporter/sentry.yaml b/cfg-metadata/exporter/sentry.yaml index e3c765c..c1a76f5 100644 --- a/cfg-metadata/exporter/sentry.yaml +++ b/cfg-metadata/exporter/sentry.yaml @@ -7,6 +7,13 @@ fields: default: "" doc: | DSN to report transaction to Sentry. If the DSN is not set, no trace will be sent to Sentry. +- name: environment + kind: string + default: "" + doc: | + The deployment environment name, such as production or staging. + Environments are case sensitive. The environment name can't contain newlines, spaces or forward slashes, + can't be the string "None", or exceed 64 characters. - name: insecure_skip_verify kind: bool default: false diff --git a/cfg-metadata/exporter/signalfx.yaml b/cfg-metadata/exporter/signalfx.yaml index 2e0457d..0b515e1 100644 --- a/cfg-metadata/exporter/signalfx.yaml +++ b/cfg-metadata/exporter/signalfx.yaml @@ -44,139 +44,86 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 5s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: access_token type: configopaque.String kind: string @@ -206,60 +153,42 @@ fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: api_url kind: string default: "" @@ -276,60 +205,42 @@ fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: log_data_points kind: bool default: false @@ -586,139 +497,86 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 5s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: max_requests kind: uint default: 20 diff --git a/cfg-metadata/exporter/skywalking.yaml b/cfg-metadata/exporter/skywalking.yaml index 40abcde..001b579 100644 --- a/cfg-metadata/exporter/skywalking.yaml +++ b/cfg-metadata/exporter/skywalking.yaml @@ -5,85 +5,56 @@ fields: - name: endpoint kind: string default: "" - doc: | - 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. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: keepalive type: '*configgrpc.KeepaliveClientConfig' kind: ptr - doc: | - The keepalive parameters for gRPC client. See grpc.WithKeepaliveParams. - (https://godoc.org/google.golang.org/grpc#WithKeepaliveParams). fields: - name: time type: time.Duration @@ -96,108 +67,68 @@ fields: default: false - name: read_buffer_size kind: int - doc: | - ReadBufferSize for gRPC client. See grpc.WithReadBufferSize. - (https://godoc.org/google.golang.org/grpc#WithReadBufferSize). - name: write_buffer_size kind: int default: 524288 - doc: | - WriteBufferSize for gRPC gRPC. See grpc.WithWriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WithWriteBufferSize). - name: wait_for_ready kind: bool default: false - doc: | - WaitForReady parameter configures client to wait for ready state before sending data. - (https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md) - name: headers type: map[string]configopaque.String kind: map - doc: | - The headers associated with gRPC requests. - name: balancer_name kind: string default: "" - doc: | - Sets the balancer in grpclb_policy to discover the servers. Default is pick_first. - https://github.com/grpc/grpc-go/blob/master/examples/features/load_balancing/README.md - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing RPCs. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: timeout type: time.Duration kind: int64 default: 5s - doc: | - Timeout is the timeout for every attempt to send data to the backend. - name: num_streams kind: int default: 2 diff --git a/cfg-metadata/exporter/splunk_hec.yaml b/cfg-metadata/exporter/splunk_hec.yaml index eac9bd5..d6fc91d 100644 --- a/cfg-metadata/exporter/splunk_hec.yaml +++ b/cfg-metadata/exporter/splunk_hec.yaml @@ -5,139 +5,86 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 10s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: sending_queue type: exporterhelper.QueueSettings kind: struct diff --git a/cfg-metadata/exporter/sumologic.yaml b/cfg-metadata/exporter/sumologic.yaml index efcd1c7..5b3d017 100644 --- a/cfg-metadata/exporter/sumologic.yaml +++ b/cfg-metadata/exporter/sumologic.yaml @@ -5,198 +5,125 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 5s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: false - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: compress_encoding type: sumologicexporter.CompressEncodingType kind: string diff --git a/cfg-metadata/exporter/tanzuobservability.yaml b/cfg-metadata/exporter/tanzuobservability.yaml index f02dda4..b888f4a 100644 --- a/cfg-metadata/exporter/tanzuobservability.yaml +++ b/cfg-metadata/exporter/tanzuobservability.yaml @@ -5,62 +5,42 @@ fields: - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: traces type: tanzuobservabilityexporter.TracesConfig kind: struct @@ -70,279 +50,171 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: metrics type: tanzuobservabilityexporter.MetricsConfig kind: struct - doc: | - HTTPClientSettings defines settings for creating an HTTP client. fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: resource_attrs_included kind: bool default: false diff --git a/cfg-metadata/exporter/zipkin.yaml b/cfg-metadata/exporter/zipkin.yaml index ab6fdd7..18e8374 100644 --- a/cfg-metadata/exporter/zipkin.yaml +++ b/cfg-metadata/exporter/zipkin.yaml @@ -5,199 +5,126 @@ fields: - name: sending_queue type: exporterhelper.QueueSettings kind: struct - doc: | - QueueSettings defines configuration for queueing batches before sending to the consumerSender. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not enqueue batches before sending to the consumerSender. - name: num_consumers kind: int default: 10 - doc: | - NumConsumers is the number of consumers from the queue. - name: queue_size kind: int - default: 5000 - doc: | - QueueSize is the maximum number of batches allowed in queue at a given time. + default: 1000 - name: storage type: '*component.ID' kind: ptr - doc: | - StorageID if not empty, enables the persistent storage and uses the component specified - as a storage extension for the persistent queue - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct - doc: | - RetrySettings defines configuration for retrying batches in case of export failure. - The current supported strategy is exponential backoff. fields: - name: enabled kind: bool default: true - doc: | - Enabled indicates whether to not retry sending batches in case of export failure. - name: initial_interval type: time.Duration kind: int64 default: 5s - doc: | - InitialInterval the time to wait after the first failure before retrying. + - name: randomization_factor + kind: float64 + - name: multiplier + kind: float64 - name: max_interval type: time.Duration kind: int64 default: 30s - doc: | - MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between - consecutive retries will always be `MaxInterval`. - name: max_elapsed_time type: time.Duration kind: int64 default: 5m0s - doc: | - MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. - Once this value is reached, the data is discarded. - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int default: 524288 - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 5s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: format kind: string default: json diff --git a/cfg-metadata/extension/awsproxy.yaml b/cfg-metadata/extension/awsproxy.yaml index a0456fe..6cb460c 100644 --- a/cfg-metadata/extension/awsproxy.yaml +++ b/cfg-metadata/extension/awsproxy.yaml @@ -5,12 +5,6 @@ fields: - name: endpoint kind: string default: 0.0.0.0:2000 - doc: | - Endpoint configures the address for this network connection. - The address has the form "host:port". The host must be a literal IP address, or a host name that can be - resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: proxy_address kind: string default: "" @@ -27,60 +21,42 @@ fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: region kind: string default: "" diff --git a/cfg-metadata/extension/docker_observer.yaml b/cfg-metadata/extension/docker_observer.yaml new file mode 100644 index 0000000..33d5c3d --- /dev/null +++ b/cfg-metadata/extension/docker_observer.yaml @@ -0,0 +1,55 @@ +type: '*dockerobserver.Config' +doc: | + Config defines configuration for docker observer +fields: +- name: endpoint + kind: string + default: unix:///var/run/docker.sock + doc: | + The URL of the docker server. Default is "unix:///var/run/docker.sock" +- name: timeout + type: time.Duration + kind: int64 + default: 5s + doc: | + The maximum amount of time to wait for docker API responses. Default is 5s +- name: excluded_images + type: '[]string' + kind: slice + doc: | + A list of filters whose matching images are to be excluded. Supports literals, globs, and regex. +- name: use_hostname_if_present + kind: bool + default: false + doc: | + If true, the "Config.Hostname" field (if present) of the docker + container will be used as the discovered host that is used to configure + receivers. If false or if no hostname is configured, the field + `NetworkSettings.IPAddress` is used instead. +- name: use_host_bindings + kind: bool + default: false + doc: | + If true, the observer will configure receivers for matching container endpoints + using the host bound ip and port. This is useful if containers exist that are not + accessible to an instance of the agent running outside of the docker network stack. + If UseHostnameIfPresent and this config are both enabled, this setting will take precedence. +- name: ignore_non_host_bindings + kind: bool + default: false + doc: | + If true, the observer will ignore discovered container endpoints that are not bound + to host ports. This is useful if containers exist that are not accessible + to an instance of the agent running outside of the docker network stack. +- name: cache_sync_interval + type: time.Duration + kind: int64 + default: 1h0m0s + doc: | + The time to wait before resyncing the list of containers the observer maintains + through the docker event listener example: cache_sync_interval: "20m" + Default: "60m" +- name: api_version + kind: float64 + doc: | + Docker client API version. Default is 1.22 diff --git a/cfg-metadata/extension/ecs_task_observer.yaml b/cfg-metadata/extension/ecs_task_observer.yaml index b531cb0..763d1ac 100644 --- a/cfg-metadata/extension/ecs_task_observer.yaml +++ b/cfg-metadata/extension/ecs_task_observer.yaml @@ -1,142 +1,87 @@ type: '*ecstaskobserver.Config' -doc: | - HTTPClientSettings defines settings for creating an HTTP client. fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: refresh_interval type: time.Duration kind: int64 diff --git a/cfg-metadata/extension/headers_setter.yaml b/cfg-metadata/extension/headers_setter.yaml index 393127e..18b146e 100644 --- a/cfg-metadata/extension/headers_setter.yaml +++ b/cfg-metadata/extension/headers_setter.yaml @@ -4,6 +4,10 @@ fields: type: '[]headerssetterextension.HeaderConfig' kind: slice fields: + - name: action + type: headerssetterextension.actionValue + kind: string + default: "" - name: key type: '*string' kind: ptr diff --git a/cfg-metadata/extension/health_check.yaml b/cfg-metadata/extension/health_check.yaml index fb7bd33..8755cfa 100644 --- a/cfg-metadata/extension/health_check.yaml +++ b/cfg-metadata/extension/health_check.yaml @@ -6,112 +6,73 @@ fields: - name: endpoint kind: string default: 0.0.0.0:13133 - doc: | - Endpoint configures the listening address for the server. - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: client_ca_file_reload kind: bool default: false - doc: | - Reload the ClientCAs file when it is modified - (optional, default false) - name: cors type: '*confighttp.CORSSettings' kind: ptr - doc: | - CORS configures the server for HTTP cross-origin resource sharing (CORS). fields: - name: allowed_origins type: '[]string' kind: slice - doc: | - AllowedOrigins sets the allowed values of the Origin header for - HTTP/JSON requests to an OTLP receiver. An origin may contain a - wildcard (*) to replace 0 or more characters (e.g., - "http://*.domain.com", or "*" to allow any origin). - name: allowed_headers type: '[]string' kind: slice - doc: | - AllowedHeaders sets what headers will be allowed in CORS requests. - The Accept, Accept-Language, Content-Type, and Content-Language - headers are implicitly allowed. If no headers are listed, - X-Requested-With will also be accepted by default. Include "*" to - allow any request header. - name: max_age kind: int - doc: | - MaxAge sets the value of the Access-Control-Max-Age response header. - Set it to the number of seconds that browsers should cache a CORS - preflight response for. - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: max_request_body_size kind: int64 - doc: | - MaxRequestBodySize sets the maximum request body size in bytes - name: include_metadata kind: bool default: false - doc: | - IncludeMetadata propagates the client metadata from the incoming requests to the downstream consumers - Experimental: *NOTE* this option is subject to change or removal in the future. +- name: response_headers + type: map[string]configopaque.String + kind: map - name: path kind: string default: / diff --git a/cfg-metadata/extension/http_forwarder.yaml b/cfg-metadata/extension/http_forwarder.yaml index e98ae98..40d745f 100644 --- a/cfg-metadata/extension/http_forwarder.yaml +++ b/cfg-metadata/extension/http_forwarder.yaml @@ -11,106 +11,73 @@ fields: - name: endpoint kind: string default: :6060 - doc: | - Endpoint configures the listening address for the server. - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) + - name: client_ca_file_reload + kind: bool + default: false - name: cors type: '*confighttp.CORSSettings' kind: ptr - doc: | - CORS configures the server for HTTP cross-origin resource sharing (CORS). fields: - name: allowed_origins type: '[]string' kind: slice - doc: | - AllowedOrigins sets the allowed values of the Origin header for - HTTP/JSON requests to an OTLP receiver. An origin may contain a - wildcard (*) to replace 0 or more characters (e.g., - "http://*.domain.com", or "*" to allow any origin). - name: allowed_headers type: '[]string' kind: slice - doc: | - AllowedHeaders sets what headers will be allowed in CORS requests. - The Accept, Accept-Language, Content-Type, and Content-Language - headers are implicitly allowed. If no headers are listed, - X-Requested-With will also be accepted by default. Include "*" to - allow any request header. - name: max_age kind: int - doc: | - MaxAge sets the value of the Access-Control-Max-Age response header. - Set it to the number of seconds that browsers should cache a CORS - preflight response for. - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: max_request_body_size kind: int64 - doc: | - MaxRequestBodySize sets the maximum request body size in bytes - name: include_metadata kind: bool default: false - doc: | - IncludeMetadata propagates the client metadata from the incoming requests to the downstream consumers - Experimental: *NOTE* this option is subject to change or removal in the future. + - name: response_headers + type: map[string]configopaque.String + kind: map - name: egress type: confighttp.HTTPClientSettings kind: struct @@ -120,136 +87,83 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 10s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided diff --git a/cfg-metadata/extension/k8s_observer.yaml b/cfg-metadata/extension/k8s_observer.yaml index c9fd025..71a6261 100644 --- a/cfg-metadata/extension/k8s_observer.yaml +++ b/cfg-metadata/extension/k8s_observer.yaml @@ -26,7 +26,7 @@ fields: fieldRef: fieldPath: spec.nodeName - Then set this value to ${K8S_NODE_NAME} in the configuration. + Then set this value to ${env:K8S_NODE_NAME} in the configuration. - name: observe_pods kind: bool default: true diff --git a/cfg-metadata/extension/oauth2client.yaml b/cfg-metadata/extension/oauth2client.yaml index da42dff..22e5ca1 100644 --- a/cfg-metadata/extension/oauth2client.yaml +++ b/cfg-metadata/extension/oauth2client.yaml @@ -42,60 +42,42 @@ fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: timeout type: time.Duration kind: int64 diff --git a/cfg-metadata/extension/pprof.yaml b/cfg-metadata/extension/pprof.yaml index b423a8f..9cb7ee6 100644 --- a/cfg-metadata/extension/pprof.yaml +++ b/cfg-metadata/extension/pprof.yaml @@ -6,12 +6,6 @@ fields: - name: endpoint kind: string default: localhost:1777 - doc: | - Endpoint configures the address for this network connection. - The address has the form "host:port". The host must be a literal IP address, or a host name that can be - resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: block_profile_fraction kind: int doc: | diff --git a/cfg-metadata/extension/zpages.yaml b/cfg-metadata/extension/zpages.yaml index fff9c7b..41d4db7 100644 --- a/cfg-metadata/extension/zpages.yaml +++ b/cfg-metadata/extension/zpages.yaml @@ -1,13 +1,5 @@ type: '*zpagesextension.Config' -doc: | - TCPAddr represents a TCP endpoint address. fields: - name: endpoint kind: string default: localhost:55679 - doc: | - Endpoint configures the address for this network connection. - The address has the form "host:port". The host must be a literal IP address, or a host name that can be - resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. diff --git a/cfg-metadata/processor/batch.yaml b/cfg-metadata/processor/batch.yaml index d15d1d1..2b5a59f 100644 --- a/cfg-metadata/processor/batch.yaml +++ b/cfg-metadata/processor/batch.yaml @@ -10,3 +10,9 @@ fields: - name: send_batch_max_size kind: uint32 default: 0 +- name: metadata_keys + type: '[]string' + kind: slice +- name: metadata_cardinality_limit + kind: uint32 + default: 1000 diff --git a/cfg-metadata/processor/cumulativetodelta.yaml b/cfg-metadata/processor/cumulativetodelta.yaml index 9852ee5..2df9778 100644 --- a/cfg-metadata/processor/cumulativetodelta.yaml +++ b/cfg-metadata/processor/cumulativetodelta.yaml @@ -7,6 +7,15 @@ fields: kind: int64 doc: | MaxStaleness is the total time a state entry will live past the time it was last seen. Set to 0 to retain state indefinitely. +- name: initial_value + type: tracking.InitialValue + kind: int + doc: | + InitialValue determines how to handle the first datapoint for a given metric. Valid values: + + - auto: (default) send the first point iff the startime is set AND the starttime happens after the component started AND the starttime is different from the timestamp + - keep: always send the first point + - drop: don't send the first point, but store it for subsequent delta calculations - name: include type: cumulativetodeltaprocessor.MatchMetrics kind: struct diff --git a/cfg-metadata/processor/filter.yaml b/cfg-metadata/processor/filter.yaml index 808f962..aeabe66 100644 --- a/cfg-metadata/processor/filter.yaml +++ b/cfg-metadata/processor/filter.yaml @@ -19,7 +19,7 @@ fields: MetricFilters filters by Metric properties. fields: - name: include - type: '*filtermetric.MatchProperties' + type: '*filterconfig.MetricMatchProperties' kind: ptr doc: | Include match properties describe metrics that should be included in the Collector Service pipeline, @@ -27,7 +27,7 @@ fields: If both Include and Exclude are specified, Include filtering occurs first. fields: - name: match_type - type: filtermetric.MatchType + type: filterconfig.MetricMatchType kind: string default: "" doc: | @@ -36,7 +36,7 @@ fields: type: '*regexp.Config' kind: ptr doc: | - RegexpConfig specifies options for the Regexp match type + RegexpConfig specifies options for the MetricRegexp match type fields: - name: cacheenabled kind: bool @@ -80,7 +80,7 @@ fields: Values specifies the value to match against. If it is not set, any value will match. - name: exclude - type: '*filtermetric.MatchProperties' + type: '*filterconfig.MetricMatchProperties' kind: ptr doc: | Exclude match properties describe metrics that should be excluded from the Collector Service pipeline, @@ -88,7 +88,7 @@ fields: If both Include and Exclude are specified, Include filtering occurs first. fields: - name: match_type - type: filtermetric.MatchType + type: filterconfig.MetricMatchType kind: string default: "" doc: | @@ -97,7 +97,7 @@ fields: type: '*regexp.Config' kind: ptr doc: | - RegexpConfig specifies options for the Regexp match type + RegexpConfig specifies options for the MetricRegexp match type fields: - name: cacheenabled kind: bool diff --git a/cfg-metadata/processor/groupbytrace.yaml b/cfg-metadata/processor/groupbytrace.yaml index a527b5b..592182e 100644 --- a/cfg-metadata/processor/groupbytrace.yaml +++ b/cfg-metadata/processor/groupbytrace.yaml @@ -12,7 +12,7 @@ fields: kind: int default: 1 doc: | - NumWorkers is a number of workers processing event queue. Should be equal to physical processors number. + NumWorkers is a number of workers processing event queue. Default: 1. - name: wait_duration type: time.Duration diff --git a/cfg-metadata/processor/resourcedetection.yaml b/cfg-metadata/processor/resourcedetection.yaml index 1493fd6..a01e09f 100644 --- a/cfg-metadata/processor/resourcedetection.yaml +++ b/cfg-metadata/processor/resourcedetection.yaml @@ -26,6 +26,543 @@ fields: doc: | Tags is a list of regex's to match ec2 instance tag keys that users want to add as resource attributes to processed data + - name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for resourcedetectionprocessor/system resource attributes. + fields: + - name: cloud.account.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.availability_zone + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.platform + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.provider + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.region + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: host.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: host.image.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: host.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: host.type + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true +- name: ecs + type: ecs.Config + kind: struct + doc: | + ECSConfig contains user-specified configurations for the ECS detector + fields: + - name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for resourcedetectionprocessor/system resource attributes. + fields: + - name: aws.ecs.cluster.arn + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: aws.ecs.launchtype + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: aws.ecs.task.arn + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: aws.ecs.task.family + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: aws.ecs.task.revision + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: aws.log.group.arns + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: aws.log.group.names + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: aws.log.stream.arns + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: aws.log.stream.names + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.account.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.availability_zone + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.platform + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.provider + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.region + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true +- name: eks + type: eks.Config + kind: struct + doc: | + EKSConfig contains user-specified configurations for the EKS detector + fields: + - name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for resourcedetectionprocessor/system resource attributes. + fields: + - name: cloud.platform + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.provider + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true +- name: elasticbeanstalk + type: elasticbeanstalk.Config + kind: struct + doc: | + Elasticbeanstalk contains user-specified configurations for the elasticbeanstalk detector + fields: + - name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for resourcedetectionprocessor/system resource attributes. + fields: + - name: cloud.platform + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.provider + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: deployment.environment + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: service.instance.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: service.version + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true +- name: lambda + type: lambda.Config + kind: struct + doc: | + Lambda contains user-specified configurations for the lambda detector + fields: + - name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for resourcedetectionprocessor/system resource attributes. + fields: + - name: aws.log.group.names + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: aws.log.stream.names + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.platform + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.provider + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.region + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: faas.instance + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: faas.max_memory + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: faas.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: faas.version + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true +- name: azure + type: azure.Config + kind: struct + doc: | + Azure contains user-specified configurations for the azure detector + fields: + - name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for resourcedetectionprocessor/system resource attributes. + fields: + - name: azure.resourcegroup.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: azure.vm.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: azure.vm.scaleset.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: azure.vm.size + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.account.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.platform + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.provider + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.region + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: host.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: host.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true +- name: aks + type: aks.Config + kind: struct + doc: | + Aks contains user-specified configurations for the aks detector + fields: + - name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for resourcedetectionprocessor/system resource attributes. + fields: + - name: cloud.platform + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.provider + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true - name: consul type: consul.Config kind: struct @@ -72,6 +609,336 @@ fields: Allowlist of [Consul Metadata](https://www.consul.io/docs/agent/options#node_meta) keys to use as resource attributes. + - name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributes configuration for Consul detector + fields: + - name: azure.resourcegroup.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: azure.vm.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: azure.vm.scaleset.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: azure.vm.size + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.account.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.platform + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.provider + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.region + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: host.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: host.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true +- name: docker + type: docker.Config + kind: struct + doc: | + DockerConfig contains user-specified configurations for the docker detector + fields: + - name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for resourcedetectionprocessor/system resource attributes. + fields: + - name: host.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: os.type + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true +- name: gcp + type: gcp.Config + kind: struct + doc: | + GcpConfig contains user-specified configurations for the gcp detector + fields: + - name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for resourcedetectionprocessor/system resource attributes. + fields: + - name: cloud.account.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.availability_zone + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.platform + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.provider + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.region + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: faas.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: faas.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: faas.version + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: host.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: host.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: host.type + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: k8s.cluster.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true +- name: heroku + type: heroku.Config + kind: struct + doc: | + HerokuConfig contains user-specified configurations for the heroku detector + fields: + - name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for resourcedetectionprocessor/system resource attributes. + fields: + - name: cloud.provider + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: heroku.app.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: heroku.app.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: heroku.dyno.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: heroku.release.commit + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: heroku.release.creation_timestamp + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: heroku.release.version + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: service.instance.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true - name: system type: system.Config kind: struct @@ -85,6 +952,39 @@ fields: The HostnameSources is a priority list of sources from which hostname will be fetched. In case of the error in fetching hostname from source, the next source from the list will be considered.(**default**: `["dns", "os"]`) + - name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for resourcedetectionprocessor/system resource attributes. + fields: + - name: host.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: host.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: os.type + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true - name: openshift type: openshift.Config kind: struct @@ -111,199 +1011,171 @@ fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" + - name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for resourcedetectionprocessor/system resource attributes. + fields: + - name: cloud.platform + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.provider + type: metadata.ResourceAttributeConfig + kind: struct doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: cloud.region + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: k8s.cluster.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 5s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: attributes type: '[]string' kind: slice doc: | Attributes is an allowlist of attributes to add. - If a supplied attribute is not a valid atrtibute of a supplied detector it will be ignored. + If a supplied attribute is not a valid attribute of a supplied detector it will be ignored. + Deprecated: Please use detector's resource_attributes config instead diff --git a/cfg-metadata/processor/servicegraph.yaml b/cfg-metadata/processor/servicegraph.yaml index 6432a59..cd61ae1 100644 --- a/cfg-metadata/processor/servicegraph.yaml +++ b/cfg-metadata/processor/servicegraph.yaml @@ -41,3 +41,20 @@ fields: default: 2s doc: | TTL is the time to live for items in the store. +- name: cache_loop + type: time.Duration + kind: int64 + default: 1m0s + doc: | + CacheLoop is the time to cleans the cache periodically. +- name: store_expiration_loop + type: time.Duration + kind: int64 + default: 2s + doc: | + CacheLoop is the time to expire old entries from the store periodically. +- name: virtual_node_peer_attributes + type: '[]string' + kind: slice + doc: | + VirtualNodePeerAttributes the list of attributes need to match, the higher the front, the higher the priority. diff --git a/cfg-metadata/receiver/active_directory_ds.yaml b/cfg-metadata/receiver/active_directory_ds.yaml index 3504cae..6487edb 100644 --- a/cfg-metadata/receiver/active_directory_ds.yaml +++ b/cfg-metadata/receiver/active_directory_ds.yaml @@ -1,178 +1,179 @@ type: '*activedirectorydsreceiver.Config' -type: '*activedirectorydsreceiver.Config' doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. + MetricsBuilderConfig is a configuration for active_directory_ds metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for activedirectorydsreceiver metrics. + MetricsConfig provides config for active_directory_ds metrics. fields: - name: active_directory.ds.bind.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.ldap.bind.last_successful.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.ldap.bind.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.ldap.client.session.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.ldap.search.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.name_cache.hit_rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.notification.queued - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.operation.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.replication.network.io - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.replication.object.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.replication.operation.pending - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.replication.property.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.replication.sync.object.pending - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.replication.sync.request.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.replication.value.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.security_descriptor_propagations_event.queued - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.suboperation.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: active_directory.ds.thread.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/aerospike.yaml b/cfg-metadata/receiver/aerospike.yaml index eb5a4f0..3b61ddc 100644 --- a/cfg-metadata/receiver/aerospike.yaml +++ b/cfg-metadata/receiver/aerospike.yaml @@ -6,6 +6,10 @@ fields: type: time.Duration kind: int64 default: 1m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: localhost:3000 @@ -16,6 +20,7 @@ fields: kind: string default: "" - name: password + type: configopaque.String kind: string default: "" - name: collect_cluster_metrics @@ -26,133 +31,157 @@ fields: kind: int64 default: 20s - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for aerospikereceiver metrics. + MetricsConfig provides config for aerospike metrics. fields: - name: aerospike.namespace.disk.available - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: aerospike.namespace.geojson.region_query_cells - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: aerospike.namespace.geojson.region_query_false_positive - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: aerospike.namespace.geojson.region_query_points - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: aerospike.namespace.geojson.region_query_requests - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: aerospike.namespace.memory.free - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: aerospike.namespace.memory.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: aerospike.namespace.query.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: aerospike.namespace.scan.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: aerospike.namespace.transaction.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: aerospike.node.connection.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: aerospike.node.connection.open - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: aerospike.node.memory.free - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: aerospike.node.query.tracked - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for aerospike resource attributes. + fields: + - name: aerospike.namespace + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: aerospike.node.name + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool @@ -160,65 +189,43 @@ fields: - name: tls type: '*configtls.TLSClientSetting' kind: ptr - doc: | - TLSClientSetting contains TLS configurations that are specific to client - connections in addition to the common configurations. This should be used by - components configuring TLS client connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) diff --git a/cfg-metadata/receiver/apache.yaml b/cfg-metadata/receiver/apache.yaml index 515d3da..41026cd 100644 --- a/cfg-metadata/receiver/apache.yaml +++ b/cfg-metadata/receiver/apache.yaml @@ -1,259 +1,232 @@ type: '*apachereceiver.Config' doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. + MetricsBuilderConfig is a configuration for apache metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: http://localhost:8080/server-status?auto - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 10s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for apachereceiver metrics. + MetricsConfig provides config for apache metrics. fields: - name: apache.cpu.load - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: apache.cpu.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: apache.current_connections - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: apache.load.1 - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: apache.load.15 - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: apache.load.5 - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: apache.request.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: apache.requests - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: apache.scoreboard - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: apache.traffic - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: apache.uptime - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: apache.workers - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for apache resource attributes. + fields: + - name: apache.server.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: apache.server.port + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/awsfirehose.yaml b/cfg-metadata/receiver/awsfirehose.yaml index 834df10..1c2012c 100644 --- a/cfg-metadata/receiver/awsfirehose.yaml +++ b/cfg-metadata/receiver/awsfirehose.yaml @@ -1,110 +1,75 @@ type: '*awsfirehosereceiver.Config' -doc: | - HTTPServerSettings defines settings for creating an HTTP server. fields: - name: endpoint kind: string default: 0.0.0.0:4433 - doc: | - Endpoint configures the listening address for the server. - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) + - name: client_ca_file_reload + kind: bool + default: false - name: cors type: '*confighttp.CORSSettings' kind: ptr - doc: | - CORS configures the server for HTTP cross-origin resource sharing (CORS). fields: - name: allowed_origins type: '[]string' kind: slice - doc: | - AllowedOrigins sets the allowed values of the Origin header for - HTTP/JSON requests to an OTLP receiver. An origin may contain a - wildcard (*) to replace 0 or more characters (e.g., - "http://*.domain.com", or "*" to allow any origin). - name: allowed_headers type: '[]string' kind: slice - doc: | - AllowedHeaders sets what headers will be allowed in CORS requests. - The Accept, Accept-Language, Content-Type, and Content-Language - headers are implicitly allowed. If no headers are listed, - X-Requested-With will also be accepted by default. Include "*" to - allow any request header. - name: max_age kind: int - doc: | - MaxAge sets the value of the Access-Control-Max-Age response header. - Set it to the number of seconds that browsers should cache a CORS - preflight response for. - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: max_request_body_size kind: int64 - doc: | - MaxRequestBodySize sets the maximum request body size in bytes - name: include_metadata kind: bool default: false - doc: | - IncludeMetadata propagates the client metadata from the incoming requests to the downstream consumers - Experimental: *NOTE* this option is subject to change or removal in the future. +- name: response_headers + type: map[string]configopaque.String + kind: map - name: record_type kind: string default: cwmetrics diff --git a/cfg-metadata/receiver/awsxray.yaml b/cfg-metadata/receiver/awsxray.yaml index 3378c6e..2ac8cfa 100644 --- a/cfg-metadata/receiver/awsxray.yaml +++ b/cfg-metadata/receiver/awsxray.yaml @@ -5,18 +5,9 @@ fields: - name: endpoint kind: string default: 0.0.0.0:2000 - doc: | - Endpoint configures the address for this network connection. - For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, - or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: transport kind: string default: udp - doc: | - Transport to use. Known protocols are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), - "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". - name: proxy_server type: '*proxy.Config' kind: ptr @@ -26,12 +17,6 @@ fields: - name: endpoint kind: string default: 0.0.0.0:2000 - doc: | - Endpoint configures the address for this network connection. - The address has the form "host:port". The host must be a literal IP address, or a host name that can be - resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: proxy_address kind: string default: "" @@ -48,60 +33,42 @@ fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: region kind: string default: "" diff --git a/cfg-metadata/receiver/azuremonitor.yaml b/cfg-metadata/receiver/azuremonitor.yaml new file mode 100644 index 0000000..73e0dc7 --- /dev/null +++ b/cfg-metadata/receiver/azuremonitor.yaml @@ -0,0 +1,64 @@ +type: '*azuremonitorreceiver.Config' +doc: | + Config defines the configuration for the various elements of the receiver agent. +fields: +- name: collection_interval + type: time.Duration + kind: int64 + default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s +- name: resource_attributes + type: metadata.ResourceAttributesSettings + kind: struct + doc: | + ResourceAttributesSettings provides settings for azuremonitorreceiver metrics. + fields: + - name: azuremonitor.subscription_id + type: metadata.ResourceAttributeSettings + kind: struct + doc: | + ResourceAttributeSettings provides common settings for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: azuremonitor.tenant_id + type: metadata.ResourceAttributeSettings + kind: struct + doc: | + ResourceAttributeSettings provides common settings for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: subscription_id + kind: string + default: "" +- name: tenant_id + kind: string + default: "" +- name: client_id + kind: string + default: "" +- name: client_secret + kind: string + default: "" +- name: resource_groups + type: '[]string' + kind: slice +- name: services + type: '[]string' + kind: slice +- name: cache_resources + kind: float64 +- name: cache_resources_definitions + kind: float64 +- name: maximum_number_of_metrics_in_a_call + kind: int + default: 20 +- name: append_tags_as_attributes + kind: bool + default: false diff --git a/cfg-metadata/receiver/bigip.yaml b/cfg-metadata/receiver/bigip.yaml index 1176bba..c9236c8 100644 --- a/cfg-metadata/receiver/bigip.yaml +++ b/cfg-metadata/receiver/bigip.yaml @@ -6,393 +6,413 @@ fields: type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 - name: endpoint kind: string default: https://localhost:443 - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 10s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: username kind: string default: "" - name: password + type: configopaque.String kind: string default: "" - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for bigipreceiver metrics. + MetricsConfig provides config for bigip metrics. fields: - name: bigip.node.availability - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.node.connection.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.node.data.transmitted - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.node.enabled - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.node.packet.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.node.request.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.node.session.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool.availability - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool.connection.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool.data.transmitted - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool.enabled - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool.member.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool.packet.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool.request.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool_member.availability - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool_member.connection.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool_member.data.transmitted - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool_member.enabled - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool_member.packet.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool_member.request.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.pool_member.session.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.virtual_server.availability - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.virtual_server.connection.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.virtual_server.data.transmitted - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.virtual_server.enabled - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.virtual_server.packet.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: bigip.virtual_server.request.count - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for bigip resource attributes. + fields: + - name: bigip.node.ip_address + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: bigip.node.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: bigip.pool.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: bigip.pool_member.ip_address + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: bigip.pool_member.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: bigip.virtual_server.destination + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: bigip.virtual_server.name + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/carbon.yaml b/cfg-metadata/receiver/carbon.yaml index 2f74bfe..d3877f8 100644 --- a/cfg-metadata/receiver/carbon.yaml +++ b/cfg-metadata/receiver/carbon.yaml @@ -5,18 +5,9 @@ fields: - name: endpoint kind: string default: localhost:2003 - doc: | - Endpoint configures the address for this network connection. - For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, - or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: transport kind: string default: tcp - doc: | - Transport to use. Known protocols are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), - "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". - name: tcp_idle_timeout type: time.Duration kind: int64 diff --git a/cfg-metadata/receiver/chrony.yaml b/cfg-metadata/receiver/chrony.yaml index b0024cc..e3f40d7 100644 --- a/cfg-metadata/receiver/chrony.yaml +++ b/cfg-metadata/receiver/chrony.yaml @@ -1,78 +1,80 @@ type: '*chronyreceiver.Config' doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. + MetricsBuilderConfig is a configuration for chrony metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 1m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for chrony receiver metrics. + MetricsConfig provides config for chrony metrics. fields: - name: ntp.frequency.offset - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: ntp.skew - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: ntp.stratum - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: ntp.time.correction - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: ntp.time.last_offset - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: ntp.time.rms_offset - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: ntp.time.root_delay - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/cloudfoundry.yaml b/cfg-metadata/receiver/cloudfoundry.yaml index 8c4a1c1..e8dc6e6 100644 --- a/cfg-metadata/receiver/cloudfoundry.yaml +++ b/cfg-metadata/receiver/cloudfoundry.yaml @@ -5,144 +5,89 @@ fields: - name: rlp_gateway type: cloudfoundryreceiver.RLPGatewayConfig kind: struct - doc: | - HTTPClientSettings defines settings for creating an HTTP client. fields: - name: endpoint kind: string default: https://localhost - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: shard_id kind: string default: opentelemetry diff --git a/cfg-metadata/receiver/collectd.yaml b/cfg-metadata/receiver/collectd.yaml index 83da493..6b930e8 100644 --- a/cfg-metadata/receiver/collectd.yaml +++ b/cfg-metadata/receiver/collectd.yaml @@ -5,12 +5,6 @@ fields: - name: endpoint kind: string default: localhost:8081 - doc: | - Endpoint configures the address for this network connection. - The address has the form "host:port". The host must be a literal IP address, or a host name that can be - resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: timeout type: time.Duration kind: int64 diff --git a/cfg-metadata/receiver/couchdb.yaml b/cfg-metadata/receiver/couchdb.yaml index 874bb03..54f31a0 100644 --- a/cfg-metadata/receiver/couchdb.yaml +++ b/cfg-metadata/receiver/couchdb.yaml @@ -6,216 +6,182 @@ fields: type: time.Duration kind: int64 default: 1m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: http://localhost:5984 - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 1m0s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for couchdbreceiver metrics. + MetricsConfig provides config for couchdb metrics. fields: - name: couchdb.average_request_time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: couchdb.database.open - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: couchdb.database.operations - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: couchdb.file_descriptor.open - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: couchdb.httpd.bulk_requests - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: couchdb.httpd.requests - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: couchdb.httpd.responses - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: couchdb.httpd.views - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for couchdb resource attributes. + fields: + - name: couchdb.node.name + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool @@ -224,5 +190,6 @@ fields: kind: string default: "" - name: password + type: configopaque.String kind: string default: "" diff --git a/cfg-metadata/receiver/datadog.yaml b/cfg-metadata/receiver/datadog.yaml new file mode 100644 index 0000000..93a2c5a --- /dev/null +++ b/cfg-metadata/receiver/datadog.yaml @@ -0,0 +1,78 @@ +type: '*datadogreceiver.Config' +fields: +- name: endpoint + kind: string + default: localhost:8126 +- name: tls + type: '*configtls.TLSServerSetting' + kind: ptr + fields: + - name: ca_file + kind: string + default: "" + - name: ca_pem + type: configopaque.String + kind: string + default: "" + - name: cert_file + kind: string + default: "" + - name: cert_pem + type: configopaque.String + kind: string + default: "" + - name: key_file + kind: string + default: "" + - name: key_pem + type: configopaque.String + kind: string + default: "" + - name: min_version + kind: string + default: "" + - name: max_version + kind: string + default: "" + - name: reload_interval + type: time.Duration + kind: int64 + - name: client_ca_file + kind: string + default: "" + - name: client_ca_file_reload + kind: bool + default: false +- name: cors + type: '*confighttp.CORSSettings' + kind: ptr + fields: + - name: allowed_origins + type: '[]string' + kind: slice + - name: allowed_headers + type: '[]string' + kind: slice + - name: max_age + kind: int +- name: auth + type: '*configauth.Authentication' + kind: ptr + fields: + - name: authenticator + type: component.ID + kind: struct +- name: max_request_body_size + kind: int64 +- name: include_metadata + kind: bool + default: false +- name: response_headers + type: map[string]configopaque.String + kind: map +- name: read_timeout + type: time.Duration + kind: int64 + default: 1m0s + doc: | + ReadTimeout of the http server diff --git a/cfg-metadata/receiver/docker_stats.yaml b/cfg-metadata/receiver/docker_stats.yaml index 1237fff..c76dbc1 100644 --- a/cfg-metadata/receiver/docker_stats.yaml +++ b/cfg-metadata/receiver/docker_stats.yaml @@ -1,13 +1,15 @@ type: '*dockerstatsreceiver.Config' doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. + MetricsBuilderConfig is a configuration for docker_stats metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: unix:///var/run/docker.sock @@ -43,585 +45,685 @@ fields: kind: slice doc: | A list of filters whose matching images are to be excluded. Supports literals, globs, and regex. -- name: provide_per_core_cpu_metrics - kind: bool - default: false - doc: | - Whether to report all CPU metrics. Default is false - name: api_version kind: float64 doc: | Docker client API version. Default is 1.22 - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - Metrics config. Enable or disable stats by name. + MetricsConfig provides config for docker_stats metrics. fields: - name: container.blockio.io_merged_recursive - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.blockio.io_queued_recursive - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.blockio.io_service_bytes_recursive - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: container.blockio.io_service_time_recursive - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.blockio.io_serviced_recursive - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.blockio.io_time_recursive - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.blockio.io_wait_time_recursive - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.blockio.sectors_recursive - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.cpu.percent - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: container.cpu.throttling_data.periods - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.cpu.throttling_data.throttled_periods - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.cpu.throttling_data.throttled_time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.cpu.usage.kernelmode - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: container.cpu.usage.percpu - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.cpu.usage.system - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.cpu.usage.total - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: container.cpu.usage.usermode - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true + - name: container.cpu.utilization + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false - name: container.memory.active_anon - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.active_file - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: container.memory.anon + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.cache - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.dirty - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false + - name: container.memory.file + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true - name: container.memory.hierarchical_memory_limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.hierarchical_memsw_limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.inactive_anon - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.inactive_file - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.mapped_file - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.percent - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: container.memory.pgfault - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.pgmajfault - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.pgpgin - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.pgpgout - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.rss - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.rss_huge - type: metadata.MetricSettings - kind: struct - doc: | - MetricSettings provides common settings for a particular metric. - fields: - - name: enabled - kind: bool - default: false - - name: container.memory.swap - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_active_anon - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_active_file - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_cache - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: container.memory.total_dirty - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_inactive_anon - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_inactive_file - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_mapped_file - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_pgfault - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_pgmajfault - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_pgpgin - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_pgpgout - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_rss - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_rss_huge - type: metadata.MetricSettings - kind: struct - doc: | - MetricSettings provides common settings for a particular metric. - fields: - - name: enabled - kind: bool - default: false - - name: container.memory.total_swap - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_unevictable - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.total_writeback - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.unevictable - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.usage.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: container.memory.usage.max - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.memory.usage.total - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: container.memory.writeback - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.network.io.usage.rx_bytes - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: container.network.io.usage.rx_dropped - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: container.network.io.usage.rx_errors - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.network.io.usage.rx_packets - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.network.io.usage.tx_bytes - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: container.network.io.usage.tx_dropped - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: container.network.io.usage.tx_errors - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: container.network.io.usage.tx_packets - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: container.pids.count + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: container.pids.limit + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: container.uptime + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for docker_stats resource attributes. + fields: + - name: container.command_line + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: false + - name: container.hostname + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: container.id + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: container.image.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool default: false + - name: container.image.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: container.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: container.runtime + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true diff --git a/cfg-metadata/receiver/elasticsearch.yaml b/cfg-metadata/receiver/elasticsearch.yaml index 9b3f269..7040e32 100644 --- a/cfg-metadata/receiver/elasticsearch.yaml +++ b/cfg-metadata/receiver/elasticsearch.yaml @@ -6,963 +6,956 @@ fields: type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: http://localhost:9200 - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 10s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - Metrics defines which metrics to enable for the scraper + MetricsConfig provides config for elasticsearch metrics. fields: - name: elasticsearch.breaker.memory.estimated - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.breaker.memory.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.breaker.tripped - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.cluster.data_nodes - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.cluster.health - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.cluster.in_flight_fetch - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.cluster.indices.cache.evictions - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.cluster.nodes - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.cluster.pending_tasks - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.cluster.published_states.differences - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.cluster.published_states.full - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.cluster.shards - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.cluster.state_queue - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.cluster.state_update.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.cluster.state_update.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.index.cache.evictions - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.index.cache.memory.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.index.cache.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.index.documents - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.index.operations.completed - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.index.operations.merge.docs_count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.index.operations.merge.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.index.operations.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.index.segments.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.index.segments.memory - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.index.segments.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.index.shards.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.index.translog.operations - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.index.translog.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.indexing_pressure.memory.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.indexing_pressure.memory.total.primary_rejections - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.indexing_pressure.memory.total.replica_rejections - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.memory.indexing_pressure - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.cache.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.cache.evictions - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.cache.memory.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.cache.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.node.cluster.connections - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.cluster.io - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.disk.io.read - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.disk.io.write - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.documents - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.fs.disk.available - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.fs.disk.free - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.fs.disk.total - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.http.connections - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.ingest.documents - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.ingest.documents.current - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.ingest.operations.failed - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.open_files - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.operations.completed - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.operations.current - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.node.operations.get.completed - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.node.operations.get.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.node.operations.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.pipeline.ingest.documents.current - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.pipeline.ingest.documents.preprocessed - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.pipeline.ingest.operations.failed - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.script.cache_evictions - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.script.compilation_limit_triggered - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.script.compilations - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.segments.memory - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.node.shards.data_set.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.shards.reserved.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.shards.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.thread_pool.tasks.finished - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.thread_pool.tasks.queued - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.thread_pool.threads - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.translog.operations - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.translog.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.node.translog.uncommitted.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.os.cpu.load_avg.15m - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.os.cpu.load_avg.1m - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.os.cpu.load_avg.5m - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.os.cpu.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.os.memory - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: elasticsearch.process.cpu.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.process.cpu.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: elasticsearch.process.memory.virtual - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: jvm.classes.loaded - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: jvm.gc.collections.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: jvm.gc.collections.elapsed - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: jvm.memory.heap.committed - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: jvm.memory.heap.max - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: jvm.memory.heap.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: jvm.memory.heap.utilization - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: jvm.memory.nonheap.committed - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: jvm.memory.nonheap.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: jvm.memory.pool.max - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: jvm.memory.pool.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: jvm.threads.count - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for elasticsearch resource attributes. + fields: + - name: elasticsearch.cluster.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: elasticsearch.index.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: elasticsearch.node.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: elasticsearch.node.version + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool @@ -993,6 +986,7 @@ fields: doc: | Username is the username used when making REST calls to elasticsearch. Must be specified if Password is. Not required. - name: password + type: configopaque.String kind: string default: "" doc: | diff --git a/cfg-metadata/receiver/expvar.yaml b/cfg-metadata/receiver/expvar.yaml index 95386ed..58e7155 100644 --- a/cfg-metadata/receiver/expvar.yaml +++ b/cfg-metadata/receiver/expvar.yaml @@ -1,385 +1,334 @@ type: '*expvarreceiver.Config' doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. + MetricsBuilderConfig is a configuration for expvar metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 1m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: http://localhost:8000/debug/vars - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 3s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for expvarreceiver metrics. + MetricsConfig provides config for expvar metrics. fields: - name: process.runtime.memstats.buck_hash_sys - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.frees - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.gc_cpu_fraction - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.gc_sys - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.heap_alloc - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.heap_idle - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.heap_inuse - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.heap_objects - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.heap_released - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.heap_sys - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.last_pause - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.lookups - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: process.runtime.memstats.mallocs - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.mcache_inuse - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.mcache_sys - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.mspan_inuse - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.mspan_sys - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.next_gc - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.num_forced_gc - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.num_gc - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.other_sys - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.pause_total - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.stack_inuse - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.stack_sys - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.sys - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: process.runtime.memstats.total_alloc - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/filelog.yaml b/cfg-metadata/receiver/filelog.yaml index 085c64f..375d497 100644 --- a/cfg-metadata/receiver/filelog.yaml +++ b/cfg-metadata/receiver/filelog.yaml @@ -23,6 +23,16 @@ fields: - name: exclude type: '[]string' kind: slice +- name: ordering_criteria + type: fileconsumer.OrderingCriteria + kind: struct + fields: + - name: regex + kind: string + default: "" + - name: sort_by + type: '[]fileconsumer.SortRuleImpl' + kind: slice - name: include_file_name kind: bool default: true diff --git a/cfg-metadata/receiver/flinkmetrics.yaml b/cfg-metadata/receiver/flinkmetrics.yaml index cf7299f..29bd2e0 100644 --- a/cfg-metadata/receiver/flinkmetrics.yaml +++ b/cfg-metadata/receiver/flinkmetrics.yaml @@ -6,405 +6,416 @@ fields: type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: http://localhost:8081 - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 10s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for flinkmetricsreceiver metrics. + MetricsConfig provides config for flinkmetrics metrics. fields: - name: flink.job.checkpoint.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.job.checkpoint.in_progress - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.job.last_checkpoint.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.job.last_checkpoint.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.job.restart.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.class_loader.classes_loaded - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.cpu.load - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.cpu.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.gc.collections.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.gc.collections.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.memory.direct.total_capacity - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.memory.direct.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.memory.heap.committed - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.memory.heap.max - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.memory.heap.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.memory.mapped.total_capacity - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.memory.mapped.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.memory.metaspace.committed - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.memory.metaspace.max - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.memory.metaspace.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.memory.nonheap.committed - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.memory.nonheap.max - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.memory.nonheap.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.jvm.threads.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.memory.managed.total - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.memory.managed.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.operator.record.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.operator.watermark.output - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: flink.task.record.count - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for flinkmetrics resource attributes. + fields: + - name: flink.job.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: flink.resource.type + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: flink.subtask.index + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: flink.task.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: flink.taskmanager.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: host.name + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/googlecloudpubsub.yaml b/cfg-metadata/receiver/googlecloudpubsub.yaml index 534b8cb..7850503 100644 --- a/cfg-metadata/receiver/googlecloudpubsub.yaml +++ b/cfg-metadata/receiver/googlecloudpubsub.yaml @@ -1,6 +1,4 @@ type: '*googlecloudpubsubreceiver.Config' -doc: | - TimeoutSettings for timeout. The timeout applies to individual attempts to send data to the backend. fields: - name: project kind: string @@ -25,8 +23,6 @@ fields: - name: timeout type: time.Duration kind: int64 - doc: | - Timeout is the timeout for every attempt to send data to the backend. - name: subscription kind: string default: "" diff --git a/cfg-metadata/receiver/googlecloudspanner.yaml b/cfg-metadata/receiver/googlecloudspanner.yaml index 721b861..27d7a35 100644 --- a/cfg-metadata/receiver/googlecloudspanner.yaml +++ b/cfg-metadata/receiver/googlecloudspanner.yaml @@ -1,13 +1,13 @@ type: '*googlecloudspannerreceiver.Config' -doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. fields: - name: collection_interval type: time.Duration kind: int64 default: 1m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: top_metrics_query_max_rows kind: int default: 100 @@ -39,3 +39,6 @@ fields: - name: hide_topn_lockstats_rowrangestartkey kind: bool default: false +- name: truncate_text + kind: bool + default: false diff --git a/cfg-metadata/receiver/haproxy.yaml b/cfg-metadata/receiver/haproxy.yaml new file mode 100644 index 0000000..04f4137 --- /dev/null +++ b/cfg-metadata/receiver/haproxy.yaml @@ -0,0 +1,421 @@ +type: '*haproxyreceiver.Config' +doc: | + MetricsBuilderConfig is a configuration for haproxy metrics builder. +fields: +- name: endpoint + kind: string + default: "" +- name: tls + type: configtls.TLSClientSetting + kind: struct + fields: + - name: ca_file + kind: string + default: "" + - name: ca_pem + type: configopaque.String + kind: string + default: "" + - name: cert_file + kind: string + default: "" + - name: cert_pem + type: configopaque.String + kind: string + default: "" + - name: key_file + kind: string + default: "" + - name: key_pem + type: configopaque.String + kind: string + default: "" + - name: min_version + kind: string + default: "" + - name: max_version + kind: string + default: "" + - name: reload_interval + type: time.Duration + kind: int64 + - name: insecure + kind: bool + default: false + - name: insecure_skip_verify + kind: bool + default: false + - name: server_name_override + kind: string + default: "" +- name: read_buffer_size + kind: int +- name: write_buffer_size + kind: int +- name: timeout + type: time.Duration + kind: int64 +- name: headers + type: map[string]configopaque.String + kind: map +- name: customroundtripper + type: func(http.RoundTripper) (http.RoundTripper, error) + kind: func +- name: auth + type: '*configauth.Authentication' + kind: ptr + fields: + - name: authenticator + type: component.ID + kind: struct +- name: compression + type: configcompression.CompressionType + kind: string + default: "" +- name: max_idle_conns + type: '*int' + kind: ptr +- name: max_idle_conns_per_host + type: '*int' + kind: ptr +- name: max_conns_per_host + type: '*int' + kind: ptr +- name: idle_conn_timeout + type: '*time.Duration' + kind: ptr +- name: collection_interval + type: time.Duration + kind: int64 + default: 1m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s +- name: metrics + type: metadata.MetricsConfig + kind: struct + doc: | + MetricsConfig provides config for haproxy metrics. + fields: + - name: haproxy.bytes.input + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.bytes.output + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.clients.canceled + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: haproxy.compression.bypass + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: haproxy.compression.count + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: haproxy.compression.input + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: haproxy.compression.output + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: haproxy.connections.errors + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.connections.rate + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.connections.retries + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.connections.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: haproxy.downtime + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: haproxy.failed_checks + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: haproxy.requests.denied + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.requests.errors + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.requests.queued + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.requests.rate + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.requests.redispatched + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.requests.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.responses.denied + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.responses.errors + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.server_selected.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.sessions.average + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.sessions.count + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.sessions.rate + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.sessions.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for haproxy resource attributes. + fields: + - name: haproxy.addr + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.algo + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.iid + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.pid + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.sid + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.type + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: haproxy.url + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: proxy_name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: false + - name: service_name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: false diff --git a/cfg-metadata/receiver/hostmetrics.yaml b/cfg-metadata/receiver/hostmetrics.yaml index ab256cf..5964776 100644 --- a/cfg-metadata/receiver/hostmetrics.yaml +++ b/cfg-metadata/receiver/hostmetrics.yaml @@ -6,6 +6,10 @@ fields: type: time.Duration kind: int64 default: 1m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: root_path kind: string default: "" diff --git a/cfg-metadata/receiver/httpcheck.yaml b/cfg-metadata/receiver/httpcheck.yaml index 3b8b6ac..41375c8 100644 --- a/cfg-metadata/receiver/httpcheck.yaml +++ b/cfg-metadata/receiver/httpcheck.yaml @@ -5,172 +5,123 @@ fields: - name: collection_interval type: time.Duration kind: int64 - default: 10s + default: 1m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string - default: http://localhost:80 - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). + default: "" - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 10s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for httpcheckreceiver metrics. + MetricsConfig provides config for httpcheck metrics. fields: - name: httpcheck.duration - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: httpcheck.error - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: httpcheck.status - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/iis.yaml b/cfg-metadata/receiver/iis.yaml index 4194af9..009957f 100644 --- a/cfg-metadata/receiver/iis.yaml +++ b/cfg-metadata/receiver/iis.yaml @@ -6,116 +6,144 @@ fields: type: time.Duration kind: int64 default: 1m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for iisreceiver metrics. + MetricsConfig provides config for iis metrics. fields: - name: iis.connection.active - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: iis.connection.anonymous - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: iis.connection.attempt.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: iis.network.blocked - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: iis.network.file.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: iis.network.io - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: iis.request.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: iis.request.queue.age.max - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: iis.request.queue.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: iis.request.rejected - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: iis.thread.active - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: iis.uptime - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for iis resource attributes. + fields: + - name: iis.application_pool + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: iis.site + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/influxdb.yaml b/cfg-metadata/receiver/influxdb.yaml index e35340a..4840f78 100644 --- a/cfg-metadata/receiver/influxdb.yaml +++ b/cfg-metadata/receiver/influxdb.yaml @@ -5,103 +5,70 @@ fields: - name: endpoint kind: string default: 0.0.0.0:8086 - doc: | - Endpoint configures the listening address for the server. - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) + - name: client_ca_file_reload + kind: bool + default: false - name: cors type: '*confighttp.CORSSettings' kind: ptr - doc: | - CORS configures the server for HTTP cross-origin resource sharing (CORS). fields: - name: allowed_origins type: '[]string' kind: slice - doc: | - AllowedOrigins sets the allowed values of the Origin header for - HTTP/JSON requests to an OTLP receiver. An origin may contain a - wildcard (*) to replace 0 or more characters (e.g., - "http://*.domain.com", or "*" to allow any origin). - name: allowed_headers type: '[]string' kind: slice - doc: | - AllowedHeaders sets what headers will be allowed in CORS requests. - The Accept, Accept-Language, Content-Type, and Content-Language - headers are implicitly allowed. If no headers are listed, - X-Requested-With will also be accepted by default. Include "*" to - allow any request header. - name: max_age kind: int - doc: | - MaxAge sets the value of the Access-Control-Max-Age response header. - Set it to the number of seconds that browsers should cache a CORS - preflight response for. - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: max_request_body_size kind: int64 - doc: | - MaxRequestBodySize sets the maximum request body size in bytes - name: include_metadata kind: bool default: false - doc: | - IncludeMetadata propagates the client metadata from the incoming requests to the downstream consumers - Experimental: *NOTE* this option is subject to change or removal in the future. +- name: response_headers + type: map[string]configopaque.String + kind: map diff --git a/cfg-metadata/receiver/jaeger.yaml b/cfg-metadata/receiver/jaeger.yaml index 5106e3e..c37ff8c 100644 --- a/cfg-metadata/receiver/jaeger.yaml +++ b/cfg-metadata/receiver/jaeger.yaml @@ -11,113 +11,70 @@ fields: - name: grpc type: '*configgrpc.GRPCServerSettings' kind: ptr - doc: | - GRPCServerSettings defines common settings for a gRPC server configuration. fields: - name: endpoint kind: string default: 0.0.0.0:14250 - doc: | - Endpoint configures the address for this network connection. - For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, - or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: transport kind: string default: tcp - doc: | - Transport to use. Known protocols are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), - "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - Configures the protocol to use TLS. - The default value is nil, which will cause the protocol to not use TLS. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: client_ca_file_reload kind: bool default: false - doc: | - Reload the ClientCAs file when it is modified - (optional, default false) - name: max_recv_msg_size_mib kind: uint64 default: 0 - doc: | - MaxRecvMsgSizeMiB sets the maximum size (in MiB) of messages accepted by the server. - name: max_concurrent_streams kind: uint32 default: 0 - doc: | - MaxConcurrentStreams sets the limit on the number of concurrent streams to each ServerTransport. - It has effect only for streaming RPCs. - name: read_buffer_size kind: int - doc: | - ReadBufferSize for gRPC server. See grpc.ReadBufferSize. - (https://godoc.org/google.golang.org/grpc#ReadBufferSize). - name: write_buffer_size kind: int - doc: | - WriteBufferSize for gRPC server. See grpc.WriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WriteBufferSize). - name: keepalive type: '*configgrpc.KeepaliveServerConfig' kind: ptr - doc: | - Keepalive anchor for all the settings related to keepalive. fields: - name: server_parameters type: '*configgrpc.KeepaliveServerParameters' kind: ptr - doc: | - KeepaliveServerParameters allow configuration of the keepalive.ServerParameters. - The same default values as keepalive.ServerParameters are applicable and get applied by the server. - See https://godoc.org/google.golang.org/grpc/keepalive#ServerParameters for details. fields: - name: max_connection_idle type: time.Duration @@ -137,10 +94,6 @@ fields: - name: enforcement_policy type: '*configgrpc.KeepaliveEnforcementPolicy' kind: ptr - doc: | - KeepaliveEnforcementPolicy allow configuration of the keepalive.EnforcementPolicy. - The same default values as keepalive.EnforcementPolicy are applicable and get applied by the server. - See https://godoc.org/google.golang.org/grpc/keepalive#EnforcementPolicy for details. fields: - name: min_time type: time.Duration @@ -151,135 +104,87 @@ fields: - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: include_metadata kind: bool default: false - doc: | - Include propagates the incoming connection's metadata to downstream consumers. - Experimental: *NOTE* this option is subject to change or removal in the future. - name: thrift_http type: '*confighttp.HTTPServerSettings' kind: ptr - doc: | - HTTPServerSettings defines settings for creating an HTTP server. fields: - name: endpoint kind: string default: 0.0.0.0:14268 - doc: | - Endpoint configures the listening address for the server. - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: client_ca_file_reload kind: bool default: false - doc: | - Reload the ClientCAs file when it is modified - (optional, default false) - name: cors type: '*confighttp.CORSSettings' kind: ptr - doc: | - CORS configures the server for HTTP cross-origin resource sharing (CORS). fields: - name: allowed_origins type: '[]string' kind: slice - doc: | - AllowedOrigins sets the allowed values of the Origin header for - HTTP/JSON requests to an OTLP receiver. An origin may contain a - wildcard (*) to replace 0 or more characters (e.g., - "http://*.domain.com", or "*" to allow any origin). - name: allowed_headers type: '[]string' kind: slice - doc: | - AllowedHeaders sets what headers will be allowed in CORS requests. - The Accept, Accept-Language, Content-Type, and Content-Language - headers are implicitly allowed. If no headers are listed, - X-Requested-With will also be accepted by default. Include "*" to - allow any request header. - name: max_age kind: int - doc: | - MaxAge sets the value of the Access-Control-Max-Age response header. - Set it to the number of seconds that browsers should cache a CORS - preflight response for. - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: max_request_body_size kind: int64 - doc: | - MaxRequestBodySize sets the maximum request body size in bytes - name: include_metadata kind: bool default: false - doc: | - IncludeMetadata propagates the client metadata from the incoming requests to the downstream consumers - Experimental: *NOTE* this option is subject to change or removal in the future. + - name: response_headers + type: map[string]configopaque.String + kind: map - name: thrift_binary type: '*jaegerreceiver.ProtocolUDP' kind: ptr @@ -338,85 +243,56 @@ fields: - name: endpoint kind: string default: "" - doc: | - 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. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: keepalive type: '*configgrpc.KeepaliveClientConfig' kind: ptr - doc: | - The keepalive parameters for gRPC client. See grpc.WithKeepaliveParams. - (https://godoc.org/google.golang.org/grpc#WithKeepaliveParams). fields: - name: time type: time.Duration @@ -429,39 +305,21 @@ fields: default: false - name: read_buffer_size kind: int - doc: | - ReadBufferSize for gRPC client. See grpc.WithReadBufferSize. - (https://godoc.org/google.golang.org/grpc#WithReadBufferSize). - name: write_buffer_size kind: int - doc: | - WriteBufferSize for gRPC gRPC. See grpc.WithWriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WithWriteBufferSize). - name: wait_for_ready kind: bool default: false - doc: | - WaitForReady parameter configures client to wait for ready state before sending data. - (https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md) - name: headers type: map[string]configopaque.String kind: map - doc: | - The headers associated with gRPC requests. - name: balancer_name kind: string default: "" - doc: | - Sets the balancer in grpclb_policy to discover the servers. Default is pick_first. - https://github.com/grpc/grpc-go/blob/master/examples/features/load_balancing/README.md - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing RPCs. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. diff --git a/cfg-metadata/receiver/jmx.yaml b/cfg-metadata/receiver/jmx.yaml index 4792678..92517b9 100644 --- a/cfg-metadata/receiver/jmx.yaml +++ b/cfg-metadata/receiver/jmx.yaml @@ -37,8 +37,6 @@ fields: type: time.Duration kind: int64 default: 5s - doc: | - Timeout is the timeout for every attempt to send data to the backend. - name: headers type: map[string]string kind: map diff --git a/cfg-metadata/receiver/k8s_cluster.yaml b/cfg-metadata/receiver/k8s_cluster.yaml index a0827f9..ed0450c 100644 --- a/cfg-metadata/receiver/k8s_cluster.yaml +++ b/cfg-metadata/receiver/k8s_cluster.yaml @@ -38,4 +38,4 @@ fields: kind: string default: kubernetes doc: | - Whether OpenShift support should be enabled or not. + Whether OpenShift supprot should be enabled or not. diff --git a/cfg-metadata/receiver/k8sobjects.yaml b/cfg-metadata/receiver/k8sobjects.yaml index 9ae165e..31d607b 100644 --- a/cfg-metadata/receiver/k8sobjects.yaml +++ b/cfg-metadata/receiver/k8sobjects.yaml @@ -37,3 +37,6 @@ fields: - name: interval type: time.Duration kind: int64 + - name: resource_version + kind: string + default: "" diff --git a/cfg-metadata/receiver/kafka.yaml b/cfg-metadata/receiver/kafka.yaml index 8a2b193..e43900c 100644 --- a/cfg-metadata/receiver/kafka.yaml +++ b/cfg-metadata/receiver/kafka.yaml @@ -32,6 +32,12 @@ fields: default: otel-collector doc: | The consumer client ID that receiver will use (default "otel-collector") +- name: initial_offset + kind: string + default: latest + doc: | + The initial offset to use if no offset was previously committed. + Must be `latest` or `earliest` (default "latest"). - name: metadata type: kafkaexporter.Metadata kind: struct @@ -127,68 +133,46 @@ fields: - name: tls type: '*configtls.TLSClientSetting' kind: ptr - doc: | - TLSClientSetting contains TLS configurations that are specific to client - connections in addition to the common configurations. This should be used by - components configuring TLS client connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: kerberos type: '*kafkaexporter.KerberosConfig' kind: ptr diff --git a/cfg-metadata/receiver/kafkametrics.yaml b/cfg-metadata/receiver/kafkametrics.yaml index 367f83b..68c596d 100644 --- a/cfg-metadata/receiver/kafkametrics.yaml +++ b/cfg-metadata/receiver/kafkametrics.yaml @@ -6,6 +6,10 @@ fields: type: time.Duration kind: int64 default: 1m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: brokers type: '[]string' kind: slice @@ -85,68 +89,46 @@ fields: - name: tls type: '*configtls.TLSClientSetting' kind: ptr - doc: | - TLSClientSetting contains TLS configurations that are specific to client - connections in addition to the common configurations. This should be used by - components configuring TLS client connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: kerberos type: '*kafkaexporter.KerberosConfig' kind: ptr @@ -188,7 +170,7 @@ fields: type: metadata.MetricsConfig kind: struct doc: | - MetricsConfig provides config for kafkametricsreceiver metrics. + MetricsConfig provides config for kafkametrics metrics. fields: - name: kafka.brokers type: metadata.MetricConfig diff --git a/cfg-metadata/receiver/kubeletstats.yaml b/cfg-metadata/receiver/kubeletstats.yaml index 9bfa664..2b06f2f 100644 --- a/cfg-metadata/receiver/kubeletstats.yaml +++ b/cfg-metadata/receiver/kubeletstats.yaml @@ -6,6 +6,10 @@ fields: type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: auth_type type: k8sconfig.AuthType kind: string @@ -18,38 +22,33 @@ fields: - name: ca_file kind: string default: "" - doc: | - 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) +- name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) +- name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) +- name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure_skip_verify kind: bool default: false @@ -59,12 +58,6 @@ fields: - name: endpoint kind: string default: "" - doc: | - Endpoint configures the address for this network connection. - The address has the form "host:port". The host must be a literal IP address, or a host name that can be - resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: extra_metadata_labels type: '[]kubelet.MetadataLabel' kind: slice @@ -98,7 +91,7 @@ fields: type: metadata.MetricsConfig kind: struct doc: | - MetricsConfig provides config for kubeletstatsreceiver metrics. + MetricsConfig provides config for kubeletstats metrics. fields: - name: container.cpu.time type: metadata.MetricConfig @@ -482,7 +475,7 @@ fields: type: metadata.ResourceAttributesConfig kind: struct doc: | - ResourceAttributesConfig provides config for kubeletstatsreceiver resource attributes. + ResourceAttributesConfig provides config for kubeletstats resource attributes. fields: - name: aws.volume.id type: metadata.ResourceAttributeConfig diff --git a/cfg-metadata/receiver/loki.yaml b/cfg-metadata/receiver/loki.yaml new file mode 100644 index 0000000..673d6ab --- /dev/null +++ b/cfg-metadata/receiver/loki.yaml @@ -0,0 +1,190 @@ +type: '*lokireceiver.Config' +doc: | + Config defines configuration for the lokireceiver receiver. +fields: +- name: protocols + type: lokireceiver.Protocols + kind: struct + doc: | + Protocols is the configuration for the supported protocols, currently gRPC and HTTP (Proto and JSON). + fields: + - name: grpc + type: '*configgrpc.GRPCServerSettings' + kind: ptr + fields: + - name: endpoint + kind: string + default: 0.0.0.0:3600 + - name: transport + kind: string + default: tcp + - name: tls + type: '*configtls.TLSServerSetting' + kind: ptr + fields: + - name: ca_file + kind: string + default: "" + - name: ca_pem + type: configopaque.String + kind: string + default: "" + - name: cert_file + kind: string + default: "" + - name: cert_pem + type: configopaque.String + kind: string + default: "" + - name: key_file + kind: string + default: "" + - name: key_pem + type: configopaque.String + kind: string + default: "" + - name: min_version + kind: string + default: "" + - name: max_version + kind: string + default: "" + - name: reload_interval + type: time.Duration + kind: int64 + - name: client_ca_file + kind: string + default: "" + - name: client_ca_file_reload + kind: bool + default: false + - name: max_recv_msg_size_mib + kind: uint64 + default: 0 + - name: max_concurrent_streams + kind: uint32 + default: 0 + - name: read_buffer_size + kind: int + - name: write_buffer_size + kind: int + - name: keepalive + type: '*configgrpc.KeepaliveServerConfig' + kind: ptr + fields: + - name: server_parameters + type: '*configgrpc.KeepaliveServerParameters' + kind: ptr + fields: + - name: max_connection_idle + type: time.Duration + kind: int64 + - name: max_connection_age + type: time.Duration + kind: int64 + - name: max_connection_age_grace + type: time.Duration + kind: int64 + - name: time + type: time.Duration + kind: int64 + - name: timeout + type: time.Duration + kind: int64 + - name: enforcement_policy + type: '*configgrpc.KeepaliveEnforcementPolicy' + kind: ptr + fields: + - name: min_time + type: time.Duration + kind: int64 + - name: permit_without_stream + kind: bool + default: false + - name: auth + type: '*configauth.Authentication' + kind: ptr + fields: + - name: authenticator + type: component.ID + kind: struct + - name: include_metadata + kind: bool + default: false + - name: http + type: '*confighttp.HTTPServerSettings' + kind: ptr + fields: + - name: endpoint + kind: string + default: 0.0.0.0:3500 + - name: tls + type: '*configtls.TLSServerSetting' + kind: ptr + fields: + - name: ca_file + kind: string + default: "" + - name: ca_pem + type: configopaque.String + kind: string + default: "" + - name: cert_file + kind: string + default: "" + - name: cert_pem + type: configopaque.String + kind: string + default: "" + - name: key_file + kind: string + default: "" + - name: key_pem + type: configopaque.String + kind: string + default: "" + - name: min_version + kind: string + default: "" + - name: max_version + kind: string + default: "" + - name: reload_interval + type: time.Duration + kind: int64 + - name: client_ca_file + kind: string + default: "" + - name: client_ca_file_reload + kind: bool + default: false + - name: cors + type: '*confighttp.CORSSettings' + kind: ptr + fields: + - name: allowed_origins + type: '[]string' + kind: slice + - name: allowed_headers + type: '[]string' + kind: slice + - name: max_age + kind: int + - name: auth + type: '*configauth.Authentication' + kind: ptr + fields: + - name: authenticator + type: component.ID + kind: struct + - name: max_request_body_size + kind: int64 + - name: include_metadata + kind: bool + default: false + - name: response_headers + type: map[string]configopaque.String + kind: map +- name: use_incoming_timestamp + kind: bool + default: false diff --git a/cfg-metadata/receiver/memcached.yaml b/cfg-metadata/receiver/memcached.yaml index 84e95ae..a3a50f3 100644 --- a/cfg-metadata/receiver/memcached.yaml +++ b/cfg-metadata/receiver/memcached.yaml @@ -1,28 +1,21 @@ type: '*memcachedreceiver.Config' doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. + MetricsBuilderConfig is a configuration for memcached metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: localhost:11211 - doc: | - Endpoint configures the address for this network connection. - For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, - or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: transport kind: string default: "" - doc: | - Transport to use. Known protocols are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), - "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". - name: timeout type: time.Duration kind: int64 @@ -30,106 +23,106 @@ fields: doc: | Timeout for the memcache stats request - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - Metrics allows customizing scraped metrics representation. + MetricsConfig provides config for memcached metrics. fields: - name: memcached.bytes - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: memcached.commands - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: memcached.connections.current - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: memcached.connections.total - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: memcached.cpu.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: memcached.current_items - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: memcached.evictions - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: memcached.network - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: memcached.operation_hit_ratio - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: memcached.operations - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: memcached.threads - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/mongodb.yaml b/cfg-metadata/receiver/mongodb.yaml index 1d30458..77c339d 100644 --- a/cfg-metadata/receiver/mongodb.yaml +++ b/cfg-metadata/receiver/mongodb.yaml @@ -1,379 +1,364 @@ type: '*mongodbreceiver.Config' doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. + MetricsBuilderConfig is a configuration for mongodb metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 1m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSClientSetting contains TLS configurations that are specific to client - connections in addition to the common configurations. This should be used by - components configuring TLS client connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - Metrics defines which metrics to enable for the scraper + MetricsConfig provides config for mongodb metrics. fields: - name: mongodb.cache.operations - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.collection.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.connection.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.cursor.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.cursor.timeout.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.data.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.database.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.document.operation.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.extent.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.global_lock.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.health - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mongodb.index.access.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.index.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.index.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.lock.acquire.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mongodb.lock.acquire.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mongodb.lock.acquire.wait_count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mongodb.lock.deadlock.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mongodb.memory.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.network.io.receive - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.network.io.transmit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.network.request.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.object.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.operation.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.operation.latency.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mongodb.operation.repl.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mongodb.operation.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.session.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.storage.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mongodb.uptime - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for mongodb resource attributes. + fields: + - name: database + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true - name: hosts type: '[]confignet.NetAddr' kind: slice - doc: | - NetAddr represents a network endpoint address. fields: - name: endpoint kind: string default: "" - doc: | - Endpoint configures the address for this network connection. - For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, - or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: transport kind: string default: "" - doc: | - Transport to use. Known protocols are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), - "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". - name: username kind: string default: "" - name: password + type: configopaque.String kind: string default: "" - name: replica_set diff --git a/cfg-metadata/receiver/mongodbatlas.yaml b/cfg-metadata/receiver/mongodbatlas.yaml index cab3b47..637daff 100644 --- a/cfg-metadata/receiver/mongodbatlas.yaml +++ b/cfg-metadata/receiver/mongodbatlas.yaml @@ -1,15 +1,20 @@ type: '*mongodbatlasreceiver.Config' doc: | - MetricsBuilderConfig is a configuration for mongoatlasreceiver metrics builder. + MetricsBuilderConfig is a configuration for mongodbatlas metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 3m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: public_key kind: string default: "" - name: private_key + type: configopaque.String kind: string default: "" - name: granularity @@ -19,7 +24,7 @@ fields: type: metadata.MetricsConfig kind: struct doc: | - MetricsConfig provides config for mongoatlasreceiver metrics. + MetricsConfig provides config for mongodbatlas metrics. fields: - name: mongodbatlas.db.counts type: metadata.MetricConfig @@ -583,7 +588,7 @@ fields: type: metadata.ResourceAttributesConfig kind: struct doc: | - ResourceAttributesConfig provides config for mongoatlasreceiver resource attributes. + ResourceAttributesConfig provides config for mongodbatlas resource attributes. fields: - name: mongodb_atlas.cluster.name type: metadata.ResourceAttributeConfig @@ -695,64 +700,49 @@ fields: kind: string default: "" - name: secret + type: configopaque.String kind: string default: "" - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSServerSetting contains TLS configurations that are specific to server - connections in addition to the common configurations. This should be used by - components configuring TLS server connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: client_ca_file_reload kind: bool default: false - doc: | - Reload the ClientCAs file when it is modified - (optional, default false) - name: mode kind: string default: listen @@ -771,9 +761,6 @@ fields: - name: include_clusters type: '[]string' kind: slice - - name: collect_audit_logs - kind: bool - default: false - name: poll_interval type: time.Duration kind: int64 @@ -803,9 +790,6 @@ fields: - name: include_clusters type: '[]string' kind: slice - - name: collect_audit_logs - kind: bool - default: false - name: organizations type: '[]*mongodbatlasreceiver.OrgConfig' kind: slice @@ -831,7 +815,7 @@ fields: kind: bool default: false - name: projects - type: '[]*mongodbatlasreceiver.ProjectConfig' + type: '[]*mongodbatlasreceiver.LogsProjectConfig' kind: slice fields: - name: name @@ -846,6 +830,26 @@ fields: - name: collect_audit_logs kind: bool default: false + - name: collect_host_logs + type: '*bool' + kind: ptr + - name: access_logs + type: '*mongodbatlasreceiver.AccessLogsConfig' + kind: ptr + fields: + - name: enabled + type: '*bool' + kind: ptr + - name: poll_interval + type: time.Duration + kind: int64 + - name: page_size + kind: int64 + - name: max_pages + kind: int64 + - name: auth_result + type: '*bool' + kind: ptr - name: retry_on_failure type: exporterhelper.RetrySettings kind: struct diff --git a/cfg-metadata/receiver/mysql.yaml b/cfg-metadata/receiver/mysql.yaml index 1eae229..affef98 100644 --- a/cfg-metadata/receiver/mysql.yaml +++ b/cfg-metadata/receiver/mysql.yaml @@ -1,17 +1,20 @@ type: '*mysqlreceiver.Config' doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. + MetricsBuilderConfig is a configuration for mysql metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: username kind: string default: root - name: password + type: configopaque.String kind: string default: "" - name: database @@ -23,407 +26,422 @@ fields: - name: endpoint kind: string default: localhost:3306 - doc: | - Endpoint configures the address for this network connection. - For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, - or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: transport kind: string default: tcp - doc: | - Transport to use. Known protocols are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), - "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for mysqlreceiver metrics. + MetricsConfig provides config for mysql metrics. fields: - name: mysql.buffer_pool.data_pages - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.buffer_pool.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.buffer_pool.operations - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.buffer_pool.page_flushes - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.buffer_pool.pages - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.buffer_pool.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.client.network.io - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.commands - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.connection.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.connection.errors - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.double_writes - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.handlers - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.index.io.wait.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.index.io.wait.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.joins - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.locked_connects - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool - default: true + default: false - name: mysql.locks - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.log_operations - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.mysqlx_connections - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.mysqlx_worker_threads - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.opened_resources - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.operations - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.page_operations - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.prepared_statements - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.query.client.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.query.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.query.slow.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.replica.sql_delay - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.replica.time_behind_source - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.row_locks - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.row_operations - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.sorts - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.statement_event.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.statement_event.wait.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.table.io.wait.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.table.io.wait.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.table.lock_wait.read.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.table.lock_wait.read.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.table.lock_wait.write.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.table.lock_wait.write.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.table_open_cache - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: mysql.threads - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: mysql.tmp_resources - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: mysql.uptime + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for mysql resource attributes. + fields: + - name: mysql.instance.endpoint + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/nginx.yaml b/cfg-metadata/receiver/nginx.yaml index 77c579a..0d4dfcd 100644 --- a/cfg-metadata/receiver/nginx.yaml +++ b/cfg-metadata/receiver/nginx.yaml @@ -1,187 +1,145 @@ type: '*nginxreceiver.Config' doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. + MetricsBuilderConfig is a configuration for nginx metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: http://localhost:80/status - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 10s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for nginxreceiver metrics. + MetricsConfig provides config for nginx metrics. fields: - name: nginx.connections_accepted - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: nginx.connections_current - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: nginx.connections_handled - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: nginx.requests - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: temp.connections_current + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/nsxt.yaml b/cfg-metadata/receiver/nsxt.yaml index 6620f21..9a678c3 100644 --- a/cfg-metadata/receiver/nsxt.yaml +++ b/cfg-metadata/receiver/nsxt.yaml @@ -6,206 +6,199 @@ fields: type: time.Duration kind: int64 default: 1m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for nsxtreceiver metrics. + MetricsConfig provides config for nsxt metrics. fields: - name: nsxt.node.cpu.utilization - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: nsxt.node.filesystem.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: nsxt.node.filesystem.utilization - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: nsxt.node.memory.cache.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: nsxt.node.memory.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: nsxt.node.network.io - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: nsxt.node.network.packet.count - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for nsxt resource attributes. + fields: + - name: device.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: nsxt.node.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: nsxt.node.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: nsxt.node.type + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/opencensus.yaml b/cfg-metadata/receiver/opencensus.yaml index 4af43c5..04773a9 100644 --- a/cfg-metadata/receiver/opencensus.yaml +++ b/cfg-metadata/receiver/opencensus.yaml @@ -5,102 +5,67 @@ fields: - name: endpoint kind: string default: 0.0.0.0:55678 - doc: | - Endpoint configures the address for this network connection. - For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, - or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: transport kind: string default: tcp - doc: | - Transport to use. Known protocols are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), - "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - Configures the protocol to use TLS. - The default value is nil, which will cause the protocol to not use TLS. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) + - name: client_ca_file_reload + kind: bool + default: false - name: max_recv_msg_size_mib kind: uint64 default: 0 - doc: | - MaxRecvMsgSizeMiB sets the maximum size (in MiB) of messages accepted by the server. - name: max_concurrent_streams kind: uint32 default: 0 - doc: | - MaxConcurrentStreams sets the limit on the number of concurrent streams to each ServerTransport. - It has effect only for streaming RPCs. - name: read_buffer_size kind: int default: 524288 - doc: | - ReadBufferSize for gRPC server. See grpc.ReadBufferSize. - (https://godoc.org/google.golang.org/grpc#ReadBufferSize). - name: write_buffer_size kind: int - doc: | - WriteBufferSize for gRPC server. See grpc.WriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WriteBufferSize). - name: keepalive type: '*configgrpc.KeepaliveServerConfig' kind: ptr - doc: | - Keepalive anchor for all the settings related to keepalive. fields: - name: server_parameters type: '*configgrpc.KeepaliveServerParameters' kind: ptr - doc: | - KeepaliveServerParameters allow configuration of the keepalive.ServerParameters. - The same default values as keepalive.ServerParameters are applicable and get applied by the server. - See https://godoc.org/google.golang.org/grpc/keepalive#ServerParameters for details. fields: - name: max_connection_idle type: time.Duration @@ -120,10 +85,6 @@ fields: - name: enforcement_policy type: '*configgrpc.KeepaliveEnforcementPolicy' kind: ptr - doc: | - KeepaliveEnforcementPolicy allow configuration of the keepalive.EnforcementPolicy. - The same default values as keepalive.EnforcementPolicy are applicable and get applied by the server. - See https://godoc.org/google.golang.org/grpc/keepalive#EnforcementPolicy for details. fields: - name: min_time type: time.Duration @@ -134,20 +95,13 @@ fields: - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: include_metadata kind: bool default: false - doc: | - Include propagates the incoming connection's metadata to downstream consumers. - Experimental: *NOTE* this option is subject to change or removal in the future. - name: cors_allowed_origins type: '[]string' kind: slice diff --git a/cfg-metadata/receiver/oracledb.yaml b/cfg-metadata/receiver/oracledb.yaml index 63f830e..0717f5e 100644 --- a/cfg-metadata/receiver/oracledb.yaml +++ b/cfg-metadata/receiver/oracledb.yaml @@ -1,243 +1,290 @@ type: '*oracledbreceiver.Config' doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. + MetricsBuilderConfig is a configuration for oracledb metrics builder. fields: - name: datasource kind: string default: "" +- name: endpoint + kind: string + default: "" +- name: password + kind: string + default: "" +- name: service + kind: string + default: "" +- name: username + kind: string + default: "" - name: collection_interval type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for oracledbreceiver metrics. + MetricsConfig provides config for oracledb metrics. fields: + - name: oracledb.consistent_gets + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false - name: oracledb.cpu_time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true + - name: oracledb.db_block_gets + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false - name: oracledb.dml_locks.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.dml_locks.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.enqueue_deadlocks - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.enqueue_locks.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.enqueue_locks.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.enqueue_resources.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.enqueue_resources.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.exchange_deadlocks - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.executions - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.hard_parses - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.logical_reads - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.parse_calls - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.pga_memory - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.physical_reads - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.processes.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.processes.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.sessions.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.sessions.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.tablespace_size.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.tablespace_size.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.transactions.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.transactions.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.user_commits - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: oracledb.user_rollbacks - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for oracledb resource attributes. + fields: + - name: oracledb.instance.name + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/otlp.yaml b/cfg-metadata/receiver/otlp.yaml index 32be3d6..bf55441 100644 --- a/cfg-metadata/receiver/otlp.yaml +++ b/cfg-metadata/receiver/otlp.yaml @@ -7,114 +7,71 @@ fields: - name: grpc type: '*configgrpc.GRPCServerSettings' kind: ptr - doc: | - GRPCServerSettings defines common settings for a gRPC server configuration. fields: - name: endpoint kind: string default: 0.0.0.0:4317 - doc: | - Endpoint configures the address for this network connection. - For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, - or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: transport kind: string default: tcp - doc: | - Transport to use. Known protocols are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), - "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - Configures the protocol to use TLS. - The default value is nil, which will cause the protocol to not use TLS. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: client_ca_file_reload kind: bool default: false - doc: | - Reload the ClientCAs file when it is modified - (optional, default false) - name: max_recv_msg_size_mib kind: uint64 default: 0 - doc: | - MaxRecvMsgSizeMiB sets the maximum size (in MiB) of messages accepted by the server. - name: max_concurrent_streams kind: uint32 default: 0 - doc: | - MaxConcurrentStreams sets the limit on the number of concurrent streams to each ServerTransport. - It has effect only for streaming RPCs. - name: read_buffer_size kind: int default: 524288 - doc: | - ReadBufferSize for gRPC server. See grpc.ReadBufferSize. - (https://godoc.org/google.golang.org/grpc#ReadBufferSize). - name: write_buffer_size kind: int - doc: | - WriteBufferSize for gRPC server. See grpc.WriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WriteBufferSize). - name: keepalive type: '*configgrpc.KeepaliveServerConfig' kind: ptr - doc: | - Keepalive anchor for all the settings related to keepalive. fields: - name: server_parameters type: '*configgrpc.KeepaliveServerParameters' kind: ptr - doc: | - KeepaliveServerParameters allow configuration of the keepalive.ServerParameters. - The same default values as keepalive.ServerParameters are applicable and get applied by the server. - See https://godoc.org/google.golang.org/grpc/keepalive#ServerParameters for details. fields: - name: max_connection_idle type: time.Duration @@ -134,10 +91,6 @@ fields: - name: enforcement_policy type: '*configgrpc.KeepaliveEnforcementPolicy' kind: ptr - doc: | - KeepaliveEnforcementPolicy allow configuration of the keepalive.EnforcementPolicy. - The same default values as keepalive.EnforcementPolicy are applicable and get applied by the server. - See https://godoc.org/google.golang.org/grpc/keepalive#EnforcementPolicy for details. fields: - name: min_time type: time.Duration @@ -148,132 +101,84 @@ fields: - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: include_metadata kind: bool default: false - doc: | - Include propagates the incoming connection's metadata to downstream consumers. - Experimental: *NOTE* this option is subject to change or removal in the future. - name: http type: '*confighttp.HTTPServerSettings' kind: ptr - doc: | - HTTPServerSettings defines settings for creating an HTTP server. fields: - name: endpoint kind: string default: 0.0.0.0:4318 - doc: | - Endpoint configures the listening address for the server. - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: client_ca_file_reload kind: bool default: false - doc: | - Reload the ClientCAs file when it is modified - (optional, default false) - name: cors type: '*confighttp.CORSSettings' kind: ptr - doc: | - CORS configures the server for HTTP cross-origin resource sharing (CORS). fields: - name: allowed_origins type: '[]string' kind: slice - doc: | - AllowedOrigins sets the allowed values of the Origin header for - HTTP/JSON requests to an OTLP receiver. An origin may contain a - wildcard (*) to replace 0 or more characters (e.g., - "http://*.domain.com", or "*" to allow any origin). - name: allowed_headers type: '[]string' kind: slice - doc: | - AllowedHeaders sets what headers will be allowed in CORS requests. - The Accept, Accept-Language, Content-Type, and Content-Language - headers are implicitly allowed. If no headers are listed, - X-Requested-With will also be accepted by default. Include "*" to - allow any request header. - name: max_age kind: int - doc: | - MaxAge sets the value of the Access-Control-Max-Age response header. - Set it to the number of seconds that browsers should cache a CORS - preflight response for. - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: max_request_body_size kind: int64 - doc: | - MaxRequestBodySize sets the maximum request body size in bytes - name: include_metadata kind: bool default: false - doc: | - IncludeMetadata propagates the client metadata from the incoming requests to the downstream consumers - Experimental: *NOTE* this option is subject to change or removal in the future. + - name: response_headers + type: map[string]configopaque.String + kind: map diff --git a/cfg-metadata/receiver/otlpjsonfile.yaml b/cfg-metadata/receiver/otlpjsonfile.yaml index 11cf080..2566e81 100644 --- a/cfg-metadata/receiver/otlpjsonfile.yaml +++ b/cfg-metadata/receiver/otlpjsonfile.yaml @@ -8,6 +8,16 @@ fields: - name: exclude type: '[]string' kind: slice +- name: ordering_criteria + type: fileconsumer.OrderingCriteria + kind: struct + fields: + - name: regex + kind: string + default: "" + - name: sort_by + type: '[]fileconsumer.SortRuleImpl' + kind: slice - name: include_file_name kind: bool default: true @@ -38,6 +48,8 @@ fields: - name: max_concurrent_files kind: int default: 1024 +- name: max_batches + kind: int - name: delete_after_read kind: bool default: false @@ -60,6 +72,28 @@ fields: - name: line_end_pattern kind: string default: "" +- name: preserve_leading_whitespaces + kind: bool + default: false +- name: preserve_trailing_whitespaces + kind: bool + default: false +- name: header + type: '*fileconsumer.HeaderConfig' + kind: ptr + fields: + - name: pattern + kind: string + default: "" + - name: metadata_operators + type: '[]operator.Config' + kind: slice + doc: | + Config is the configuration of an operator + fields: + - name: builder + type: operator.Builder + kind: interface - name: storage type: '*component.ID' kind: ptr diff --git a/cfg-metadata/receiver/podman_stats.yaml b/cfg-metadata/receiver/podman_stats.yaml index 1301507..fb5aa27 100644 --- a/cfg-metadata/receiver/podman_stats.yaml +++ b/cfg-metadata/receiver/podman_stats.yaml @@ -1,13 +1,13 @@ type: '*podmanreceiver.Config' -doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. fields: - name: collection_interval type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: unix:///run/podman/podman.sock diff --git a/cfg-metadata/receiver/postgresql.yaml b/cfg-metadata/receiver/postgresql.yaml index 1e89f57..a96e061 100644 --- a/cfg-metadata/receiver/postgresql.yaml +++ b/cfg-metadata/receiver/postgresql.yaml @@ -1,11 +1,15 @@ type: '*postgresqlreceiver.Config' doc: | - NetAddr represents a network endpoint address. + MetricsBuilderConfig is a configuration for postgresql metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: username kind: string default: "" @@ -18,88 +22,57 @@ fields: - name: endpoint kind: string default: localhost:5432 - doc: | - Endpoint configures the address for this network connection. - For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, - or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: transport kind: string default: tcp - doc: | - Transport to use. Known protocols are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), - "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSClientSetting contains TLS configurations that are specific to client - connections in addition to the common configurations. This should be used by - components configuring TLS client connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: true - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: metrics type: metadata.MetricsConfig kind: struct doc: | - MetricsConfig provides config for postgresqlreceiver metrics. + MetricsConfig provides config for postgresql metrics. fields: - name: postgresql.backends type: metadata.MetricConfig @@ -303,7 +276,7 @@ fields: type: metadata.ResourceAttributesConfig kind: struct doc: | - ResourceAttributesConfig provides config for postgresqlreceiver resource attributes. + ResourceAttributesConfig provides config for postgresql resource attributes. fields: - name: postgresql.database.name type: metadata.ResourceAttributeConfig diff --git a/cfg-metadata/receiver/prometheus_simple.yaml b/cfg-metadata/receiver/prometheus_simple.yaml index 4da11a8..adbe285 100644 --- a/cfg-metadata/receiver/prometheus_simple.yaml +++ b/cfg-metadata/receiver/prometheus_simple.yaml @@ -5,138 +5,85 @@ fields: - name: endpoint kind: string default: localhost:9090 - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: true - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: collection_interval type: time.Duration kind: int64 diff --git a/cfg-metadata/receiver/pulsar.yaml b/cfg-metadata/receiver/pulsar.yaml index b5d1d46..444ffea 100644 --- a/cfg-metadata/receiver/pulsar.yaml +++ b/cfg-metadata/receiver/pulsar.yaml @@ -50,11 +50,11 @@ fields: - name: key_file kind: string default: "" - - name: Token + - name: token type: '*pulsarreceiver.Token' kind: ptr fields: - - name: Token + - name: token kind: string default: "" - name: athenz diff --git a/cfg-metadata/receiver/purefa.yaml b/cfg-metadata/receiver/purefa.yaml index f4e3958..5cf7105 100644 --- a/cfg-metadata/receiver/purefa.yaml +++ b/cfg-metadata/receiver/purefa.yaml @@ -5,138 +5,85 @@ fields: - name: endpoint kind: string default: "" - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: settings type: '*purefareceiver.Settings' kind: ptr @@ -151,7 +98,7 @@ fields: type: time.Duration kind: int64 default: 15s - - name: host + - name: hosts type: time.Duration kind: int64 default: 15s @@ -167,11 +114,11 @@ fields: type: time.Duration kind: int64 default: 15s -- name: arrays +- name: array type: '[]internal.ScraperConfig' kind: slice doc: | - Arrays represents the list of arrays to query + Array represents the list of arrays to query fields: - name: address kind: string @@ -179,14 +126,10 @@ fields: - name: auth type: configauth.Authentication kind: struct - doc: | - Authentication defines the auth settings for the receiver. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: hosts type: '[]internal.ScraperConfig' kind: slice @@ -199,14 +142,10 @@ fields: - name: auth type: configauth.Authentication kind: struct - doc: | - Authentication defines the auth settings for the receiver. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: directories type: '[]internal.ScraperConfig' kind: slice @@ -219,14 +158,10 @@ fields: - name: auth type: configauth.Authentication kind: struct - doc: | - Authentication defines the auth settings for the receiver. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: pods type: '[]internal.ScraperConfig' kind: slice @@ -239,14 +174,10 @@ fields: - name: auth type: configauth.Authentication kind: struct - doc: | - Authentication defines the auth settings for the receiver. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: volumes type: '[]internal.ScraperConfig' kind: slice @@ -259,14 +190,10 @@ fields: - name: auth type: configauth.Authentication kind: struct - doc: | - Authentication defines the auth settings for the receiver. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: env kind: string default: "" diff --git a/cfg-metadata/receiver/purefb.yaml b/cfg-metadata/receiver/purefb.yaml new file mode 100644 index 0000000..6489421 --- /dev/null +++ b/cfg-metadata/receiver/purefb.yaml @@ -0,0 +1,161 @@ +type: '*purefbreceiver.Config' +doc: | + Config relating to Array Metric Scraper. +fields: +- name: endpoint + kind: string + default: "" +- name: tls + type: configtls.TLSClientSetting + kind: struct + fields: + - name: ca_file + kind: string + default: "" + - name: ca_pem + type: configopaque.String + kind: string + default: "" + - name: cert_file + kind: string + default: "" + - name: cert_pem + type: configopaque.String + kind: string + default: "" + - name: key_file + kind: string + default: "" + - name: key_pem + type: configopaque.String + kind: string + default: "" + - name: min_version + kind: string + default: "" + - name: max_version + kind: string + default: "" + - name: reload_interval + type: time.Duration + kind: int64 + - name: insecure + kind: bool + default: false + - name: insecure_skip_verify + kind: bool + default: false + - name: server_name_override + kind: string + default: "" +- name: read_buffer_size + kind: int +- name: write_buffer_size + kind: int +- name: timeout + type: time.Duration + kind: int64 +- name: headers + type: map[string]configopaque.String + kind: map +- name: customroundtripper + type: func(http.RoundTripper) (http.RoundTripper, error) + kind: func +- name: auth + type: '*configauth.Authentication' + kind: ptr + fields: + - name: authenticator + type: component.ID + kind: struct +- name: compression + type: configcompression.CompressionType + kind: string + default: "" +- name: max_idle_conns + type: '*int' + kind: ptr +- name: max_idle_conns_per_host + type: '*int' + kind: ptr +- name: max_conns_per_host + type: '*int' + kind: ptr +- name: idle_conn_timeout + type: '*time.Duration' + kind: ptr +- name: settings + type: '*purefbreceiver.Settings' + kind: ptr + doc: | + Settings contains settings for the individual scrapers + fields: + - name: reload_intervals + type: '*purefbreceiver.ReloadIntervals' + kind: ptr + fields: + - name: array + type: time.Duration + kind: int64 + default: 15s + - name: clients + type: time.Duration + kind: int64 + default: 5m0s + - name: usage + type: time.Duration + kind: int64 + default: 5m0s +- name: arrays + type: '[]internal.ScraperConfig' + kind: slice + doc: | + Arrays represents the list of arrays to query + fields: + - name: address + kind: string + default: "" + - name: auth + type: configauth.Authentication + kind: struct + fields: + - name: authenticator + type: component.ID + kind: struct +- name: clients + type: '[]internal.ScraperConfig' + kind: slice + doc: | + Clients represents the list of clients metrics + fields: + - name: address + kind: string + default: "" + - name: auth + type: configauth.Authentication + kind: struct + fields: + - name: authenticator + type: component.ID + kind: struct +- name: usage + type: '[]internal.ScraperConfig' + kind: slice + doc: | + Usage represents the list of usage to query + fields: + - name: address + kind: string + default: "" + - name: auth + type: configauth.Authentication + kind: struct + fields: + - name: authenticator + type: component.ID + kind: struct +- name: env + kind: string + default: "" + doc: | + Env represents the respective environment value valid to scrape diff --git a/cfg-metadata/receiver/rabbitmq.yaml b/cfg-metadata/receiver/rabbitmq.yaml index 00db31e..2ca5914 100644 --- a/cfg-metadata/receiver/rabbitmq.yaml +++ b/cfg-metadata/receiver/rabbitmq.yaml @@ -6,142 +6,93 @@ fields: type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: http://localhost:15672 - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 10s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: username kind: string default: "" @@ -149,61 +100,94 @@ fields: kind: string default: "" - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for rabbitmqreceiver metrics. + MetricsConfig provides config for rabbitmq metrics. fields: - name: rabbitmq.consumer.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: rabbitmq.message.acknowledged - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: rabbitmq.message.current - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: rabbitmq.message.delivered - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: rabbitmq.message.dropped - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: rabbitmq.message.published - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for rabbitmq resource attributes. + fields: + - name: rabbitmq.node.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: rabbitmq.queue.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: rabbitmq.vhost.name + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/redis.yaml b/cfg-metadata/receiver/redis.yaml index 3f19420..d05f6a2 100644 --- a/cfg-metadata/receiver/redis.yaml +++ b/cfg-metadata/receiver/redis.yaml @@ -1,26 +1,21 @@ type: '*redisreceiver.Config' doc: | - NetAddr represents a network endpoint address. + MetricsBuilderConfig is a configuration for redis metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: "" - doc: | - Endpoint configures the address for this network connection. - For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, - or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: transport kind: string default: tcp - doc: | - Transport to use. Known protocols are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), - "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". - name: password kind: string default: "" @@ -30,382 +25,360 @@ fields: - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSClientSetting contains TLS configurations that are specific to client - connections in addition to the common configurations. This should be used by - components configuring TLS client connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: true - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for redisreceiver metrics. + MetricsConfig provides config for redis metrics. fields: - name: redis.clients.blocked - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.clients.connected - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.clients.max_input_buffer - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.clients.max_output_buffer - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.cmd.calls - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: redis.cmd.usec - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: redis.commands - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.commands.processed - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.connections.received - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.connections.rejected - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.cpu.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.db.avg_ttl - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.db.expires - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.db.keys - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.keys.evicted - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.keys.expired - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.keyspace.hits - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.keyspace.misses - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.latest_fork - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.maxmemory - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: redis.memory.fragmentation_ratio - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.memory.lua - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.memory.peak - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.memory.rss - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.memory.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.net.input - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.net.output - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.rdb.changes_since_last_save - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.replication.backlog_first_byte_offset - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.replication.offset - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.role - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: false - name: redis.slaves.connected - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: redis.uptime - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: resource_attributes - type: metadata.ResourceAttributesSettings + type: metadata.ResourceAttributesConfig kind: struct doc: | - ResourceAttributesSettings provides settings for redisreceiver metrics. + ResourceAttributesConfig provides config for redis resource attributes. fields: - name: redis.version - type: metadata.ResourceAttributeSettings + type: metadata.ResourceAttributeConfig kind: struct doc: | - ResourceAttributeSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/riak.yaml b/cfg-metadata/receiver/riak.yaml index 13bde64..3a72e42 100644 --- a/cfg-metadata/receiver/riak.yaml +++ b/cfg-metadata/receiver/riak.yaml @@ -6,142 +6,93 @@ fields: type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: http://localhost:8098 - doc: | - The target URL to send data to (e.g.: http://some.url:9411/v1/traces). - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: read_buffer_size kind: int - doc: | - ReadBufferSize for HTTP client. See http.Transport.ReadBufferSize. - name: write_buffer_size kind: int - doc: | - WriteBufferSize for HTTP client. See http.Transport.WriteBufferSize. - name: timeout type: time.Duration kind: int64 default: 10s - doc: | - Timeout parameter configures `http.Client.Timeout`. - name: headers type: map[string]configopaque.String kind: map - doc: | - Additional headers attached to each HTTP request sent by the client. - Existing header values are overwritten if collision happens. - Header values are opaque since they may be sensitive. - name: customroundtripper type: func(http.RoundTripper) (http.RoundTripper, error) kind: func - doc: | - Custom Round Tripper to allow for individual components to intercept HTTP requests - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth configuration for outgoing HTTP calls. fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: compression type: configcompression.CompressionType kind: string default: "" - doc: | - The compression key for supported compression types within collector. - name: max_idle_conns type: '*int' kind: ptr - doc: | - MaxIdleConns is used to set a limit to the maximum idle HTTP connections the client can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_idle_conns_per_host type: '*int' kind: ptr - doc: | - MaxIdleConnsPerHost is used to set a limit to the maximum idle HTTP connections the host can keep open. - There's an already set value, and we want to override it only if an explicit value provided - name: max_conns_per_host type: '*int' kind: ptr - doc: | - MaxConnsPerHost limits the total number of connections per host, including connections in the dialing, - active, and idle states. - There's an already set value, and we want to override it only if an explicit value provided - name: idle_conn_timeout type: '*time.Duration' kind: ptr - doc: | - IdleConnTimeout is the maximum amount of time a connection will remain open before closing itself. - There's an already set value, and we want to override it only if an explicit value provided - name: username kind: string default: "" @@ -149,62 +100,83 @@ fields: kind: string default: "" - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsBuilderConfig kind: struct doc: | - MetricsSettings provides settings for riakreceiver metrics. + MetricsBuilderConfig is a configuration for riak metrics builder. fields: - - name: riak.memory.limit - type: metadata.MetricSettings - kind: struct - doc: | - MetricSettings provides common settings for a particular metric. - fields: - - name: enabled - kind: bool - default: true - - name: riak.node.operation.count - type: metadata.MetricSettings - kind: struct - doc: | - MetricSettings provides common settings for a particular metric. - fields: - - name: enabled - kind: bool - default: true - - name: riak.node.operation.time.mean - type: metadata.MetricSettings - kind: struct - doc: | - MetricSettings provides common settings for a particular metric. - fields: - - name: enabled - kind: bool - default: true - - name: riak.node.read_repair.count - type: metadata.MetricSettings - kind: struct - doc: | - MetricSettings provides common settings for a particular metric. - fields: - - name: enabled - kind: bool - default: true - - name: riak.vnode.index.operation.count - type: metadata.MetricSettings + - name: metrics + type: metadata.MetricsConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricsConfig provides config for riak metrics. fields: - - name: enabled - kind: bool - default: true - - name: riak.vnode.operation.count - type: metadata.MetricSettings + - name: riak.memory.limit + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: riak.node.operation.count + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: riak.node.operation.time.mean + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: riak.node.read_repair.count + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: riak.vnode.index.operation.count + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: riak.vnode.operation.count + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: resource_attributes + type: metadata.ResourceAttributesConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributesConfig provides config for riak resource attributes. fields: - - name: enabled - kind: bool - default: true + - name: riak.node.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true diff --git a/cfg-metadata/receiver/saphana.yaml b/cfg-metadata/receiver/saphana.yaml index 27722b1..c1bd806 100644 --- a/cfg-metadata/receiver/saphana.yaml +++ b/cfg-metadata/receiver/saphana.yaml @@ -1,494 +1,492 @@ type: '*saphanareceiver.Config' doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. + MetricsBuilderConfig is a configuration for saphana metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: localhost:33015 - doc: | - Endpoint configures the address for this network connection. - The address has the form "host:port". The host must be a literal IP address, or a host name that can be - resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSClientSetting contains TLS configurations that are specific to client - connections in addition to the common configurations. This should be used by - components configuring TLS client connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: true - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - Metrics defines which metrics to enable for the scraper + MetricsConfig provides config for saphana metrics. fields: - name: saphana.alert.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.backup.latest - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.column.memory.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.component.memory.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.connection.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.cpu.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.disk.size.current - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.host.memory.current - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.host.swap.current - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.instance.code_size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.instance.memory.current - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.instance.memory.shared.allocated - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.instance.memory.used.peak - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.license.expiration.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.license.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.license.peak - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.network.request.average_time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.network.request.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.network.request.finished.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.replication.average_time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.replication.backlog.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.replication.backlog.time - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.row_store.memory.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.schema.memory.used.current - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.schema.memory.used.max - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.schema.operation.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.schema.record.compressed.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.schema.record.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.service.code_size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.service.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.service.memory.compactors.allocated - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.service.memory.compactors.freeable - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.service.memory.effective_limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.service.memory.heap.current - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.service.memory.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.service.memory.shared.current - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.service.memory.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.service.stack_size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.service.thread.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.transaction.blocked - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.transaction.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.uptime - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.volume.operation.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.volume.operation.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: saphana.volume.operation.time - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for saphana resource attributes. + fields: + - name: db.system + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: saphana.host + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/sapm.yaml b/cfg-metadata/receiver/sapm.yaml index 41ea126..634b99a 100644 --- a/cfg-metadata/receiver/sapm.yaml +++ b/cfg-metadata/receiver/sapm.yaml @@ -5,112 +5,73 @@ fields: - name: endpoint kind: string default: :7276 - doc: | - Endpoint configures the listening address for the server. - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: client_ca_file_reload kind: bool default: false - doc: | - Reload the ClientCAs file when it is modified - (optional, default false) - name: cors type: '*confighttp.CORSSettings' kind: ptr - doc: | - CORS configures the server for HTTP cross-origin resource sharing (CORS). fields: - name: allowed_origins type: '[]string' kind: slice - doc: | - AllowedOrigins sets the allowed values of the Origin header for - HTTP/JSON requests to an OTLP receiver. An origin may contain a - wildcard (*) to replace 0 or more characters (e.g., - "http://*.domain.com", or "*" to allow any origin). - name: allowed_headers type: '[]string' kind: slice - doc: | - AllowedHeaders sets what headers will be allowed in CORS requests. - The Accept, Accept-Language, Content-Type, and Content-Language - headers are implicitly allowed. If no headers are listed, - X-Requested-With will also be accepted by default. Include "*" to - allow any request header. - name: max_age kind: int - doc: | - MaxAge sets the value of the Access-Control-Max-Age response header. - Set it to the number of seconds that browsers should cache a CORS - preflight response for. - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: max_request_body_size kind: int64 - doc: | - MaxRequestBodySize sets the maximum request body size in bytes - name: include_metadata kind: bool default: false - doc: | - IncludeMetadata propagates the client metadata from the incoming requests to the downstream consumers - Experimental: *NOTE* this option is subject to change or removal in the future. +- name: response_headers + type: map[string]configopaque.String + kind: map - name: access_token_passthrough kind: bool default: false diff --git a/cfg-metadata/receiver/signalfx.yaml b/cfg-metadata/receiver/signalfx.yaml index 54306b3..6d893ed 100644 --- a/cfg-metadata/receiver/signalfx.yaml +++ b/cfg-metadata/receiver/signalfx.yaml @@ -5,112 +5,73 @@ fields: - name: endpoint kind: string default: :9943 - doc: | - Endpoint configures the listening address for the server. - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: client_ca_file_reload kind: bool default: false - doc: | - Reload the ClientCAs file when it is modified - (optional, default false) - name: cors type: '*confighttp.CORSSettings' kind: ptr - doc: | - CORS configures the server for HTTP cross-origin resource sharing (CORS). fields: - name: allowed_origins type: '[]string' kind: slice - doc: | - AllowedOrigins sets the allowed values of the Origin header for - HTTP/JSON requests to an OTLP receiver. An origin may contain a - wildcard (*) to replace 0 or more characters (e.g., - "http://*.domain.com", or "*" to allow any origin). - name: allowed_headers type: '[]string' kind: slice - doc: | - AllowedHeaders sets what headers will be allowed in CORS requests. - The Accept, Accept-Language, Content-Type, and Content-Language - headers are implicitly allowed. If no headers are listed, - X-Requested-With will also be accepted by default. Include "*" to - allow any request header. - name: max_age kind: int - doc: | - MaxAge sets the value of the Access-Control-Max-Age response header. - Set it to the number of seconds that browsers should cache a CORS - preflight response for. - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: max_request_body_size kind: int64 - doc: | - MaxRequestBodySize sets the maximum request body size in bytes - name: include_metadata kind: bool default: false - doc: | - IncludeMetadata propagates the client metadata from the incoming requests to the downstream consumers - Experimental: *NOTE* this option is subject to change or removal in the future. +- name: response_headers + type: map[string]configopaque.String + kind: map - name: access_token_passthrough kind: bool default: false diff --git a/cfg-metadata/receiver/skywalking.yaml b/cfg-metadata/receiver/skywalking.yaml index 2d86706..ac9ccfa 100644 --- a/cfg-metadata/receiver/skywalking.yaml +++ b/cfg-metadata/receiver/skywalking.yaml @@ -11,107 +11,70 @@ fields: - name: grpc type: '*configgrpc.GRPCServerSettings' kind: ptr - doc: | - GRPCServerSettings defines common settings for a gRPC server configuration. fields: - name: endpoint kind: string default: 0.0.0.0:11800 - doc: | - Endpoint configures the address for this network connection. - For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, - or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: transport kind: string default: tcp - doc: | - Transport to use. Known protocols are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), - "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - Configures the protocol to use TLS. - The default value is nil, which will cause the protocol to not use TLS. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) + - name: client_ca_file_reload + kind: bool + default: false - name: max_recv_msg_size_mib kind: uint64 default: 0 - doc: | - MaxRecvMsgSizeMiB sets the maximum size (in MiB) of messages accepted by the server. - name: max_concurrent_streams kind: uint32 default: 0 - doc: | - MaxConcurrentStreams sets the limit on the number of concurrent streams to each ServerTransport. - It has effect only for streaming RPCs. - name: read_buffer_size kind: int - doc: | - ReadBufferSize for gRPC server. See grpc.ReadBufferSize. - (https://godoc.org/google.golang.org/grpc#ReadBufferSize). - name: write_buffer_size kind: int - doc: | - WriteBufferSize for gRPC server. See grpc.WriteBufferSize. - (https://godoc.org/google.golang.org/grpc#WriteBufferSize). - name: keepalive type: '*configgrpc.KeepaliveServerConfig' kind: ptr - doc: | - Keepalive anchor for all the settings related to keepalive. fields: - name: server_parameters type: '*configgrpc.KeepaliveServerParameters' kind: ptr - doc: | - KeepaliveServerParameters allow configuration of the keepalive.ServerParameters. - The same default values as keepalive.ServerParameters are applicable and get applied by the server. - See https://godoc.org/google.golang.org/grpc/keepalive#ServerParameters for details. fields: - name: max_connection_idle type: time.Duration @@ -131,10 +94,6 @@ fields: - name: enforcement_policy type: '*configgrpc.KeepaliveEnforcementPolicy' kind: ptr - doc: | - KeepaliveEnforcementPolicy allow configuration of the keepalive.EnforcementPolicy. - The same default values as keepalive.EnforcementPolicy are applicable and get applied by the server. - See https://godoc.org/google.golang.org/grpc/keepalive#EnforcementPolicy for details. fields: - name: min_time type: time.Duration @@ -145,126 +104,84 @@ fields: - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: include_metadata kind: bool default: false - doc: | - Include propagates the incoming connection's metadata to downstream consumers. - Experimental: *NOTE* this option is subject to change or removal in the future. - name: http type: '*confighttp.HTTPServerSettings' kind: ptr - doc: | - HTTPServerSettings defines settings for creating an HTTP server. fields: - name: endpoint kind: string default: 0.0.0.0:12800 - doc: | - Endpoint configures the listening address for the server. - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) + - name: client_ca_file_reload + kind: bool + default: false - name: cors type: '*confighttp.CORSSettings' kind: ptr - doc: | - CORS configures the server for HTTP cross-origin resource sharing (CORS). fields: - name: allowed_origins type: '[]string' kind: slice - doc: | - AllowedOrigins sets the allowed values of the Origin header for - HTTP/JSON requests to an OTLP receiver. An origin may contain a - wildcard (*) to replace 0 or more characters (e.g., - "http://*.domain.com", or "*" to allow any origin). - name: allowed_headers type: '[]string' kind: slice - doc: | - AllowedHeaders sets what headers will be allowed in CORS requests. - The Accept, Accept-Language, Content-Type, and Content-Language - headers are implicitly allowed. If no headers are listed, - X-Requested-With will also be accepted by default. Include "*" to - allow any request header. - name: max_age kind: int - doc: | - MaxAge sets the value of the Access-Control-Max-Age response header. - Set it to the number of seconds that browsers should cache a CORS - preflight response for. - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: max_request_body_size kind: int64 - doc: | - MaxRequestBodySize sets the maximum request body size in bytes - name: include_metadata kind: bool default: false - doc: | - IncludeMetadata propagates the client metadata from the incoming requests to the downstream consumers - Experimental: *NOTE* this option is subject to change or removal in the future. + - name: response_headers + type: map[string]configopaque.String + kind: map diff --git a/cfg-metadata/receiver/snmp.yaml b/cfg-metadata/receiver/snmp.yaml index 8f47f21..bb1ad9e 100644 --- a/cfg-metadata/receiver/snmp.yaml +++ b/cfg-metadata/receiver/snmp.yaml @@ -6,6 +6,9 @@ fields: type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 - name: endpoint kind: string default: udp://localhost:161 diff --git a/cfg-metadata/receiver/snowflake.yaml b/cfg-metadata/receiver/snowflake.yaml new file mode 100644 index 0000000..a856a77 --- /dev/null +++ b/cfg-metadata/receiver/snowflake.yaml @@ -0,0 +1,369 @@ +type: '*snowflakereceiver.Config' +doc: | + MetricsBuilderConfig is a configuration for snowflake metrics builder. +fields: +- name: collection_interval + type: time.Duration + kind: int64 + default: 30m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s +- name: metrics + type: metadata.MetricsConfig + kind: struct + doc: | + MetricsConfig provides config for snowflake metrics. + fields: + - name: snowflake.billing.cloud_service.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.billing.total_credit.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.billing.virtual_warehouse.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.billing.warehouse.cloud_service.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.billing.warehouse.total_credit.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.billing.warehouse.virtual_warehouse.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.database.bytes_scanned.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.database.query.count + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.logins.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.pipe.credits_used.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.query.blocked + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.query.bytes_deleted.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.query.bytes_spilled.local.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.query.bytes_spilled.remote.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.query.bytes_written.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.query.compilation_time.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.query.data_scanned_cache.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.query.executed + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.query.execution_time.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.query.partitions_scanned.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.query.queued_overload + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.query.queued_provision + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.queued_overload_time.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.queued_provisioning_time.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.queued_repair_time.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.rows_deleted.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.rows_inserted.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.rows_produced.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.rows_unloaded.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.rows_updated.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.session_id.count + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.storage.failsafe_bytes.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: snowflake.storage.stage_bytes.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.storage.storage_bytes.total + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: snowflake.total_elapsed_time.avg + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for snowflake resource attributes. + fields: + - name: snowflake.account.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true +- name: username + kind: string + default: "" +- name: password + kind: string + default: "" +- name: account + kind: string + default: "" +- name: schema + kind: string + default: ACCOUNT_USAGE +- name: warehouse + kind: string + default: "" +- name: database + kind: string + default: SNOWFLAKE +- name: role + kind: string + default: ACCOUNTADMIN diff --git a/cfg-metadata/receiver/solace.yaml b/cfg-metadata/receiver/solace.yaml index 38de74c..6a7e75b 100644 --- a/cfg-metadata/receiver/solace.yaml +++ b/cfg-metadata/receiver/solace.yaml @@ -13,75 +13,53 @@ fields: doc: | The name of the solace queue to consume from, it is required parameter - name: max_unacknowledged - kind: uint32 + kind: int32 default: 1000 doc: | The maximum number of unacknowledged messages the Solace broker can transmit, to configure AMQP Link - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSClientSetting contains TLS configurations that are specific to client - connections in addition to the common configurations. This should be used by - components configuring TLS client connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: auth type: solacereceiver.Authentication kind: struct diff --git a/cfg-metadata/receiver/splunk_hec.yaml b/cfg-metadata/receiver/splunk_hec.yaml index 1e79f67..03806d4 100644 --- a/cfg-metadata/receiver/splunk_hec.yaml +++ b/cfg-metadata/receiver/splunk_hec.yaml @@ -5,112 +5,73 @@ fields: - name: endpoint kind: string default: :8088 - doc: | - Endpoint configures the listening address for the server. - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: client_ca_file_reload kind: bool default: false - doc: | - Reload the ClientCAs file when it is modified - (optional, default false) - name: cors type: '*confighttp.CORSSettings' kind: ptr - doc: | - CORS configures the server for HTTP cross-origin resource sharing (CORS). fields: - name: allowed_origins type: '[]string' kind: slice - doc: | - AllowedOrigins sets the allowed values of the Origin header for - HTTP/JSON requests to an OTLP receiver. An origin may contain a - wildcard (*) to replace 0 or more characters (e.g., - "http://*.domain.com", or "*" to allow any origin). - name: allowed_headers type: '[]string' kind: slice - doc: | - AllowedHeaders sets what headers will be allowed in CORS requests. - The Accept, Accept-Language, Content-Type, and Content-Language - headers are implicitly allowed. If no headers are listed, - X-Requested-With will also be accepted by default. Include "*" to - allow any request header. - name: max_age kind: int - doc: | - MaxAge sets the value of the Access-Control-Max-Age response header. - Set it to the number of seconds that browsers should cache a CORS - preflight response for. - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: max_request_body_size kind: int64 - doc: | - MaxRequestBodySize sets the maximum request body size in bytes - name: include_metadata kind: bool default: false - doc: | - IncludeMetadata propagates the client metadata from the incoming requests to the downstream consumers - Experimental: *NOTE* this option is subject to change or removal in the future. +- name: response_headers + type: map[string]configopaque.String + kind: map - name: access_token_passthrough kind: bool default: false @@ -121,6 +82,12 @@ fields: default: /services/collector/raw doc: | RawPath for raw data collection, default is '/services/collector/raw' +- name: splitting + type: splunkhecreceiver.SplittingStrategy + kind: string + default: line + doc: | + Splitting defines the splitting strategy used by the receiver when ingesting raw events. Can be set to "line" or "none". Default is "line". - name: health_path kind: string default: /services/collector/health diff --git a/cfg-metadata/receiver/sqlquery.yaml b/cfg-metadata/receiver/sqlquery.yaml index 79fe28e..43d4a31 100644 --- a/cfg-metadata/receiver/sqlquery.yaml +++ b/cfg-metadata/receiver/sqlquery.yaml @@ -4,6 +4,10 @@ fields: type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: driver kind: string default: "" @@ -54,3 +58,25 @@ fields: - name: static_attributes type: map[string]string kind: map + - name: start_ts_column + kind: string + default: "" + - name: ts_column + kind: string + default: "" + - name: logs + type: '[]sqlqueryreceiver.LogsCfg' + kind: slice + fields: + - name: body_column + kind: string + default: "" + - name: tracking_column + kind: string + default: "" + - name: tracking_start_value + kind: string + default: "" +- name: storage + type: '*component.ID' + kind: ptr diff --git a/cfg-metadata/receiver/sqlserver.yaml b/cfg-metadata/receiver/sqlserver.yaml index 3a05c39..c823fa5 100644 --- a/cfg-metadata/receiver/sqlserver.yaml +++ b/cfg-metadata/receiver/sqlserver.yaml @@ -6,189 +6,232 @@ fields: type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for sqlserverreceiver metrics. + MetricsConfig provides config for sqlserver metrics. fields: - name: sqlserver.batch.request.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.batch.sql_compilation.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.batch.sql_recompilation.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.lock.wait.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.lock.wait_time.avg - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.page.buffer_cache.hit_ratio - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.page.checkpoint.flush.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.page.lazy_write.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.page.life_expectancy - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.page.operation.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.page.split.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.transaction.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.transaction.write.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.transaction_log.flush.data.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.transaction_log.flush.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.transaction_log.flush.wait.rate - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.transaction_log.growth.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.transaction_log.shrink.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.transaction_log.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: sqlserver.user.connection.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for sqlserver resource attributes. + fields: + - name: sqlserver.computer.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: false + - name: sqlserver.database.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: sqlserver.instance.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: false +- name: instance_name + kind: string + default: "" +- name: computer_name + kind: string + default: "" diff --git a/cfg-metadata/receiver/sshcheck.yaml b/cfg-metadata/receiver/sshcheck.yaml new file mode 100644 index 0000000..fa73a56 --- /dev/null +++ b/cfg-metadata/receiver/sshcheck.yaml @@ -0,0 +1,120 @@ +type: '*sshcheckreceiver.Config' +doc: | + MetricsBuilderConfig is a configuration for sshcheck metrics builder. +fields: +- name: collection_interval + type: time.Duration + kind: int64 + default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s +- name: endpoint + kind: string + default: "" + doc: | + Endpoint is always required +- name: timeout + type: time.Duration + kind: int64 + default: 10s +- name: username + kind: string + default: "" + doc: | + authentication requires a Username and either a Password or KeyFile +- name: password + kind: string + default: "" +- name: key_file + kind: string + default: "" +- name: known_hosts + kind: string + default: "" + doc: | + file path to the known_hosts +- name: ignore_host_key + kind: bool + default: false + doc: | + IgnoreHostKey provides an insecure path to quickstarts and testing +- name: check_sftp + kind: bool + default: false +- name: metrics + type: metadata.MetricsConfig + kind: struct + doc: | + MetricsConfig provides config for sshcheck metrics. + fields: + - name: sshcheck.duration + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: sshcheck.error + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: sshcheck.sftp_duration + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: sshcheck.sftp_error + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: sshcheck.sftp_status + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false + - name: sshcheck.status + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for sshcheck resource attributes. + fields: + - name: ssh.endpoint + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: false diff --git a/cfg-metadata/receiver/statsd.yaml b/cfg-metadata/receiver/statsd.yaml index 9d4d212..e168d21 100644 --- a/cfg-metadata/receiver/statsd.yaml +++ b/cfg-metadata/receiver/statsd.yaml @@ -5,18 +5,9 @@ fields: - name: endpoint kind: string default: localhost:8125 - doc: | - Endpoint configures the address for this network connection. - For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, - or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: transport kind: string default: udp - doc: | - Transport to use. Known protocols are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), - "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". - name: aggregation_interval type: time.Duration kind: int64 diff --git a/cfg-metadata/receiver/syslog.yaml b/cfg-metadata/receiver/syslog.yaml index e237050..8a7704d 100644 --- a/cfg-metadata/receiver/syslog.yaml +++ b/cfg-metadata/receiver/syslog.yaml @@ -44,59 +44,43 @@ fields: - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSServerSetting contains TLS configurations that are specific to server - connections in addition to the common configurations. This should be used by - components configuring TLS server connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: client_ca_file_reload kind: bool default: false - doc: | - Reload the ClientCAs file when it is modified - (optional, default false) - name: add_attributes kind: bool default: false @@ -121,6 +105,9 @@ fields: - name: preserve_trailing_whitespaces kind: bool default: false + - name: multilinebuilder + type: tcp.MultiLineBuilderFunc + kind: func - name: udp type: '*udp.BaseConfig' kind: ptr diff --git a/cfg-metadata/receiver/tcplog.yaml b/cfg-metadata/receiver/tcplog.yaml index 77c19bb..d926e44 100644 --- a/cfg-metadata/receiver/tcplog.yaml +++ b/cfg-metadata/receiver/tcplog.yaml @@ -26,59 +26,43 @@ fields: - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSServerSetting contains TLS configurations that are specific to server - connections in addition to the common configurations. This should be used by - components configuring TLS server connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: client_ca_file_reload kind: bool default: false - doc: | - Reload the ClientCAs file when it is modified - (optional, default false) - name: add_attributes kind: bool default: false @@ -103,6 +87,9 @@ fields: - name: preserve_trailing_whitespaces kind: bool default: false +- name: multilinebuilder + type: tcp.MultiLineBuilderFunc + kind: func - name: operators type: '[]operator.Config' kind: slice diff --git a/cfg-metadata/receiver/udplog.yaml b/cfg-metadata/receiver/udplog.yaml index e2e1894..eb78366 100644 --- a/cfg-metadata/receiver/udplog.yaml +++ b/cfg-metadata/receiver/udplog.yaml @@ -38,6 +38,12 @@ fields: - name: line_end_pattern kind: string default: .^ +- name: preserve_leading_whitespaces + kind: bool + default: false +- name: preserve_trailing_whitespaces + kind: bool + default: false - name: operators type: '[]operator.Config' kind: slice @@ -50,3 +56,34 @@ fields: - name: storage type: '*component.ID' kind: ptr +- name: retry_on_failure + type: consumerretry.Config + kind: struct + doc: | + Config defines configuration for retrying batches in case of receiving a retryable error from a downstream + consumer. If the retryable error doesn't provide a delay, exponential backoff is applied. + fields: + - name: enabled + kind: bool + default: false + doc: | + Enabled indicates whether to not retry sending logs in case of receiving a retryable error from a downstream + consumer. Default is false. + - name: initial_interval + type: time.Duration + kind: int64 + doc: | + InitialInterval the time to wait after the first failure before retrying. Default value is 1 second. + - name: max_interval + type: time.Duration + kind: int64 + doc: | + MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between + consecutive retries will always be `MaxInterval`. Default value is 30 seconds. + - name: max_elapsed_time + type: time.Duration + kind: int64 + doc: | + MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a logs batch to + a downstream consumer. Once this value is reached, the data is discarded. It never stops if MaxElapsedTime == 0. + Default value is 5 minutes. diff --git a/cfg-metadata/receiver/vcenter.yaml b/cfg-metadata/receiver/vcenter.yaml index 2924159..2189549 100644 --- a/cfg-metadata/receiver/vcenter.yaml +++ b/cfg-metadata/receiver/vcenter.yaml @@ -6,397 +6,466 @@ fields: type: time.Duration kind: int64 default: 2m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: tls type: configtls.TLSClientSetting kind: struct - doc: | - TLSClientSetting contains TLS configurations that are specific to client - connections in addition to the common configurations. This should be used by - components configuring TLS client connections. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: insecure kind: bool default: false - doc: | - 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) - name: insecure_skip_verify kind: bool default: false - doc: | - InsecureSkipVerify will enable TLS but not verify the certificate. - name: server_name_override kind: string default: "" - doc: | - ServerName requested by client for virtual hosting. - This sets the ServerName in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for vcenterreceiver metrics. + MetricsConfig provides config for vcenter metrics. fields: - name: vcenter.cluster.cpu.effective - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.cluster.cpu.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.cluster.host.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.cluster.memory.effective - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.cluster.memory.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.cluster.memory.used - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.cluster.vm.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.datastore.disk.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.datastore.disk.utilization - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.host.cpu.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.host.cpu.utilization - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.host.disk.latency.avg - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.host.disk.latency.max - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.host.disk.throughput - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.host.memory.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.host.memory.utilization - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.host.network.packet.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.host.network.packet.errors - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.host.network.throughput - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.host.network.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.resource_pool.cpu.shares - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.resource_pool.cpu.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.resource_pool.memory.shares - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.resource_pool.memory.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: vcenter.vm.cpu.usage + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: vcenter.vm.cpu.utilization + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.vm.disk.latency.avg - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.vm.disk.latency.max - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.vm.disk.throughput - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.vm.disk.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.vm.disk.utilization - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.vm.memory.ballooned - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.vm.memory.swapped - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.vm.memory.swapped_ssd - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.vm.memory.usage - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true + - name: vcenter.vm.memory.utilization + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: false - name: vcenter.vm.network.packet.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.vm.network.throughput - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: vcenter.vm.network.usage - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for vcenter resource attributes. + fields: + - name: vcenter.cluster.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: vcenter.datastore.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: vcenter.host.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: vcenter.resource_pool.name + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: vcenter.vm.id + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: vcenter.vm.name + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool diff --git a/cfg-metadata/receiver/wavefront.yaml b/cfg-metadata/receiver/wavefront.yaml index 1692798..e66b55d 100644 --- a/cfg-metadata/receiver/wavefront.yaml +++ b/cfg-metadata/receiver/wavefront.yaml @@ -5,12 +5,6 @@ fields: - name: endpoint kind: string default: localhost:2003 - doc: | - Endpoint configures the address for this network connection. - The address has the form "host:port". The host must be a literal IP address, or a host name that can be - resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: tcp_idle_timeout type: time.Duration kind: int64 diff --git a/cfg-metadata/receiver/windowseventlog.yaml b/cfg-metadata/receiver/windowseventlog.yaml index 007051d..f3c5116 100644 --- a/cfg-metadata/receiver/windowseventlog.yaml +++ b/cfg-metadata/receiver/windowseventlog.yaml @@ -14,3 +14,34 @@ fields: - name: storage type: '*component.ID' kind: ptr +- name: retry_on_failure + type: consumerretry.Config + kind: struct + doc: | + Config defines configuration for retrying batches in case of receiving a retryable error from a downstream + consumer. If the retryable error doesn't provide a delay, exponential backoff is applied. + fields: + - name: enabled + kind: bool + default: false + doc: | + Enabled indicates whether to not retry sending logs in case of receiving a retryable error from a downstream + consumer. Default is false. + - name: initial_interval + type: time.Duration + kind: int64 + doc: | + InitialInterval the time to wait after the first failure before retrying. Default value is 1 second. + - name: max_interval + type: time.Duration + kind: int64 + doc: | + MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between + consecutive retries will always be `MaxInterval`. Default value is 30 seconds. + - name: max_elapsed_time + type: time.Duration + kind: int64 + doc: | + MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a logs batch to + a downstream consumer. Once this value is reached, the data is discarded. It never stops if MaxElapsedTime == 0. + Default value is 5 minutes. diff --git a/cfg-metadata/receiver/windowsperfcounters.yaml b/cfg-metadata/receiver/windowsperfcounters.yaml index b0fbda2..9bf3667 100644 --- a/cfg-metadata/receiver/windowsperfcounters.yaml +++ b/cfg-metadata/receiver/windowsperfcounters.yaml @@ -6,6 +6,10 @@ fields: type: time.Duration kind: int64 default: 1m0s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: metrics type: map[string]windowsperfcountersreceiver.MetricConfig kind: map diff --git a/cfg-metadata/receiver/zipkin.yaml b/cfg-metadata/receiver/zipkin.yaml index 0f6f95f..a818019 100644 --- a/cfg-metadata/receiver/zipkin.yaml +++ b/cfg-metadata/receiver/zipkin.yaml @@ -5,112 +5,73 @@ fields: - name: endpoint kind: string default: 0.0.0.0:9411 - doc: | - Endpoint configures the listening address for the server. - name: tls type: '*configtls.TLSServerSetting' kind: ptr - doc: | - TLSSetting struct exposes TLS client configuration. fields: - name: ca_file kind: string default: "" - doc: | - 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) + - name: ca_pem + type: configopaque.String + kind: string + default: "" - name: cert_file kind: string default: "" - doc: | - Path to the TLS cert to use for TLS required connections. (optional) + - name: cert_pem + type: configopaque.String + kind: string + default: "" - name: key_file kind: string default: "" - doc: | - Path to the TLS key to use for TLS required connections. (optional) + - name: key_pem + type: configopaque.String + kind: string + default: "" - name: min_version kind: string default: "" - doc: | - MinVersion sets the minimum TLS version that is acceptable. - If not set, TLS 1.2 will be used. (optional) - name: max_version kind: string default: "" - doc: | - MaxVersion sets the maximum TLS version that is acceptable. - If not set, refer to crypto/tls for defaults. (optional) - name: reload_interval type: time.Duration kind: int64 - doc: | - ReloadInterval specifies the duration after which the certificate will be reloaded - If not set, it will never be reloaded (optional) - name: client_ca_file kind: string default: "" - doc: | - Path to the TLS cert to use by the server to verify a client certificate. (optional) - This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to - https://godoc.org/crypto/tls#Config for more information. (optional) - name: client_ca_file_reload kind: bool default: false - doc: | - Reload the ClientCAs file when it is modified - (optional, default false) - name: cors type: '*confighttp.CORSSettings' kind: ptr - doc: | - CORS configures the server for HTTP cross-origin resource sharing (CORS). fields: - name: allowed_origins type: '[]string' kind: slice - doc: | - AllowedOrigins sets the allowed values of the Origin header for - HTTP/JSON requests to an OTLP receiver. An origin may contain a - wildcard (*) to replace 0 or more characters (e.g., - "http://*.domain.com", or "*" to allow any origin). - name: allowed_headers type: '[]string' kind: slice - doc: | - AllowedHeaders sets what headers will be allowed in CORS requests. - The Accept, Accept-Language, Content-Type, and Content-Language - headers are implicitly allowed. If no headers are listed, - X-Requested-With will also be accepted by default. Include "*" to - allow any request header. - name: max_age kind: int - doc: | - MaxAge sets the value of the Access-Control-Max-Age response header. - Set it to the number of seconds that browsers should cache a CORS - preflight response for. - name: auth type: '*configauth.Authentication' kind: ptr - doc: | - Auth for this receiver fields: - name: authenticator type: component.ID kind: struct - doc: | - AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. - name: max_request_body_size kind: int64 - doc: | - MaxRequestBodySize sets the maximum request body size in bytes - name: include_metadata kind: bool default: false - doc: | - IncludeMetadata propagates the client metadata from the incoming requests to the downstream consumers - Experimental: *NOTE* this option is subject to change or removal in the future. +- name: response_headers + type: map[string]configopaque.String + kind: map - name: parse_string_tags kind: bool default: false diff --git a/cfg-metadata/receiver/zookeeper.yaml b/cfg-metadata/receiver/zookeeper.yaml index ef1cf48..e411ba0 100644 --- a/cfg-metadata/receiver/zookeeper.yaml +++ b/cfg-metadata/receiver/zookeeper.yaml @@ -1,159 +1,188 @@ type: '*zookeeperreceiver.Config' doc: | - ScraperControllerSettings defines common settings for a scraper controller - configuration. Scraper controller receivers can embed this struct, instead - of receiver.Settings, and extend it with more fields if needed. + MetricsBuilderConfig is a configuration for zookeeper metrics builder. fields: - name: collection_interval type: time.Duration kind: int64 default: 10s +- name: initial_delay + type: time.Duration + kind: int64 + default: 1s - name: endpoint kind: string default: :2181 - doc: | - Endpoint configures the address for this network connection. - The address has the form "host:port". The host must be a literal IP address, or a host name that can be - resolved to IP addresses. The port must be a literal port number or a service name. - If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or - "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. - name: metrics - type: metadata.MetricsSettings + type: metadata.MetricsConfig kind: struct doc: | - MetricsSettings provides settings for zookeeperreceiver metrics. + MetricsConfig provides config for zookeeper metrics. fields: - name: zookeeper.connection.active - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.data_tree.ephemeral_node.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.data_tree.size - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.file_descriptor.limit - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.file_descriptor.open - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.follower.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.fsync.exceeded_threshold.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.latency.avg - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.latency.max - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.latency.min - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.packet.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.request.active - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true + - name: zookeeper.ruok + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.sync.pending - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.watch.count - type: metadata.MetricSettings + type: metadata.MetricConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + MetricConfig provides common config for a particular metric. fields: - name: enabled kind: bool default: true - name: zookeeper.znode.count - type: metadata.MetricSettings + type: metadata.MetricConfig + kind: struct + doc: | + MetricConfig provides common config for a particular metric. + fields: + - name: enabled + kind: bool + default: true +- name: resource_attributes + type: metadata.ResourceAttributesConfig + kind: struct + doc: | + ResourceAttributesConfig provides config for zookeeper resource attributes. + fields: + - name: server.state + type: metadata.ResourceAttributeConfig + kind: struct + doc: | + ResourceAttributeConfig provides common config for a particular resource attribute. + fields: + - name: enabled + kind: bool + default: true + - name: zk.version + type: metadata.ResourceAttributeConfig kind: struct doc: | - MetricSettings provides common settings for a particular metric. + ResourceAttributeConfig provides common config for a particular resource attribute. fields: - name: enabled kind: bool