> For the complete documentation index, see [llms.txt](https://docs.inrupt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inrupt.com/ess/latest/administration/service-metrics-prometheus-configuration.md).

# Service Metrics: Prometheus Configuration

ESS services expose metrics in Prometheus format, which can be collected by Prometheus or any metrics collector that supports the Prometheus format. ESS-specific metrics use the prefix **`application_com_inrupt_`**, followed by a service-specific key. For example, the [Query Service Indexer](/ess/latest/services/service-query/query-indexer.md) uses the prefix **`application_com_inrupt_query_fragments_ingest_`**.

To enable discovery and scraping by an appropriately configured metrics scraper, those ESS services that emit metrics have the following annotations in their **`spec`**:

<pre class="language-yaml"><code class="lang-yaml">---
spec:
  template:
    metadata:
      annotations:
<strong>        prometheus.io/port: "9000"
</strong><strong>        prometheus.io/scheme: https
</strong><strong>        prometheus.io/scrape: "true"
</strong><strong>        prometheus.io/path: /q/metrics
</strong></code></pre>

For services with these annotations, metrics scrapers can collect metrics from the services' Kubernetes pods by making an HTTPS request on port **`9000`** with a path of **`/q/metrics`**.

See also:

* [ESS Metrics](/ess/latest/administration/ess-metrics.md) for specifics on metrics emitted by ESS services.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inrupt.com/ess/latest/administration/service-metrics-prometheus-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
