Add support for Prometheus compatible APIs in amp service #2658
Labels
feature-request
A feature should be added or improved.
p2
This is a standard priority issue
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
service-api
This issue is due to a problem in a service API, not the SDK implementation.
Describe the feature
To do https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-APIReference-RemoteWrite.html at the moment we'd need to sign requests manually, implement retry logic, and other things that the SDK gives us out of the box
Use Case
We have a Lambda function that needs to write directly to Prometheus, as we can't use our normal setup with the otel collector that we have for ECS we are sending the metrics directly to it.
The alternative is doing Lambda -> CloudWatch EMF -> Metrics stream -> AMP which is a lot of extra hops to avoid a single API call
Proposed Solution
Add a
Client.RemoteWrite
method (and I guessRemoteRead
might as well be there?)Other Information
No response
Acknowledgements
AWS Go SDK V2 Module Versions Used
v1.25.8
Go version used
go version go1.22.2 darwin/arm64
The text was updated successfully, but these errors were encountered: