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

# Query Prometheus metrics

`GET /api/v1/prometheus/query`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/prometheus/query`
- Auth: API key in header `Authorization`

Execute a PromQL query against the default Prometheus instance.

## Query parameters

- `query` string, required

## Response `200`

Prometheus query result

- object

## Other responses

- `400`: Bad request - Missing query parameter
- `500`: Internal server error

---

[API](https://skmtc.dev/nife/apis/nife-io-swagger-api.md) - [All operations](https://skmtc.dev/nife/apis/nife-io-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nife/apis/nife-io-swagger-api/revisions/6e868dc62795?raw)
