package
1.300045.0
Repository: https://github.com/aws/amazon-cloudwatch-agent.git
Documentation: pkg.go.dev

# README

Adapter Receiver

The Adapter Receiver receives Telegraf metrics, filters unsupported value and converts them to corresponding OTEL metrics before passing down to OTEL processors and exporters. This is intended to be used when Telegraf input plugins are still intact.

Status
Stability[stable]
Supported pipeline typesmetrics
Distributions[amazon-cloudwatch-agent]

Architectural

Data Conversion

Convert Telegraf Metrics with the following type (Counter, Gauge, or Untyped)

Metric {
    Name
    TagList (each tag with key, value)
    FieldList (each field with key, value) 
    Time
    Type (Counter, Gauge, Summary, Histogram, or Untyped)
}

to OpenTelemetry Int64DataPoints, DoubleDataPoints metrics datapoints

Metrics {
    ResourceMetrics: list of {
      Resource: {
        Attributes: map of {key: value}
      }
      InstrumentationScopeMetrics: list of {
        InstrumentationLibrary: {Name, Version}
        Metrics: list of {
          Name
          Description
          Unit
          DataType (None, Gauge, Sum, Histogram, Summary)
          depending on DataType, e.g. Gauge: {
            DataPoints: list of {
              Attributes: map of {key: value}
              Timestamp
              Type (None, Int, Double)
              Val
            }
          }
        }
      }
    }
  }

Receiver Configuration

The following receiver configuration parameters are supported.

NameDescriptionDefault
collection_intervalis the option to set the collection interval for each plugin"1m"
alias_nameis the option to set the different name for each plugin.""

# Packages

No description provided by the author

# Functions

No description provided by the author
Type joins the TelegrafPrefix to the input.

# Constants

No description provided by the author

# Structs

AdaptedReceiver uses an OTel Scrape Controller to scrape metrics and has three phases: Start: Start the accumulator to initialize the logger and resources metrics Scrape: Gather metrics using the accumulator (e.g CPU https://github.com/influxdata/telegraf/blob/6e924fcd5cc2ce79a024b7275d865d7a19c455ed/plugins/inputs/cpu/cpu.go) Shutdown: Stop the scraper and flush the remaining metrics before shutting down the scraper.
No description provided by the author
No description provided by the author