Skip to content

Commit

Permalink
updating metadata manually
Browse files Browse the repository at this point in the history
  • Loading branch information
Samiur Arif committed Sep 25, 2024
1 parent 7b45fdf commit dd4b8ca
Show file tree
Hide file tree
Showing 90 changed files with 7,414 additions and 1,686 deletions.
4 changes: 3 additions & 1 deletion c3/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/splunk/collector-config-tools/c3

go 1.23
go 1.22.0

toolchain go1.22.6

require (
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awss3exporter v0.108.0
Expand Down
54 changes: 54 additions & 0 deletions cfg-metadata/exporter/awss3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
type: '*awss3exporter.Config'
doc: |
Config contains the main configuration options for the s3 exporter
fields:
- name: s3uploader
type: awss3exporter.S3UploaderConfig
kind: struct
doc: |
S3UploaderConfig contains aws s3 uploader related config to controls things
like bucket, prefix, batching, connections, retries, etc.
fields:
- name: region
kind: string
default: us-east-1
- name: s3_bucket
kind: string
default: ""
- name: s3_prefix
kind: string
default: ""
- name: s3_partition
kind: string
default: minute
- name: file_prefix
kind: string
default: ""
- name: endpoint
kind: string
default: ""
- name: role_arn
kind: string
default: ""
- name: s3_force_path_style
kind: bool
default: false
- name: disable_ssl
kind: bool
default: false
- name: compression
type: configcompression.Type
kind: string
default: ""
- name: marshaler
type: awss3exporter.MarshalerType
kind: string
default: otlp_json
- name: encoding
type: '*component.ID'
kind: ptr
doc: |
Encoding to apply. If present, overrides the marshaler configuration option.
- name: encoding_file_extension
kind: string
default: ""
14 changes: 14 additions & 0 deletions cfg-metadata/exporter/debug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
type: '*debugexporter.Config'
fields:
- name: verbosity
type: configtelemetry.Level
kind: int32
- name: sampling_initial
kind: int
default: 2
- name: sampling_thereafter
kind: int
default: 1
- name: use_internal_logger
kind: bool
default: true
42 changes: 41 additions & 1 deletion cfg-metadata/exporter/file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,20 @@ fields:
default: ""
doc: |
Path of the file to write to. Path is relative to current directory.
- name: append
kind: bool
default: false
doc: |
Mode defines whether the exporter should append to the file.
Options:
- false[default]: truncates the file
- true: appends to the file.
- name: rotation
type: '*fileexporter.Rotation'
kind: ptr
doc: |
Rotation defines an option about rotation of telemetry files
Rotation defines an option about rotation of telemetry files. Ignored
when GroupByAttribute is used.
fields:
- name: max_megabytes
kind: int
Expand Down Expand Up @@ -47,6 +56,12 @@ fields:
Options:
- json[default]: OTLP json bytes.
- proto: OTLP binary protobuf bytes.
- name: encoding
type: '*component.ID'
kind: ptr
doc: |
Encoding defines the encoding of the telemetry data.
If specified, it overrides `FormatType` and applies an encoding extension.
- name: compression
kind: string
default: ""
Expand All @@ -59,3 +74,28 @@ fields:
doc: |
FlushInterval is the duration between flushes.
See time.ParseDuration for valid values.
- name: group_by
type: '*fileexporter.GroupBy'
kind: ptr
doc: |
GroupBy enables writing to separate files based on a resource attribute.
fields:
- name: enabled
kind: bool
default: false
doc: |
Enables group_by. When group_by is enabled, rotation setting is ignored. Default is false.
- name: resource_attribute
kind: string
default: fileexporter.path_segment
doc: |
ResourceAttribute specifies the name of the resource attribute that
contains the path segment of the file to write to. The final path will be
the Path config value, with the * replaced with the value of this resource
attribute. Default is "fileexporter.path_segment".
- name: max_open_files
kind: int
default: 100
doc: |
MaxOpenFiles specifies the maximum number of open file descriptors for the output files.
The default is 100.
Loading

0 comments on commit dd4b8ca

Please sign in to comment.