perf-sentinel
by robintra
Lightweight polyglot performance anti-pattern detector for distributed traces. Detects N+1 queries, redundant calls, chatty services, connection pool saturation, serialized parallelizable calls, fanout. Scores I/O intensity per endpoint (GreenOps).
About this chart
perf-sentinel Helm chart
Deploy perf-sentinel in a
Kubernetes cluster as a Deployment, DaemonSet or StatefulSet, behind
a ClusterIP Service exposing OTLP gRPC (4317) and OTLP HTTP +
/metrics + /api/* (4318).
perf-sentinel is a lightweight, polyglot performance anti-pattern detector
for distributed traces. It detects N+1 SQL, N+1 HTTP, redundant queries,
chatty services, connection pool saturation, serialized but parallelizable
calls and excessive fanout. It also scores I/O intensity per endpoint
(GreenOps) and emits SCI v1.0-aligned CO2 estimates.
Chart at a glance
| Key | Default | Notes |
|---|---|---|
image.repository | ghcr.io/institut-du-numerique-responsable/perf-sentinel | Published on GHCR. |
image.tag | "" (falls back to appVersion) | Pin explicitly in production. |
workload.kind | Deployment | DaemonSet and StatefulSet are opt-in. |
workload.daemonset.spanRoutingByTraceId | false | Required to be true for kind: DaemonSet, else the render fails. Asserts an upstream collector routes by trace ID. A plain Service splits traces and silently degrades detection. |
workload.replicas | 1 | Per-trace state lives in memory, prefer vertical scaling first. |
service.type | ClusterIP | Do not switch to NodePort or LoadBalancer without a gateway. |
ingress.enabled | false | Publishes an API with no embedded IAM. Put an SSO proxy or controller auth in front before enabling. |
serviceMonitor.enabled | false | Flip on when the Prometheus Operator is installed. |
networkPolicy.enabled | false | Fail-closed when enabled without selectors. ingress.otlpGrpc and ingress.http open one port each. |
[daemon] environment | "staging" (via config.toml) | Stamps every finding with a confidence tag consumed by downstream tooling (perf-lint, planned). |
Install from a local checkout
Installing from a local checkout is useful when iterating on a values
file or on the chart templates. For the OCI install path (the default
for most users), see
docs/HELM-DEPLOYMENT.md
or the Artifact Hub badge at the top of this page.
git clone https://github.com/Institut-du-Numerique-Responsable/perf-sentinel.git
cd perf-sentinel
helm install perf-sentinel ./charts/perf-sentinel \
--namespace observability --create-namespace
For the end-to-end topology (services -> OTel Collector -> perf-sentinel +
Tempo), see
examples/helm/.
Documentation
Full guide lives in
docs/HELM-DEPLOYMENT.md.
Configuration reference for the embedded .perf-sentinel.toml is in
docs/CONFIGURATION.md.
Deploy perf-sentinel with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has perf-sentinel on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartperf-sentinel is pinned at v0.50.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply