# Deprecated Observability Setup Dashboard

> Observability setup for lumi-dashboard (TanStack Start/Node.js) on Nais Use when this capability is needed.

- Skill: `tomevault-io/deprecated-observability-setup-dashboard` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/deprecated-observability-setup-dashboard`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/deprecated-observability-setup-dashboard/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/deprecated-observability-setup-dashboard

---


> DEPRECATED: use `.github/skills/observability-setup-dashboard/skill.md` at repo root.

# Observability Setup (lumi-dashboard)

This repo exposes operational endpoints under `/api/internal/*`.

## Endpoints

- `GET /api/internal/isAlive`
- `GET /api/internal/isReady`
- `GET /api/internal/metrics` (Prometheus via `prom-client`)

## Local verification

```bash
curl -i http://localhost:3000/api/internal/isAlive
curl -i http://localhost:3000/api/internal/isReady
curl -s http://localhost:3000/api/internal/metrics | head -50
```

## Nais manifest essentials

Manifests live in `nais/*.yaml`.

```yaml
spec:
  port: 3000

  liveness:
    path: /api/internal/isAlive
    initialDelay: 5
  readiness:
    path: /api/internal/isReady
    initialDelay: 5

  prometheus:
    enabled: true
    path: /api/internal/metrics

  observability:
    autoInstrumentation:
      enabled: true
      runtime: nodejs
```

## Metric design guidance

- Keep label sets small and stable.
- Avoid high-cardinality labels (user IDs, feedback IDs).
- Prefer “what happened” counters over per-entity tracking.

## Boundaries

### ✅ Always

- Keep paths consistent across code and Nais manifests.
- Keep liveness fast and dependency-light.

### ⚠️ Ask First

- Adding new alert rules/dashboards or changing scrape settings.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/navikt) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-14 -->

