[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/monitor](../README) / ResolvedMonitorConfig

# Interface: ResolvedMonitorConfig

Defined in: [monitor/src/config.ts:103](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L103)

## Extends

- [`MonitorConfigShape`](MonitorConfigShape)

## Properties

### alertThresholds?

> `optional` **alertThresholds?**: [`AlertThresholds`](AlertThresholds)

Defined in: [monitor/src/config.ts:73](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L73)

Alert thresholds (error rate, queue backlog, p95, rollbacks).

#### Inherited from

[`MonitorConfigShape`](MonitorConfigShape).[`alertThresholds`](MonitorConfigShape#alertthresholds)

***

### alertWebhook?

> `optional` **alertWebhook?**: `string`

Defined in: [monitor/src/config.ts:86](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L86)

Slack-compatible webhook URL. When set, every newly-firing alert is POSTed to
it as JSON (`{ text, level, title, detail }`) so alerts page someone instead of
only lighting up the panel. Dependency-free (uses `fetch`); delivery is
best-effort. For richer routing, register a handler with `onAlert()` instead.

#### Inherited from

[`MonitorConfigShape`](MonitorConfigShape).[`alertWebhook`](MonitorConfigShape#alertwebhook)

***

### zerotalVersion?

> `optional` **zerotalVersion?**: `string`

Defined in: [monitor/src/config.ts:90](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L90)

Version string shown in the System footer.

#### Inherited from

[`MonitorConfigShape`](MonitorConfigShape).[`zerotalVersion`](MonitorConfigShape#zerotalversion)

***

### region?

> `optional` **region?**: `string`

Defined in: [monitor/src/config.ts:92](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L92)

Region label shown in the System footer.

#### Inherited from

[`MonitorConfigShape`](MonitorConfigShape).[`region`](MonitorConfigShape#region)

***

### deploy?

> `optional` **deploy?**: `string`

Defined in: [monitor/src/config.ts:94](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L94)

Deploy SHA shown in the System footer.

#### Inherited from

[`MonitorConfigShape`](MonitorConfigShape).[`deploy`](MonitorConfigShape#deploy)

***

### sections?

> `optional` **sections?**: `Record`\<`string`, `boolean`\>

Defined in: [monitor/src/config.ts:100](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L100)

Switch contributed sections off by id — `{ scheduler: false }` keeps the
scheduler installed but drops its section from the panel. Anything absent
here is on.

#### Inherited from

[`MonitorConfigShape`](MonitorConfigShape).[`sections`](MonitorConfigShape#sections)

***

### path

> **path**: `string`

Defined in: [monitor/src/config.ts:104](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L104)

URL prefix the panel mounts at. Default: `/monitor`.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`path`](MonitorConfigShape#path)

***

### title

> **title**: `string`

Defined in: [monitor/src/config.ts:105](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L105)

Browser tab title / sidebar heading. Default: `Super Panel`.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`title`](MonitorConfigShape#title)

***

### subtitle

> **subtitle**: `string`

Defined in: [monitor/src/config.ts:106](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L106)

Sub-label under the title. Default: `Zerotal Ops`.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`subtitle`](MonitorConfigShape#subtitle)

***

### record

> **record**: `boolean`

Defined in: [monitor/src/config.ts:107](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L107)

Install the recorder middleware to capture live request data. Default: true.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`record`](MonitorConfigShape#record)

***

### refreshMs

> **refreshMs**: `number`

Defined in: [monitor/src/config.ts:108](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L108)

Auto-refresh cadence in milliseconds while "Live" is on. Default: 3000.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`refreshMs`](MonitorConfigShape#refreshms)

***

### apdexTargetMs

> **apdexTargetMs**: `number`

Defined in: [monitor/src/config.ts:109](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L109)

Apdex satisfaction threshold (T) in ms. Default: 100.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`apdexTargetMs`](MonitorConfigShape#apdextargetms)

***

### slowQueryMs

> **slowQueryMs**: `number`

Defined in: [monitor/src/config.ts:110](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L110)

Queries at/above this many ms count as "slow". Default: 100.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`slowQueryMs`](MonitorConfigShape#slowqueryms)

***

### slowRequestMs

> **slowRequestMs**: `number`

Defined in: [monitor/src/config.ts:111](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L111)

Requests at/above this many ms count as "slow" (Slow Requests widget). Default: 1000.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`slowRequestMs`](MonitorConfigShape#slowrequestms)

***

### snapshotCacheMs

> **snapshotCacheMs**: `number`

Defined in: [monitor/src/config.ts:112](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L112)

Cache built snapshots for this many ms, keyed by range, so overlapping reads
(panel poll + Prometheus scrape + alert loop) share one build. Mutating actions
invalidate it. Default: 1000. Set `0` to always build fresh.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`snapshotCacheMs`](MonitorConfigShape#snapshotcachems)

***

### storage

> **storage**: `string`

Defined in: [monitor/src/config.ts:113](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L113)

SQLite file the panel persists to, so history survives restarts and the
1h/24h/7d ranges trace real data. Default: `storage/monitor.sqlite`. Use
`:memory:` for an ephemeral, in-process store.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`storage`](MonitorConfigShape#storage)

***

### retentionDays

> **retentionDays**: `number`

Defined in: [monitor/src/config.ts:114](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L114)

Days of history to keep before pruning. Default: 7.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`retentionDays`](MonitorConfigShape#retentiondays)

***

### retentionMode

> **retentionMode**: `RetentionMode`

Defined in: [monitor/src/config.ts:115](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L115)

What to do with data past retention: `delete` it or `archive` it. Default: `delete`.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`retentionMode`](MonitorConfigShape#retentionmode)

***

### metrics

> **metrics**: `boolean`

Defined in: [monitor/src/config.ts:116](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L116)

Expose a Prometheus text-exposition endpoint. Default: `false` (opt-in).
The endpoint is unauthenticated (a scraper can't satisfy user-auth), so it
ships off; enable it only when you protect `metricsPath` at the network
layer (firewall/ingress) or scope it to a private interface.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`metrics`](MonitorConfigShape#metrics)

***

### metricsPath

> **metricsPath**: `string`

Defined in: [monitor/src/config.ts:117](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L117)

Path for the Prometheus endpoint. Default: `/metrics`. Protect it at the network layer.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`metricsPath`](MonitorConfigShape#metricspath)

***

### alerts

> **alerts**: `boolean`

Defined in: [monitor/src/config.ts:118](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L118)

Evaluate threshold alerts on a short interval. Default: `true`.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`alerts`](MonitorConfigShape#alerts)

***

### alertCooldownMs

> **alertCooldownMs**: `number`

Defined in: [monitor/src/config.ts:119](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L119)

Minimum gap (ms) before the same alert can fire again after it recovers and
re-breaches. Stops an oscillating metric from re-paging / re-flooding the feed
for one ongoing issue. Default: 30 min. Set `0` to fire on every fresh breach.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`alertCooldownMs`](MonitorConfigShape#alertcooldownms)

***

### capturePayloads

> **capturePayloads**: `boolean`

Defined in: [monitor/src/config.ts:120](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L120)

Capture request/response headers and bodies on each request (Telescope-style),
shown in the request trace. Off by default — it buffers bodies and is
privacy-sensitive. Sensitive headers (authorization/cookie) and body keys
(password/token/secret/…) are redacted automatically.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`capturePayloads`](MonitorConfigShape#capturepayloads)

***

### payloadMaxBytes

> **payloadMaxBytes**: `number`

Defined in: [monitor/src/config.ts:121](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L121)

Truncate captured request/response bodies to this many bytes. Default: 65536.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`payloadMaxBytes`](MonitorConfigShape#payloadmaxbytes)

***

### accent

> **accent**: `string`

Defined in: [monitor/src/config.ts:122](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L122)

Accent colour (hex) for the panel chrome. Default: Zerotal orange.

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`accent`](MonitorConfigShape#accent)

***

### auth

> **auth**: (`user`) => `boolean` \| `Promise`\<`boolean`\>

Defined in: [monitor/src/config.ts:124](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/monitor/src/config.ts#L124)

Always set after MonitorConfig() applies defaults.

#### Parameters

##### user

`unknown`

#### Returns

`boolean` \| `Promise`\<`boolean`\>

#### Overrides

[`MonitorConfigShape`](MonitorConfigShape).[`auth`](MonitorConfigShape#auth)
