Skip to content

Add AWS Sigv4 support to scraper and http_sd #14294

@haoranleo

Description

@haoranleo

Proposal

Currently we've supported AWS Signature v4 in remote write and alert manager. We would also like to support AWS Signature v4 in the scraper as well as HTTP service discovery. So that clients can directly use http_sd to discover and scrape sigv4 metrics endpoint.

This is actually a follow up issue for #3008. Previously we paused the discussion due to lacking of native sigv4 metrics endpoint offered by Amazon. Now EKS is planning to expose sigv4 metrics endpoints for customers to scrape metrics from their Kubernetes clusters. Thus, we would like to support sigv4 to both HTTP SD and Prometheus scraper.

What will be changed?

Sigv4 config will be added to http_config https://github.com/prometheus/common/blob/main/config/http_config.go, as well as scrape_config https://github.com/prometheus/prometheus/blob/main/config/config.go

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions