﻿---
title: Prometheus fields
description: Stats scraped from a Prometheus endpoint. query metricset remote write metrics from Prometheus server 
url: https://www.elastic.co/elastic/docs-builder/docs/2903/reference/beats/metricbeat/exported-fields-prometheus
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Prometheus fields
Stats scraped from a Prometheus endpoint.
<definitions>
  <definition term="metrics_count">
    Number of metrics per Elasticsearch document.
    type: long
  </definition>
  <definition term="prometheus.labels.*">
    Prometheus metric labels
    type: object
  </definition>
  <definition term="prometheus.metrics.*">
    Prometheus metric
    type: object
  </definition>
  <definition term="prometheus.query.*">
    Prometheus value resulted from PromQL
    type: object
  </definition>
</definitions>


## query

query metricset

## remote_write

remote write metrics from Prometheus server