Skip to main content

Returns the time series that match a label set in a metrics account by ID

GET 

/v1/metrics/prometheus/:accountId/api/v1/series

Runs against the metrics account given by accountId instead of the API token's own account, so it can be called with the API token of a logs account. The token's account must be one of the metrics account's authorized accounts, otherwise the request returns 401. To list the metrics accounts and their authorizedAccountsIds, use Get a list of all metrics accounts.

Retrieve time series data by submitting a GET request with label matchers and time range parameters. Please ensure to change the region in the URL to match your account's region.

Request​

Path Parameters

    accountId integerrequired

    ID of the metrics account to query.

Query Parameters

    match[] string[]required

    Series selector that selects the series to return. At least one must be provided.

    start stringrequired

    Start timestamp, inclusive, as an RFC3339 or Unix timestamp.

    end stringrequired

    End timestamp, inclusive, as an RFC3339 or Unix timestamp.

    limit integer

    Maximum number of returned series. Optional.

Responses​

List of matching time series.

Schema
    status string

    Status of the request (e.g., success, fail).

    data object[]
Loading...