Amazon Prometheus Service
amazonaws · Cloud
Amazon Managed Service for Prometheus
Authentication
No authentication requiredFree to use with no key needed.
Sample Requests
GET
ListWorkspaces
Lists all AMP workspaces, including workspaces being created or deleted.
https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces?alias=example&nextToken=example&maxResults=1
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces?alias=example&nextToken=example&maxResults=1"
import requests
params = {
"alias": "example",
"nextToken": "example",
"maxResults": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces');
url.searchParams.set('alias', 'example');
url.searchParams.set('nextToken', 'example');
url.searchParams.set('maxResults', '1');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces")
q := baseURL.Query()
q.Set("alias", "example")
q.Set("nextToken", "example")
q.Set("maxResults", "1")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces")
uri.query = URI.encode_www_form({
"alias" => "example",
"nextToken" => "example",
"maxResults" => "1"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces?" . http_build_query([
"alias" => "example",
"nextToken" => "example",
"maxResults" => "1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
ListRuleGroupsNamespaces
Lists rule groups namespaces.
https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}/rulegroupsnamespaces?name=test&nextToken=example&maxResults=1
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}/rulegroupsnamespaces?name=test&nextToken=example&maxResults=1"import requests
params = {
"name": "test",
"nextToken": "example",
"maxResults": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}/rulegroupsnamespaces",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}/rulegroupsnamespaces');
url.searchParams.set('name', 'test');
url.searchParams.set('nextToken', 'example');
url.searchParams.set('maxResults', '1');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}/rulegroupsnamespaces")
q := baseURL.Query()
q.Set("name", "test")
q.Set("nextToken", "example")
q.Set("maxResults", "1")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}/rulegroupsnamespaces")
uri.query = URI.encode_www_form({
"name" => "test",
"nextToken" => "example",
"maxResults" => "1"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}/rulegroupsnamespaces?" . http_build_query([
"name" => "test",
"nextToken" => "example",
"maxResults" => "1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
DescribeWorkspace
Describes an existing AMP workspace.
https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/amazonaws.com/amp/2020-08-01/workspaces/{workspaceId}";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Amazon Prometheus Service?
Amazon Prometheus Service is a Cloud API. Developers commonly use cloud APIs for:
- provisioning and managing cloud infrastructure
- automating deployments and container orchestration
- monitoring uptime and performance metrics
- managing storage buckets and databases
- setting up auto-scaling and load balancing
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Amazon Prometheus Service is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide