Metrics

Get a derived metric

Get the definition of a derived metric by name.

get/api/v2/metrics/derived-metrics/{metric_name}

Request

Path parameters

metric_namestring required

The name of the metric.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "definition": {
        "formula": "a",
        "queries": [
          {
            "data_source": "metrics",
            "name": "a",
            "query": "avg:system.cpu.user{*}"
          }
        ]
      }
    },
    "id": "my.derived.metric",
    "type": "derived_metrics"
  }
}

Changes

Changes to this operation have not been checked yet.