Categorygithub.com/mtanda/cloudwatch_read_adapter
modulepackage
0.0.0-20240829025606-49ba736ebb97
Repository: https://github.com/mtanda/cloudwatch_read_adapter.git
Documentation: pkg.go.dev

# README

cloudwatch_read_adapter

CloudWatch remote read adapter for Prometheus.

Setup

Add following setting to prometheus.yml.

remote_read:
  - url: http://localhost:9415/read

And then, launch read adapter.

./cloudwatch_read_adapter

AWS credentials

This read apadter use AWS SDK for Go, read credentials from Environment variables, IAM role for Amazon EC2, etc. Please read following document.

https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html

Query

Specify CloudWatch GetMetricStatistics parameters as label.

{Region="us-east-1",Namespace="AWS/EC2",MetricName="CPUUtilization",InstanceId="i-0123456789abcdefg",Statistics="Average",Period="300"}

Limitation

Now, this plugin doesn't support regex matcher.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author