Metrics API

Contents

Locate Metrics

GET GET /api/v1/metric/search?

Path Parameters

Name
Type
Description

pattern*

[required] metric pattern to search for

only_updated_after

String

To limit search results for metrics that only received data points in the last n hours

only_updated_before

String

To limit search results for metrics that have not received data points in the last n month

with_times

String

To return the first (“created_at”) and last (“last_updated”) seen timestamp for that metric

page

String

Return the nth page of results, for searches that return more than the maximum page size (default maximum size: 100)

HTTP/1.1 200
Content-Type: application/json 
{
  "results": [
    "foo.bar.1",
    "foo.bar.2"
  ],
  "metrics_matched": 2,
  "total_metrics": 12345,
  "next_page": 2
}

Curl examples:

Search for metrics that match the pattern foo.bar.*

Search for all (*) metrics that have not received data for 30d

Response format for: &with_times=true:


Locate Busy Metrics

GET /api/v1/metric/busy

Curl Example:


Locate Invalid Metrics

GET /api/v1/metric/invalid

Curl example:


Delete Metrics

POST /api/v1/metric/delete

OK

Curl example:

Delete all metrics that match the pattern foo.bar.*.

Last updated

Was this helpful?