Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Add support for sigv4auth extension #8

Description

@jfharden

It would be good to add support for the sigv4auth extension.

Currently validating a config using it results it an error message:

OpenTelemetry Collector Configuration file `pay-adot/config.yml` is not valid.


Error: unknown extensions type "sigv4auth" for "sigv4auth" (valid values: [zpages])

Here's an example config file using the extension:

receivers:
  prometheus:
    config:
      global:
        scrape_interval: 15s
        scrape_timeout: 10s
      scrape_configs:
      - job_name: "adot-sidecar-scrape-application"
        static_configs:
        - targets: [ "127.0.0.1:$APPLICATION_PORT" ]
        honor_labels: true
        honor_timestamps: true

processors:

exporters:
  prometheusremotewrite:
    endpoint: $PROMETHEUS_ENDPOINT_URL
    resource_to_telemetry_conversion:
        enabled: false
    auth:
      authenticator: sigv4auth
  logging:
    loglevel: info

extensions:
  sigv4auth:
    region: $AWS_REGION
    service: aps
    assume_role:
      arn: $PROMETHEUS_WRITE_ASSUME_ROLE_ARN

service:
  extensions: [sigv4auth]
  pipelines:
    metrics/application:
      receivers: [prometheus]
      exporters: [logging, prometheusremotewrite]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions