---
title: "Prometheus HTTP Service Discovery"
method: GET
path: "/prometheus/projects/{project_id}/metrics/discover"
tags: ["Metrics"]
---

# Prometheus HTTP Service Discovery

`GET /prometheus/projects/{project_id}/metrics/discover`

Get endpoints for Prometheus scraping.

## Path parameters

- `project_id` string, uuid, required

## Response `200`

A list of Prometheus scrape targets.

- object[] — The PrometheusTargets object describes the configuration needed to scrape metrics from a set of targets.
  - `targets` string[], required — List of hostnames or IP addresses that are targets for monitoring.
  - `labels` object — Set of labels to be attached to the scraped metrics from the targets.

## Other responses

- `401` — Unauthorized. Possible causes: Invalid API key.
- `429` — Too many requests. The client has sent too many requests in a given amount of time.
- `500` — Internal server error.

---

[API](https://skmtc.net/pinecone/apis/pinecone-api.md) · [All operations](https://skmtc.net/pinecone/apis/pinecone-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pinecone/pinecone-api/revisions/35876583485d/schema)
