awss3receiver

package module
v0.99.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

AWS S3 Receiver

Status
Stability development: traces
Distributions []
Issues Open issues Closed issues
Code Owners @atoulme, @adcharre

Overview

Receiver for retrieving trace previously stored in S3 by the AWS S3 Exporter.

Configuration

The following exporter configuration parameters are supported.

Name Description Default Required
starttime The time at which to start retrieving data. Required
endtime The time at which to stop retrieving data. Required
s3downloader:
region AWS region. "us-east-1" Optional
s3_bucket S3 bucket Required
s3_prefix prefix for the S3 key (root directory inside bucket). Required
s3_partition time granularity of S3 key: hour or minute "minute" Optional
file_prefix file prefix defined by user Optional
endpoint overrides the endpoint used by the exporter instead of constructing it from region and s3_bucket Optional
s3_force_path_style set this to true to force the request to use path-style addressing false Optional
Time format for starttime and endtime

The starttime and endtime fields are used to specify the time range for which to retrieve data. The time format is either YYYY-MM-DD HH:MM or simply YYYY-MM-DD, in which case the time is assumed to be 00:00.

Example Configuration
receivers:
  awss3:
    starttime: "2024-01-01 01:00"
    endtime: "2024-01-02"
    s3downloader:
        region: "us-west-1"
        s3_bucket: "mybucket"
        s3_prefix: "trace"
        s3_partition: "minute"

Documentation

Overview

Package awss3receiver implements a receiver that can be used by the Opentelemetry collector to retrieve traces previously stored in S3 by the AWS S3 Exporter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() receiver.Factory

Types

type Config

type Config struct {
	S3Downloader S3DownloaderConfig `mapstructure:"s3downloader"`
	StartTime    string             `mapstructure:"starttime"`
	EndTime      string             `mapstructure:"endtime"`
}

Config defines the configuration for the file receiver.

func (Config) Validate

func (c Config) Validate() error

type S3DownloaderConfig

type S3DownloaderConfig struct {
	Region           string `mapstructure:"region"`
	S3Bucket         string `mapstructure:"s3_bucket"`
	S3Prefix         string `mapstructure:"s3_prefix"`
	S3Partition      string `mapstructure:"s3_partition"`
	FilePrefix       string `mapstructure:"file_prefix"`
	Endpoint         string `mapstructure:"endpoint"`
	S3ForcePathStyle bool   `mapstructure:"s3_force_path_style"`
}

S3DownloaderConfig contains aws s3 downloader related config to controls things like bucket, prefix, batching, connections, retries, etc.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL