---
title: "Prometheus Query"
method: GET
path: "/api/v1/query"
tags: ["Prometheus"]
---

# Prometheus Query

`GET /api/v1/query`

Prometheus query API.

## Query parameters

- `query` string — The query expression of prometheus to filter.
- `time` string — The time to filter.
- `timeout` string — The timeout to filter.

## Response `200`

OK

- PrometheusQueryResponse
  - `status` string, required — Prometheus status
  - `errorType` string, nullable — Prometheus error type
  - `error` string, nullable — Prometheus error
  - `warnings` string, nullable — Prometheus warnings
  - `data` PrometheusQueryData
    - `resultType` string, required — Prometheus result type
    - `result` PrometheusQueryResult[], required — Prometheus query result
      - `metric` object, required — Prometheus metric
      - `value` unknown[], required — Prometheus metric value
        - unknown

## Other responses

- `401` — Unauthorized
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.dev/openstack/apis/skyline-api.md) · [All operations](https://skmtc.dev/openstack/apis/skyline-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openstack/skyline-api/revisions/4b7c0ce8c025/schema)
