> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chromiumly.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# System

> Static methods for Gotenberg system endpoints: health, version, debug, and metrics.

All methods are static. They call the configured Gotenberg endpoint from `Chromiumly.configure()`. Every method accepts an optional `trace` argument (custom request id, mapped to the `Gotenberg-Trace` header — see [Request tracing](https://docs.chromiumly.dev/v6/advanced/request-tracing.md)).

## getHealth(trace?)

Get the JSON health report from `GET /health`.

```typescript theme={null}
System.getHealth(trace?: string): Promise<Buffer>
```

## headHealth(trace?)

Run a lightweight health check with `HEAD /health`. Returns an empty buffer on success.

```typescript theme={null}
System.headHealth(trace?: string): Promise<Buffer>
```

## getVersion(trace?)

Get the Gotenberg version from `GET /version`.

```typescript theme={null}
System.getVersion(trace?: string): Promise<Buffer>
```

## getDebug(trace?)

Get debug data from `GET /debug`.

```typescript theme={null}
System.getDebug(trace?: string): Promise<Buffer>
```

This endpoint is available only when Gotenberg enables debug data.

## getPrometheusMetrics(trace?)

Get Prometheus metrics from `GET /prometheus/metrics`.

```typescript theme={null}
System.getPrometheusMetrics(trace?: string): Promise<Buffer>
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.