Query using Prometheus-compatible APIs
Although using a tool such as Amazon Managed Grafana is the easiest way to view and query your metrics, Amazon Managed Service for Prometheus also supports several Prometheus-compatible APIs that you can use to query your metrics. For more information about all the available Prometheus-compatible APIs, see Prometheus-compatible APIs.
When you use these APIs to query your metrics, the requests must be signed with
the AWS Signature Version 4 signing process. You can set up AWS Signature Version 4 to simplify the signing process. For more
information, see aws-sigv4-proxy
Signing through AWS SigV4 proxy can be performed using awscurl
. The
following topic Using awscurl to query Prometheus-compatible
APIs walks you through using awscurl
to set up AWS
SigV4.