Skip to main content

Retrieve custom metrics data points

GET 

/api/v1/eng-intel/custom-metrics/:customMetricKey/entity/:tagOrId

Lists all custom metrics data points for an entity

Request

Path Parameters

    customMetricKey stringrequired

    Key for the custom metric filter

    tagOrId stringrequired

    The tag (x-cortex-tag) or unique, auto-generated identifier for the entity.

Query Parameters

    startDate date-time

    Start date for the filter (inclusive). Default: 6 months

    endDate date-time

    End date for the filter (inclusive)

    pageSize int32required

    Default value: 250

    Number of results to return per page, between 1 and 1000. Default 250.

    page int32required

    Default value: 0

    Page number to return, 0-indexed. Default 0.

Responses

Successfully retrieved custom metrics data points

Schema

    data

    object[]

    required

    Data points

  • Array [

  • timestamp date-timerequired
    value doublerequired
  • ]

  • page int32required

    Current page number, 0-indexed

    total int32required

    Total number of results

    totalPages int32required

    Total number of pages

Loading...