> This page is for Itential Gateway, version 5 (default).
> For other versions, use one of these documentation indexes:
> - 5 (default): https://docs-test.itntl.com/itential-gateway/5/llms.txt
> - 4: https://docs-test.itntl.com/itential-gateway/4/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs-test.itntl.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-test.itntl.com/_mcp/server.

# Metrics variables

> Learn more about configurable variables for the gateway server metrics endpoint.

## GATEWAY_METRICS_COLLECTION_ENABLED

Determines whether a gateway server collects metrics.

### Environment Variable

`GATEWAY_METRICS_COLLECTION_ENABLED`

### File

**Section:** `metrics`

**Key:** `collection_enabled`

### Default

`false`

---

## GATEWAY_METRICS_ENDPOINT_ENABLED

Determines whether a gateway server exposes the `/metrics` endpoint for Prometheus to scrape.

### Environment Variable

`GATEWAY_METRICS_ENDPOINT_ENABLED`

### File

**Section:** `metrics`

**Key:** `endpoint_enabled`

### Default

`false`

---

## GATEWAY_METRICS_LISTEN_ADDRESS

Sets the address that the gateway server's metrics endpoint listens on.

### Environment Variable

`GATEWAY_METRICS_LISTEN_ADDRESS`

### File

**Section:** `metrics`

**Key:** `listen_address`

### Default

`127.0.0.1`

---

## GATEWAY_METRICS_PORT

Sets the port that the gateway server's metrics endpoint listens on.

### Environment Variable

`GATEWAY_METRICS_PORT`

### File

**Section:** `metrics`

**Key:** `port`

### Default

`9091`