We try to use Grafana Agent Flow with AWS Managed Prometheus from a Kubernetes cluster which runs directly on a EC2 instance in the same AWS account.
For that, we created an AMP workspace and configured Grafana Agent Flow to send metrics to AMP:
prometheus.remote_write "mimir" {
endpoint {
url = "https://aps-workspaces.eu-central-1.amazonaws.com/workspaces/ws-....1/api/v1/remote_write"
headers = {"X-Scope-OrgID" = "clustername1"}
sigv4 {
region = "eu-central-1"
access_key = "AKIAxxxxxxxxxxxxxxxxxXP"
secret_key = "b...........................................................9" }
}
}
Grafana Agent Flow: 0.37.2
All EC2 nodes has the policy AmazonPrometheusRemoteWriteAccess applied.
The error message is:
server returned HTTP status 403 Forbidden: {\"message\":\"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method.
Do we miss something ? E.g. is a sigv4-proxy needed, or is this already integrated in GAF 0.37.2