---
title: "Allows a web context identifier to be passed as a parameter"
method: GET
path: "/pmapi/metrics"
tags: ["PMAPI HOST SERVICES"]
---

# Allows a web context identifier to be passed as a parameter

`GET /pmapi/metrics`

This request is a subset of the style described in the ``OPEN METRICS and OPEN TELEMETRY`` section, allowing a web context identifier to be passed as a parameter. It is 
otherwise very similar in terms of parameters and response handling, please refer to the earlier section for details.

**Reference:** [pmLookupDesc](https://man7.org/linux/man-pages/man3/pmLookupDesc.3.html)(3),
               [pmLookupLabels](https://man7.org/linux/man-pages/man3/pmLookupLabels.3.html)(3),
               [pmFetch](https://man7.org/linux/man-pages/man3/pmFetch.3.html)(3)

## Query parameters

- `names` string
- `times` boolean
- `context` number
- `hostspec` string
- `polltimeout` number
- `client` string

## Response `200`

OK

## Changes

- **2026-07-17** `666212c8ed6b` — 1 info
  - added the success response with the status `200`
- **2020-10-21** `26cabf98ddfb` — 1 info
  - endpoint added
- **2020-10-20** `7da0633fad91` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/performancecopilot/apis/pmwebapi/changes/pmapi/metrics/get.md)

---

[API](https://skmtc.dev/performancecopilot/apis/pmwebapi.md) · [All operations](https://skmtc.dev/performancecopilot/apis/pmwebapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/performancecopilot/pmwebapi/revisions/666212c8ed6b/schema)
