Commit Graph

52 Commits

Author SHA1 Message Date
pulse-triage[bot]
643cedb155 Expose overdue queued polls in Prometheus (#5188)
Report the age of the oldest timestamped poll still in the active queue
across running schedulers. Use the queue snapshots already read at
scrape time, so a flat due-soon count does not hide a growing wait. Keep
claims, future retries and dead letters separate without adding labels
or changing poll admission.

---
Fleet candidate `20261126T030625Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `117a0021fd5688468af0ae5358953a06eeeceedb` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-26 03:47:41 +00:00
pulse-triage[bot]
117a0021fd Expose overdue queued polls in Prometheus
Report the age of the oldest timestamped poll still in the active queue across running schedulers. Use the queue snapshots already read at scrape time, so a flat due-soon count does not hide a growing wait. Keep claims, future retries and dead letters separate without adding labels or changing poll admission.

Change-source: pulse-maintainer
2026-11-26 03:11:48 +00:00
pulse-triage[bot]
86e123dd90 Age the scheduler breaker retry gauge on scrape
Keep the last recorded breaker deadline instead of freezing the remaining delay at the write. An operator can tell when recorded backoff has expired without another poll or Scheduler Health read. Export state and failures from the same observation without changing probe admission.

Change-source: pulse-maintainer
2026-11-26 02:36:41 +00:00
pulse-triage[bot]
f3f42fbb21 Measure poll dead letters from active scheduler runtimes
Read terminal records at scrape time from the queues owned by running schedulers. A cancelled runtime stops contributing even while its monitor is retained; an old Health snapshot cannot restore its sample or clear a peer with the same labels.

Keep the current poll cadence and partial-read status. Cover tenant replacement and shutdown with the old queue held live, stale publication across recovery, and the matching Prometheus samples.

Refs #5089.

Change-source: pulse-maintainer
2026-11-26 01:25:31 +00:00
pulse-triage[bot]
07a62a4a20 Compose reviewed poll dead-letter recovery onto current main
Preserve 82768e9a0d while replacing the process-wide gauge publisher with a runtime-owned scrape.

Change-source: pulse-maintainer
2026-11-26 01:25:24 +00:00
pulse-triage[bot]
fc8b624daa Measure scheduler queue gauges at scrape time (#5177)
Read the active queues instead of publishing heap scans from poll
workers. A quiet queue still crosses the due-soon boundary, and
unrelated provider results cannot reset the process depth.

---
Fleet candidate `20261125T230256Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `2cb24ed789042c6155bb4e287b9efacd9446226b` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-26 00:08:50 +00:00
pulse-triage[bot]
82768e9a0d Clear poll dead letters when collection resumes
Retire the connection's terminal record and its gauge when a later scheduled result succeeds. Keep a partial-read error visible and leave other failures, breaker admission and polling cadence alone. A recorded dead-letter retry time is not an active-queue deadline.

Refs #5089.

Change-source: pulse-maintainer
2026-11-25 23:53:04 +00:00
pulse-triage[bot]
1bb1e24470 Read dead-letter records beside current poll results (#5175)
Stop the adaptive polling guide promising a retry after 30 minutes. Use
the saved Scheduler Health timestamps to distinguish a past failure from
a later successful poll, without retrying or changing a connection.

---
Fleet candidate `20261125T224958Z-product-intelligence` from the
`product-intelligence` lane. Reviewed tip
`82225d2ae9a646ea281c53f7085a090eb8cd31f9` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-25 23:34:43 +00:00
pulse-triage[bot]
2cb24ed789 Measure scheduler queue gauges at scrape time
Read the active queues instead of publishing heap scans from poll workers. A quiet queue still crosses the due-soon boundary, and unrelated provider results cannot reset the process depth.

Change-source: pulse-maintainer
2026-11-25 23:15:02 +00:00
pulse-triage[bot]
82225d2ae9 Read dead-letter records beside current poll results
Stop the adaptive polling guide promising a retry after 30 minutes. Use the saved Scheduler Health timestamps to distinguish a past failure from a later successful poll, without retrying or changing a connection.

Change-source: pulse-maintainer
2026-11-25 23:00:49 +00:00
pulse-triage[bot]
c3ea562a8d Include Docker reports in the Prometheus progress check
Filter the Docker and Podman report route alongside registration and
machine reports. Keep the counters separate so a machine report cannot
make an unchanged Docker stream look current.

Refs: #5089
Contract-Neutral: Repository-only operator guidance for an existing metric and its existing labels. No route, collector, runtime, release or in-app Help changes.
Change-source: pulse-maintainer
2026-11-25 22:32:13 +00:00
pulse-triage[bot]
f62511baab Distinguish a breaker retry deadline from a recorded gauge (#5152)
A responsive metrics scrape can keep showing time remaining after an
open
breaker could let a retry through. Show how to check the saved absolute
deadline and whether a result actually returned, without changing
polling.
Keep the adaptive guide accurate for both poll-age exporters.

Refs: #5089
Contract-Neutral: Explains existing metrics and scheduler snapshot
fields without changing polling, alerting, or API behaviour.

---
Fleet candidate `20261125T182352Z-product-intelligence` from the
`product-intelligence` lane. Reviewed tip
`eea51eee6e5c398fae50d5a566f970c1c9ddd2e2` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-25 19:04:31 +00:00
pulse-triage[bot]
9f6ffcbd84 Explain how live readings differ from Trends and drawer History (#5150)
The old data-flow guide described client-side sampling and a fixed
memory/store cutoff. Show operators which view to check when a chart and
a fresh reading disagree, and link that distinction from the scheduler
poll comparison.

Contract-Neutral: Repository-only documentation of existing chart
sources and poll diagnostics; no runtime, shipped Help, API contract, or
release-control change.

---
Fleet candidate `20261125T175328Z-product-intelligence` from the
`product-intelligence` lane. Reviewed tip
`96b475d849cb756916213327802b6e1de8bf3dac` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-25 18:35:22 +00:00
pulse-triage[bot]
eea51eee6e Distinguish a breaker retry deadline from a recorded gauge
A responsive metrics scrape can keep showing time remaining after an open
breaker could let a retry through. Show how to check the saved absolute
deadline and whether a result actually returned, without changing polling.
Keep the adaptive guide accurate for both poll-age exporters.

Refs: #5089
Contract-Neutral: Explains existing metrics and scheduler snapshot fields without changing polling, alerting, or API behaviour.
Change-source: pulse-maintainer
2026-11-25 18:34:38 +00:00
pulse-triage[bot]
2c613aa702 Keep Prometheus poll staleness aging between results (#5144)
Calculate connection and node poll age each time Prometheus scrapes.
Keep no result distinct from a failed first result, and keep failed
polls from refreshing the last-success timestamp or changing scheduler
policy.

---
Fleet candidate `20261125T170023Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `93a137a5ab7fe4999255167cb9c4dc242d466b91` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-25 18:03:29 +00:00
pulse-triage[bot]
96b475d849 Explain how live readings differ from Trends and drawer History
The old data-flow guide described client-side sampling and a fixed memory/store cutoff. Show operators which view to check when a chart and a fresh reading disagree, and link that distinction from the scheduler poll comparison.

Contract-Neutral: Repository-only documentation of existing chart sources and poll diagnostics; no runtime, shipped Help, API contract, or release-control change.
Change-source: pulse-maintainer
2026-11-25 18:02:40 +00:00
pulse-triage[bot]
999560778f Distinguish overdue polls from the scheduler queue (#5146)
The two-pass planning limit does not cap concurrent provider polls. Help
operators distinguish queued, claimed and returned work and check fresh
per-connection results within one run after a cadence change.

Contract-Neutral: Corrects two repository-only operator guides for
existing scheduler behaviour. No runtime, API, configuration, or
rendered Help change.

---
Fleet candidate `20261125T172540Z-product-intelligence` from the
`product-intelligence` lane. Reviewed tip
`f8ffd9d322d8c1106237d6a53918fde9671beed9` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-25 18:00:47 +00:00
pulse-triage[bot]
f8ffd9d322 Distinguish overdue polls from the scheduler queue
The two-pass planning limit does not cap concurrent provider polls. Help operators distinguish queued, claimed and returned work and check fresh per-connection results within one run after a cadence change.

Contract-Neutral: Corrects two repository-only operator guides for existing scheduler behaviour. No runtime, API, configuration, or rendered Help change.
Change-source: pulse-maintainer
2026-11-25 17:34:26 +00:00
pulse-triage[bot]
93a137a5ab Keep Prometheus poll staleness aging between results
Calculate connection and node poll age each time Prometheus scrapes. Keep no result distinct from a failed first result, and keep failed polls from refreshing the last-success timestamp or changing scheduler policy.

Change-source: pulse-maintainer
2026-11-25 17:21:52 +00:00
pulse-triage[bot]
130991e040 Show how to check an open threshold alert for progress
A quiet alert counter and an unchanged breach time can hide continued evaluation. Document the read-only check for the same active threshold alert, and distinguish missing evidence from a stall or a delivery result.

Contract-Neutral: Documents existing alert read semantics in a repository-only guide. No runtime, API, or rendered Help change.
Change-source: pulse-maintainer
2026-11-25 17:07:43 +00:00
pulse-triage[bot]
d82fb4c86b Show whether ordinary agent requests finish in Prometheus
When health and metrics still answer during a poll gap, the existing HTTP counter separates a returning Proxmox registration check from a returning telemetry report. Document the watched routes and status and target boundaries without treating an HTTP completion as a fresh reading or completed alert rule. Use ordinary traffic only.

Refs: #5089
Contract-Neutral: Repository-only operator guidance for existing poll and HTTP counters. No metrics, route, runtime, release or shipped Help contract changes.
Change-source: pulse-maintainer
2026-11-25 16:04:42 +00:00
pulse-triage[bot]
bd144c5afc Distinguish Pulse scrape targets from monitored connections (#5129)
Explain the default Prometheus instance label collision and show how to
compare scrape availability with poll results for one connection. Keep
failed scrapes, peer results and lack of a new poll outcome distinct.

Contract-Neutral: Documents existing exporter labels and standard
Prometheus scrape behaviour without changing the monitoring contract.

---
Fleet candidate `20261125T131012Z-product-intelligence` from the
`product-intelligence` lane. Reviewed tip
`3d606290f39f87ff9dbe7dc8d13909feb5d9a384` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-25 13:54:51 +00:00
pulse-triage[bot]
3d606290f3 Distinguish Pulse scrape targets from monitored connections
Explain the default Prometheus instance label collision and show how to compare scrape availability with poll results for one connection. Keep failed scrapes, peer results and lack of a new poll outcome distinct.

Contract-Neutral: Documents existing exporter labels and standard Prometheus scrape behaviour without changing the monitoring contract.
Change-source: pulse-maintainer
2026-11-25 13:27:08 +00:00
pulse-triage[bot]
1456b79dea Explain fixed-interval polling in scheduler diagnostics
Treat enabled as the adaptive timing flag, not a test of whether polling
is running. Add a local comparison of recorded results that distinguishes
completed polls, continuing errors and no new result without sharing the
raw snapshot or restarting Pulse.

Refs: #5089
Contract-Neutral: Documents existing poll and scheduler-health behavior without changing scheduling, response fields, access, or alert evaluation.
Change-source: pulse-maintainer
2026-11-25 12:42:44 +00:00
pulse-triage[bot]
ce863e8d07 Expose overdue claimed polls in the scheduler metrics
Measure time past the poll budget independently for work held before a shared worker slot and for work still occupying a worker. Keep the observation separate from outcomes, retry backoff, health and notifications.

Refs #5089

Change-source: pulse-maintainer
2026-11-25 05:16:52 +00:00
pulse-triage[bot]
6580573ba2 Show whether overdue polls are still returning errors
After a successful scrape with old readings, compare the existing per-source result counters over the expected polling window. Distinguish failures that still complete from stopped progress without mistaking missing samples, idle or backoff for a stall.

Contract-Neutral: Explain existing exporter metrics without changing polling, alerting, or the metric contract.
Change-source: pulse-maintainer
2026-11-24 21:25:14 +00:00
rcourtman
6be44e133c Bound HTTP metrics, request bodies, JWTs, suppression, and downloads
Use registered ServeMux route patterns and fixed HTTP method labels in metrics, cap JSON request bodies across operator-state, maintenance review, resource links, alerts, auto-register, and AI handlers, bound handoff and purchase-return JWTs before parsing, bound TrueNAS topology parsing and JSON-RPC WebSocket message size, cap alert suppression reasons at 240 characters, and share bounded in-memory buffers with write deadlines for GitHub-proxied agent downloads.

Contract-Neutral: Security fixes bounding memory usage and label cardinality against OOM and DoS
2026-11-24 14:20:36 +00:00
pulse-triage[bot]
30e29467ac Distinguish overdue polls from a working Prometheus scrape
The staleness gauges update only when a result is recorded. Show how to use the last-success timestamp without treating scrape success, missing series, or partial collection as recovery.

Contract-Neutral: Clarify existing exporter readings in operator documentation; no metric or polling changes.
Change-source: pulse-maintainer
2026-11-23 21:27:13 +00:00
rcourtman
8a99b16d6c docs: correct customer docs that drifted from the source
Audited the customer-facing docs against the code: about 5,200 concrete
claims (env vars, endpoints, flags, defaults, ports, UI labels), plus every
environment variable the code reads. Each discrepancy was re-verified
against the source before editing, and every edit was reviewed again.

What users would have hit following the old text:
- UI paths and labels that no longer exist (Settings > Relay, Platform
  connections, Access Control, SSO Providers, Create Organization) and
  Patrol mode names (now Ask first, Safe auto-fix, Autopilot).
- Wrong values and behaviour: LOG_MAX_AGE=0 does not disable cleanup,
  Patrol evidence budget is 10 calls and 12 turns, ALLOW_UNPROTECTED_EXPORT
  covers private networks too, PULSE_AUDIT_ASYNC defaults on.
- Agent install: install.sh ignores PULSE_ENABLE_KUBERNETES and
  PULSE_ENABLE_PROXMOX, rejects --disable-auto-update, and the token
  fallback lives in the state directory.
- API: audit endpoints answer 402 on Community, onboarding QR is GET,
  type=container is rejected, several routes need admin plus a scope.
- HTTP_REDIRECT_PORT was not documented anywhere.

Docs are mirrored under frontend-modern/public/docs, so each change is
applied to both copies. The tests that pinned the old wording (including
three that asserted claims the code contradicts) are updated alongside.

Contract-Neutral: Customer docs corrected to match shipped behaviour; no runtime, API or contract change.
2026-10-11 13:59:56 +01:00
rcourtman
dc93d0adea Judge adaptive-polling freshness by the scheduler's cadence
When adaptive polling is enabled (ADAPTIVE_POLLING_ENABLED or system.json;
off by default, no UI), the scheduler picks PVE, PBS and PMG intervals
itself and never reads the per-platform ones. A healthy instance's
staleness score is near zero after every success, so its cadence stretches
toward AdaptivePollingMaxInterval (5 minutes by default). Resource
freshness was still derived from the per-platform intervals, with floors of
60s for Proxmox and 120s for PBS and PMG, so healthy rows read stale for
much of every cycle. A live stack with a fake PMG polled 3.5 to 4.3
minutes apart and the row sat degraded with telemetry_stale from two
minutes after each poll until the next one. The PVE node offline grace and
the node temperature carry window derive from the same cadence and lapsed
between polls too.

Monitor.resourcePollIntervals now judges all three sources by the
scheduler's own maximum interval, which bounds every interval it selects.
ResourceStaleThresholdsForConfig reads the same normalized bounds through
a normalizedSchedulerConfig shared with NewAdaptiveScheduler, so callers
without a monitor agree with the one that has it. The same live stack
stayed online for 14 minutes. Fixed-cadence behaviour is unchanged.
Per-instance planned intervals were not used: they are jittered and shrink
as a poll runs late, so a per-source threshold built on them would flap.

The contract note this replaces said freshness keeps deriving from the
per-platform intervals; the user doc now says what adaptive polling does to
freshness and offline detection. The cost is a longer node hold in
adaptive mode (10 minutes with the defaults). A valid /cluster/status
report that a member is offline still applies immediately.
2026-10-10 10:39:42 +01:00
pulse-triage[bot]
ec5c96a290 Keep scheduler diagnostics private and failure-aware
Use one bounded, authenticated snapshot and local queries instead of secret-bearing argv and repeated requests. Preserve configuration precedence and rollback state, and judge successful polls rather than a universal queue-depth threshold. Exercise copied commands with HTTP, transport, schema and credential controls.

Contract-Neutral: Documentation and copied-command tests only; scheduler runtime and API contracts are unchanged.
Change-source: pulse-maintainer
2026-10-03 13:13:21 +01:00
rcourtman
83672a00a8 Harden Operational Trust rollout contracts 2026-07-19 15:11:02 +01:00
rcourtman
c0ac0762da Fix security scan findings
Harden proxy-auth admin role checks, metrics listener exposure, Teams webhook escaping, and dependency lockfiles.
2026-07-01 09:55:35 +01:00
rcourtman
778a2577b6 feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
rcourtman
ee0e89871d fix: reduce metrics memory 86x by reverting buffer and adding LTTB downsampling
The in-memory metrics buffer was changed from 1000 to 86400 points per
metric to support 30-day sparklines, but this pre-allocated ~18 MB per
guest (7 slices × 86400 × 32 bytes). With 50 guests that's 920 MB —
explaining why users needed to double their LXC memory after upgrading
to 5.1.0.

- Revert in-memory buffer to 1000 points / 24h retention
- Remove eager slice pre-allocation (use append growth instead)
- Add LTTB (Largest Triangle Three Buckets) downsampling algorithm
- Chart endpoints now use a two-tier strategy: in-memory for ranges
  ≤ 2h, SQLite persistent store + LTTB for longer ranges
- Reduce frontend ring buffer from 86400 to 2000 points

Related to #1190
2026-02-04 19:49:52 +00:00
rcourtman
80cdfab536 Update metrics docs with canonical resourceType values
- Use canonical types (vm, container, dockerContainer) instead of
  aliases (guest, docker) in examples
- Document that guest/docker aliases are accepted by the API
- Clarify persistent store type mapping in data flow doc
2026-02-01 22:26:04 +00:00
rcourtman
ad4acf1222 chore: add frontend utilities and metrics documentation
- Add useResizeObserver and useTooltip React hooks
- Add utility functions for anomaly colors, error extraction, text width, and threshold colors
- Add METRICS_DATA_FLOW.md documentation
- Ignore SQLite temp files (*.db-shm, *.db-wal)
2026-01-22 13:48:41 +00:00
rcourtman
0ca6001bad docs: update documentation after sensor proxy deprecation
Update docs to reflect the simplified temperature monitoring architecture:
- Remove references to pulse-sensor-proxy throughout
- Update TEMPERATURE_MONITORING.md to focus on unified agent approach
- Update CONFIGURATION.md, DEPLOYMENT_MODELS.md, FAQ.md
- Remove SECURITY_CHANGELOG.md (proxy-specific security notes)
- Clarify current recommended setup in various guides
2026-01-21 12:00:59 +00:00
rcourtman
ee63d438cc docs: standardize markdown syntax and remove deprecated sensor-proxy docs 2026-01-20 09:43:49 +00:00
rcourtman
3f0808e9f9 docs: comprehensive core and Pro documentation overhaul
- Major updates to README.md and docs/README.md for Pulse v5
- Added technical deep-dives for Pulse Pro (docs/PULSE_PRO.md) and AI Patrol (docs/AI.md)
- Updated Prometheus metrics documentation and Helm schema for metrics separation
- Refreshed security, installation, and deployment documentation for unified agent models
- Cleaned up legacy summary files
2026-01-07 17:38:27 +00:00
rcourtman
dcdbee3c5c feat: Add in-app help system with HelpIcon component
Add contextual help icons throughout the UI to improve feature
discoverability. Users can click (?) icons to see explanations
with examples for settings they might not understand.

- HelpIcon component with click-to-open popover
- Centralized help content registry in /content/help/
- FeatureTip component for dismissible contextual tips
- Help added to: alert delay, AI endpoints, update channel
2026-01-07 09:22:23 +00:00
rcourtman
773376fa5d docs: add deep dive summaries for notifications, discovery, and agent exec 2026-01-02 11:18:28 +00:00
rcourtman
2b48b0a459 feat: add --kube-include-all-deployments flag for Kubernetes agent
Adds IncludeAllDeployments option to show all deployments, not just
problem ones (where replicas don't match desired). This provides parity
with the existing --kube-include-all-pods flag.

- Add IncludeAllDeployments to kubernetesagent.Config
- Add --kube-include-all-deployments flag and PULSE_KUBE_INCLUDE_ALL_DEPLOYMENTS env var
- Update collectDeployments to respect the new flag
- Add test for IncludeAllDeployments functionality
- Update UNIFIED_AGENT.md documentation

Addresses feedback from PR #855
2025-12-18 20:58:30 +00:00
courtmanr@gmail.com
fd39196166 refactor: finalize documentation overhaul
- Refactor specialized docs for conciseness and clarity
- Rename files to UPPER_CASE.md convention
- Verify accuracy against codebase
- Fix broken links
2025-11-25 00:45:20 +00:00
rcourtman
6eb1a10d9b Refactor: Code cleanup and localStorage consolidation
This commit includes comprehensive codebase cleanup and refactoring:

## Code Cleanup
- Remove dead TypeScript code (types/monitoring.ts - 194 lines duplicate)
- Remove unused Go functions (GetClusterNodes, MigratePassword, GetClusterHealthInfo)
- Clean up commented-out code blocks across multiple files
- Remove unused TypeScript exports (helpTextClass, private tag color helpers)
- Delete obsolete test files and components

## localStorage Consolidation
- Centralize all storage keys into STORAGE_KEYS constant
- Update 5 files to use centralized keys:
  * utils/apiClient.ts (AUTH, LEGACY_TOKEN)
  * components/Dashboard/Dashboard.tsx (GUEST_METADATA)
  * components/Docker/DockerHosts.tsx (DOCKER_METADATA)
  * App.tsx (PLATFORMS_SEEN)
  * stores/updates.ts (UPDATES)
- Benefits: Single source of truth, prevents typos, better maintainability

## Previous Work Committed
- Docker monitoring improvements and disk metrics
- Security enhancements and setup fixes
- API refactoring and cleanup
- Documentation updates
- Build system improvements

## Testing
- All frontend tests pass (29 tests)
- All Go tests pass (15 packages)
- Production build successful
- Zero breaking changes

Total: 186 files changed, 5825 insertions(+), 11602 deletions(-)
2025-11-04 21:50:46 +00:00
rcourtman
e0396c1362 docs: update documentation for diagnostics improvements
Add comprehensive operator documentation for the new observability features
introduced in the previous commit.

**New Documentation:**
- docs/monitoring/PROMETHEUS_METRICS.md - Complete reference for all 18 new
  Prometheus metrics with alert suggestions

**Updated Documentation:**
- docs/API.md - Document X-Request-ID and X-Diagnostics-Cached-At headers,
  explain diagnostics endpoint caching behavior
- docs/TROUBLESHOOTING.md - Add section on correlating API calls with logs
  using request IDs
- docs/operations/ADAPTIVE_POLLING_ROLLOUT.md - Update monitoring checklists
  with new per-node and scheduler metrics
- docs/CONFIGURATION.md - Clarify LOG_FILE dual-output behavior and rotation
  defaults

These updates ensure operators understand:
- How to set up monitoring/alerting for new metrics
- How to configure file logging with rotation
- How to troubleshoot using request correlation
- What metrics are available for dashboards

Related to: 495e6c794 (feat: comprehensive diagnostics improvements)
2025-10-21 12:45:19 +00:00
rcourtman
2f43d67af9 docs: simplify Mermaid diagrams for better readability
The previous diagrams were too complex and overwhelming. Simplified
all diagrams to show core concepts clearly:

- Adaptive polling: reduced to basic scheduler→queue→workers flow
- Temperature proxy: simplified to 3-box trust boundary view
- Sensor proxy sequence: simplified to essential request flow
- Webhook pipeline: reduced to template→send→retry flow
- Script library: simplified to code→test→bundle→dist flow

Fixed parsing error in temperature proxy diagram (parentheses in
edge label causing render failure).

Diagrams should clarify architecture, not recreate implementation.
2025-10-21 10:50:40 +00:00
rcourtman
10d52244f8 docs: remove internal 'Phase 2' reference from adaptive polling docs
Replace internal development phase reference with clear description
of what the adaptive polling scheduler does. 'Phase 2' is internal
jargon that provides no value to users.
2025-10-21 10:45:46 +00:00
rcourtman
85ffe10aed docs: add Mermaid diagrams to improve visual documentation
Enhance documentation with six Mermaid diagrams to better explain
complex system implementations:

- Adaptive polling lifecycle flowchart showing enqueue→execute→feedback
  cycle with scheduler, priority queue, and worker interactions
- Circuit breaker state machine diagram illustrating Closed↔Open↔Half-open
  transitions with triggers and recovery paths
- Temperature proxy architecture diagram highlighting trust boundaries,
  security controls, and data flow between host/container/cluster
- Sensor proxy request flow sequence diagram showing auth, rate limiting,
  validation, and SSH execution pipeline
- Alert webhook pipeline flowchart detailing template resolution, URL
  rendering, HTTP dispatch, and retry logic
- Script library workflow diagram illustrating dev→test→bundle→distribute
  lifecycle emphasizing modular design

These visualizations make it easier for operators and contributors to
understand Pulse's sophisticated architectural patterns.
2025-10-21 10:40:33 +00:00
rcourtman
fd0a4f2b0a docs: update documentation for v4.24.0 features
Updates documentation to reflect features implemented in recent commits:

**Security & API Enhancements:**
- Rate limit headers (X-RateLimit-Limit, X-RateLimit-Remaining, Retry-After)
- Audit logging for rollback actions and scheduler health
- Runtime logging configuration tracking

**Scheduler Health API:**
- Document new v4.24.0 endpoint features
- Per-instance circuit breaker status
- Dead-letter queue tracking
- Staleness metrics
- Enhanced response format with backward compatibility

**Version & Health Endpoints:**
- Updated /api/version response fields
- Optional health endpoint fields
- Deployment type and update availability

**Configuration & Installation:**
- HTTP config fetch via PULSE_INIT_CONFIG_URL
- Updated environment variable documentation
- Enhanced FAQ entries

**Monitoring & Operations:**
- Adaptive polling architecture documentation
- Rollback procedure references
- Production deployment guidance

All documentation changes align with implemented features from commits:
- 656ae0d25 (PMG test fix)
- dec85a4ef (PBS/PMG stubs + HTTP config)
- Earlier commits: scheduler health API, rollback, rate limiting
2025-10-20 16:08:10 +00:00