400 Bad Request when querying from AWS Managed Prometheus

0

I am trying to query for metrics from my AWS Managed prometheus. I am using the query_range API from https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-APIReference.html#AMP-APIReference-Prometheus-Compatible-Apis

The call to get the metrics works fine if I use awscurl but if I use either postman (with their in-built AWS Sigv4 auth) or try to use SigV4 auth and query from my java code base, I always get a 400 bad request with no other information about the failure. Is there anything specific I'm supposed to be doing to get this to work ? This is the response I get when querying from Postman:

<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
</body>
</html>

There is no information on why the call is failing.

From postman, apart from AccessKey and SecretKey, the service-name i use is : aps and my region is us-west-2

質問済み 2年前279ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ