> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.itential.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itential.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`