GET /api/v1/metric/search?
Curl examples:
curl -X GET "https://YOUR-API-KEY-HERE@api.hostedgraphite.com/api/v1/metric/search?pattern=foo.bar.*"
Search for metrics that match the pattern foo.bar.*
curl -X GET "https://YOUR-API-KEY-HERE@api.hostedgraphite.com/api/v1/metric/search?pattern=foo.bar.*&only_updated_after=5h"
Search for metrics that match the pattern foo.bar.* that only received datapoints in the last 5 hours.
Available Parameters:
Response format:
HTTP/1.1 200
Content-Type: application/json
{
"results": ["foo.bar.1", "foo.bar.2"],
"metrics_matched": 2,
"total_metrics": 12345,
"next_page": 2,
}
Response format with ‘&with_times=true’:
HTTP/1.1 200
Content-Type: application/json
{
"results": ["foo.bar.1", "foo.bar.2"],
"metrics_matched": 2,
"total_metrics": 12345,
"times": {
"foo.bar.1": {
"created_at": 1234567890,
"last_updated": 1234567890
},
"foo.bar.2": {
"created_at": 1234567890,
"last_updated": 1234567890
}
}
}
Response Parameters:
Status Codes:
Legacy Parameters:
POST /api/v1/metric/delete
Curl example:
curl -d "pattern=foo.bar.*" "https://YOUR-API-KEY-HERE@api.hostedgraphite.com/api/v1/metric/delete/"
Delete all metrics that match the pattern foo.bar.*.
Status Codes: