M04

Infrastructure and Logging

Operational observability, API activity, and cache/system diagnostics.

Admin-focused telemetry and operational controls to monitor entity activity, database cache statistics, system-level performance behavior, and vendor integration call traces.

ObservabilityDashboard.jsxtsx
import { SimpleChart, SankeyChart, ScatterChart, Notification } from '@cleen/cleen-components';
import { useObservability } from '@/hooks/useObservability';

export function ObservabilityDashboard() {
  const { errorRate, throughput, slowest, recent } = useObservability({ window: '24h' });

  return (
    <div className="obs-grid">
      <section>
        <h2>Error rate</h2>
        <SimpleChart data={errorRate} threshold={0.02} />
      </section>
      <section>
        <h2>Endpoint throughput</h2>
        <SankeyChart data={throughput} />
      </section>
      <section>
        <h2>Slowest endpoints (p95)</h2>
        <ScatterChart points={slowest} xKey="calls" yKey="p95Ms" />
      </section>
      <Notification tone="info">{recent.length} alerts in the last hour.</Notification>
    </div>
  );
}

Capabilities

  • DB cache statistics endpoint
  • Entity activity endpoint
  • System performance cache clear
  • Vendor call-log filtering
  • Overall statistics and operational insights

Benefits

  • Faster incident triage
  • Improved cache and performance confidence
  • Higher operational transparency

Flow of work

  1. 01Capture API and entity activity
  2. 02Aggregate cache and system metrics
  3. 03Review operational anomalies
  4. 04Apply cache/system remediation
  5. 05Re-validate system health

Subfeatures

  • DB cache statistics
  • Entity activity history
  • System performance cache clear
  • Vendor call log filter
  • Overall statistics
Source surfaces (technical reference)

Internal code areas in the licensed Full-Stack codebase that back this module.

  • ApiAdmin DB cache statistics
  • ApiAdmin all entity activity
  • ApiAdmin system performance cache clear
  • ApiAdmin vendor call log
In the stack

Where it lives. What it exposes.

A quick visual of how Infrastructure and Logging participates across the CleenUI stack, alongside the named operations it adds to the API surface.

M04 · architecture
Frontend
React · TailwindCSS · 60+ components
Telemetry dashboardCache stats viewerActivity logVendor call log
API
C# Web API · production-ready · role-aware
DB cache statsEntity activityPerformance cache clearVendor log filterOverall statistics
Database
AzureSQL · 300+ tables · 700+ procedures
ActivityLogsCacheStatsSystemMetricsVendorCallLogs
Async Services and Batch Jobs
WebJobs & Functions · queue-backed
Cache stats collectorTelemetry aggregatorVendor log harvester
All four layers ship together as the Full-Stack license. M04 blocks are highlighted.
API operations

Named operations on this surface

5
Try these in Postman
  • POSTDB cache statistics/admin/db-cache-statistics
  • POSTEntity activity history/admin/entity-activity-history
  • POSTSystem performance cache clear/admin/system-performance-cache-clear
  • POSTVendor call log filter/admin/vendor-call-log-filter
  • POSTOverall statistics/admin/overall-statistics

Each operation maps to an endpoint in the licensed C# Web API surface.