Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuth ¶
func NewAuth(params AuthSettings, origClient *http.Client) (http.RoundTripper, error)
NewAuth takes a map of strings as parameters and return a http.RoundTripper that perform Sig V4 signing on each request.
func NewFactory ¶
func NewFactory() component.ExporterFactory
NewFactory returns a factory of the Cortex exporter that can be registered to the Collector.
Types ¶
type AuthSettings ¶
type AuthSettings struct { Enabled bool `mapstructure:"enabled"` // region string for AWS Sig V4 Region string `mapstructure:"region"` // service string for AWS Sig V4 Service string `mapstructure:"service"` // whether AWS Sig v4 debug information should be printed Debug bool `mapstructure:"debug"` }
AuthSettings defines AWS authentication configurations for SigningRoundTripper
type Config ¶
type Config struct { // squash ensures fields are correctly decoded in embedded struct. configmodels.ExporterSettings `mapstructure:",squash"` exporterhelper.TimeoutSettings `mapstructure:",squash"` exporterhelper.QueueSettings `mapstructure:"sending_queue"` exporterhelper.RetrySettings `mapstructure:"retry_on_failure"` // prefix attached to each exported metric name // See: https://prometheus.io/docs/practices/naming/#metric-names Namespace string `mapstructure:"namespace"` // AWS Sig V4 configuration options AuthSettings AuthSettings `mapstructure:"aws_auth"` HTTPClientSettings confighttp.HTTPClientSettings `mapstructure:",squash"` }
Config defines configuration for Remote Write exporter.
type SigningRoundTripper ¶
type SigningRoundTripper struct {
// contains filtered or unexported fields
}
SigningRoundTripper is a Custom RoundTripper that performs AWS Sig V4
Click to show internal directories.
Click to hide internal directories.