---
type: api
title: "Prometheus"
description: "The Prometheus Query Language (PromQL) is a functional query language to select and aggregate metrics. Elasticsearch supports PromQL through a Prometheus-compatible..."
url: https://www.elastic.co/elastic/docs-builder/docs/4904/api/elasticsearch/group/endpoint-prometheus
resource: https://www.elastic.co/elastic/docs-builder/docs/4904/api/elasticsearch/group/endpoint-prometheus
products:
  - Elasticsearch
---

# Prometheus

`prometheus`

The Prometheus Query Language (PromQL) is a functional query language to select and aggregate metrics. Elasticsearch supports PromQL through a Prometheus-compatible HTTP API for Prometheus-compatible clients.

[Learn more about PromQL in Elasticsearch.](https://www.elastic.co/docs/reference/query-languages/promql)

- [Ingest Prometheus remote write data](https://www.elastic.co/elastic/docs-builder/docs/4904/api/elasticsearch/operation/operation-prometheus-remote-write): `POST` `/_prometheus/metrics/{dataset}/{namespace}/api/v1/write`, `POST` `/_prometheus/metrics/{dataset}/api/v1/write`, `POST` `/_prometheus/api/v1/write`
- [Get Prometheus label values](https://www.elastic.co/elastic/docs-builder/docs/4904/api/elasticsearch/operation/operation-prometheus-label-values): `GET` `/_prometheus/{index}/api/v1/label/{name}/values`, `GET` `/_prometheus/api/v1/label/{name}/values`
- [Get Prometheus label names](https://www.elastic.co/elastic/docs-builder/docs/4904/api/elasticsearch/operation/operation-prometheus-labels): `POST` (also `GET`) `/_prometheus/{index}/api/v1/labels`, `POST` (also `GET`) `/_prometheus/api/v1/labels`
- [Get Prometheus metric metadata](https://www.elastic.co/elastic/docs-builder/docs/4904/api/elasticsearch/operation/operation-prometheus-metadata): `GET` `/_prometheus/{index}/api/v1/metadata`, `GET` `/_prometheus/api/v1/metadata`
- [Run a PromQL instant query](https://www.elastic.co/elastic/docs-builder/docs/4904/api/elasticsearch/operation/operation-prometheus-query): `POST` (also `GET`) `/_prometheus/{index}/api/v1/query`, `POST` (also `GET`) `/_prometheus/api/v1/query`
- [Run a PromQL range query](https://www.elastic.co/elastic/docs-builder/docs/4904/api/elasticsearch/operation/operation-prometheus-query-range): `POST` (also `GET`) `/_prometheus/{index}/api/v1/query_range`, `POST` (also `GET`) `/_prometheus/api/v1/query_range`
- [Find Prometheus series](https://www.elastic.co/elastic/docs-builder/docs/4904/api/elasticsearch/operation/operation-prometheus-series): `POST` (also `GET`) `/_prometheus/{index}/api/v1/series`, `POST` (also `GET`) `/_prometheus/api/v1/series`
- [Get Prometheus build information](https://www.elastic.co/elastic/docs-builder/docs/4904/api/elasticsearch/operation/operation-prometheus-status-buildinfo): `GET` `/_prometheus/{index}/api/v1/status/buildinfo`, `GET` `/_prometheus/api/v1/status/buildinfo`
