Fluxheim exports Prometheus metrics and OTLP/HTTP metrics and traces. Grafana and SigNoz are optional consumers, not dependencies of the webserver. These dashboards observe Fluxheim; they do not administer it. Database queries and application-internal spans require instrumentation in the upstream application.
You do not need to install every backend. Start with the signal you need:
| Need | Fluxheim output | Reader/storage/UI |
|---|---|---|
| Request rates, latency and health | HTTP GET /metrics |
Prometheus scrapes; Grafana displays Prometheus data |
| Metrics sent to a backend | OTLP/HTTP JSON metrics | Collector receives and forwards to Prometheus-compatible storage or SigNoz |
| Request/attempt traces | Sampled OTLP/HTTP JSON spans | Collector forwards to Jaeger or SigNoz |
| Search logs and link them to traces | JSON log file | Trusted local Collector filelog reader parses and forwards to a log backend |
| Notifications | Prometheus rule evaluation | Prometheus sends firing alerts to a separately configured Alertmanager/notification system |
Grafana is not the metrics database, Jaeger is not a metrics scraper, and a Collector alone does not supply durable storage. Fluxheim does not send native OTLP logs. A trace collector can be healthy while no traces arrive because roots generated by Fluxheim are unsampled; see tracing trust and sampling.
The disposable test intentionally qualifies two paths independently:
Fluxheim /metrics --------> Prometheus job=fluxheim-scrape ---> Grafana
Fluxheim metrics OTLP ---> Collector Prometheus exporter ---> job=fluxheim-otlp
Fluxheim traces OTLP ----> Collector -----------------------> Jaeger
Fluxheim JSON file ------> Collector filelog ---------------> local evidence
Collector metrics/traces/logs ----> SigNoz ingester
ClickHouse / SigNoz
Do not sum the direct and OTLP copies of the same logical measurements. Select
one ingestion path per dashboard/alert query. The names in this diagram belong
to the integration harness; the operator example below deliberately uses the
single job name fluxheim expected by the shipped alert rules.
- Enable the loopback metrics listener and create a private bearer token using the complete metrics recipe.
- Adapt prometheus.yml for the
Prometheus host/network namespace. Its
127.0.0.1:9091is the address from Prometheus, not from a browser. A normal bridge-networked container cannot use that address to reach the host's loopback listener. - Install alerts.yml at the referenced
/etc/prometheus/fluxheim-alerts.ymland a protected collector-readable copy of the token at/run/secrets/fluxheim-metrics-token. - Validate using
promtool check config /etc/prometheus/prometheus.ymlin the actual deployment, then restart/reload Prometheus using its service procedure. - Check the target and query
up{job="fluxheim"}. A value of 1 means scraping succeeded, not that upstream applications, logging and export are healthy.
scrape_configs:
- job_name: fluxheim
metrics_path: /metrics
authorization:
type: Bearer
credentials_file: /run/secrets/fluxheim-metrics-token
static_configs:
- targets: ['127.0.0.1:9091']This is a fragment of the complete linked configuration. It contains no real credential. Keep the source Fluxheim token service-owned/private; give the Prometheus process only its required protected copy. Fluxheim token rotation requires restart/upgrade. Plain HTTP bearer authentication is not encryption: keep this same-host path private or use a separately secured TLS gateway.
For remote OTLP collection, use the HTTPS exporter example. Endpoint, CA and token options belong to Fluxheim; receiver authorization, onward TLS, storage, retention, backups and notifications belong to the Collector and backend. Do not deploy the generated test configurations unchanged.
On a Linux machine with rootless Podman, Python 3.11+, Node.js/npm and the Playwright browser dependencies installed:
npm ci --ignore-scripts --prefix tools/collector-browser
tools/collector-browser/node_modules/.bin/playwright install chromium
sh scripts/check_collectors.sh /tmp/fluxheim-collector-proofUse a new output directory below the repository's release-reports/ or /tmp
for each run. Linked directories and destinations outside those roots are
rejected before creation. Run-state directories are always created in /tmp,
independently of TMPDIR. On a supported Linux distribution,
playwright install --with-deps chromium can install missing system browser
libraries, but requires administrator privileges. The CI job uses Docker:
FLUXHEIM_CONTAINER_RUNTIME=docker \
sh scripts/check_collectors.sh /tmp/fluxheim-collector-proof-dockerAllow approximately 8 GiB available RAM, several CPU cores and 20 GiB free disk space for a cold image build, backend images and disposable data. The ClickHouse schema initialization can take several minutes. Each container is limited to two CPUs and 2 GiB; these are per-container limits, not a combined stack budget. This is an integration fixture, not a benchmark.
The script builds the production Debian container with
profile-observability,php-fpm. It does not mount a host-built executable.
Backend images are pinned by digest in
images.json. The candidate is
resolved to its immutable local image ID before running. A missing image,
browser, collector, dashboard, or expected observation fails the gate.
Before the stack starts, the pinned Prometheus promtool evaluates the shipped
alert-rule fixtures without
networking. These are initial operational alerts, not universal application SLOs.
Tested backend versions (immutable digests in images.json): Prometheus 3.15.1,
Grafana 13.2.4, Jaeger 2.22.0, Collector Contrib 0.163.2, SigNoz 0.148.0,
SigNoz Collector 0.144.15 and ClickHouse 25.12.5. Do not silently replace them
with latest and assume the dashboard/query proof still applies.
To retest an already-built candidate:
sh scripts/smoke_observability_local.sh --required-collectors \
--runtime podman --image YOUR_LOCAL_IMAGE \
--output /tmp/fluxheim-collector-retest--stack grafana is a narrower development check, not full Commit 10 or release
qualification. The release wrapper and CI always require both stacks. The old
smoke without --required-collectors remains a quick local check and can skip
external backends; its success does not replace this gate.
The test starts real PHP-FPM, HTTP and HTTPS origins, packaged Fluxheim,
Prometheus, an OpenTelemetry Collector, Jaeger, Grafana, ClickHouse, the SigNoz
ingester and SigNoz. It uses fresh databases, generated credentials and a
dedicated network namespace. Published ports bind only to 127.0.0.1 and are
chosen by the container engine. No production services, public CA or user data
are involved. Cleanup removes only containers created by this run and their
anonymous volumes. Image caches remain available for later runs.
The host generates all control files before starting any container. Only
individual read-only configuration, certificate and fixture files are mounted;
their parent directories are never exposed. Writable mounts are limited to
separate runtime log, collected-output, cache and process-state directories.
The Collector reads Fluxheim logs read-only and writes into its own output
directory. Browser credentials remain in an unmounted private directory and
are removed after the browser exits, including on failure.
The browser opens only browser.json in that private working directory, not a
command-line filename. Its no-follow reader requires a private, single-link
regular file owned by the current user and caps input at 64 KiB.
Host file creation is exclusive and no-follow. Host reads/appends and permission fault injection on guest-writable logs use validated regular-file descriptors, not a later pathname reopen or chmod. Symlinks, hard-linked evidence and special files are rejected. These controls prevent guest-planted paths from redirecting host operations; they do not replace the container engine's isolation or make this fixture a general-purpose hostile-code sandbox. The sink-failure check also compares the current log pathname's device/inode with its pinned handle around fault/recovery observations. Missing, replaced or unsafe leaves fail qualification, rather than treating an unchanged old inode as proof that logging did not resume. Permission changes remain handle-based. These are bounded observations, not continuous filesystem monitoring or independent proof against a deliberately deceptive candidate.
Checks include actual HTTP/HTTPS and PHP responses, cache misses and hits, untrusted upstream certificates, failed FastCGI connections, stored request counters and latency histograms, and structured events linked to stored traces. Direct Prometheus scraping and Collector-exported OTLP metrics use separate jobs, so one cannot accidentally substitute for the other. Collector outage must increase local export-failure counters while HTTP continues to work; recovery must store a newly generated trace. Log permission failure must be observable without stopping serving. Shutdown must finish successfully under traffic before the container's forced-kill deadline.
The Collector parses timestamps and severity, preserves trace/span IDs, and checks a separate multiline JSON parser fixture. The latter is deliberately synthetic; it is not evidence that Fluxheim emits arbitrary multiline messages. Credential, cookie and query canaries must not occur in captured telemetry.
Successful evidence consists of summary.json and dashboard screenshots.
Failures retain private diagnostic files with generated password/canary values
redacted. Treat those diagnostics as local troubleshooting data: do not publish
raw container logs or temporary credential files. CI uploads only successful
summary/screenshots, not failure logs.
- Configure a Prometheus data source that scrapes Fluxheim's protected metrics listener. Keep it private and configure its bearer token when enabled.
- Import grafana-dashboard.json.
- Select the Prometheus data source, scrape job and instance. The configured vhost filter applies only to cache, PHP and load-balancer panels; global request and connection counters deliberately have no vhost label.
- Add a Jaeger data source for the trace backend receiving Fluxheim's OTLP
spans. Find an access event's
correlation.trace_idin Jaeger and match itscorrelation.span_idto the server span, not merely to any trace at that time.
The dashboard UID is fluxheim-operations-v1. Preserve it when provisioning or
upgrading. Data-source credentials and URLs are not embedded in the dashboard.
Missing measurements mean disabled, unavailable, or no observations; they are
not converted to healthy zero values. TLS panels cover handshakes, not certificate
expiry. ACME, load-balancer and admin/reload activity can be absent when unused.
Import signoz-dashboard.json
into the tested self-hosted SigNoz dashboard API/UI. This is its v6 Perses
dashboard format, not a Grafana dashboard. Set service to the OTLP
service.name configured in Fluxheim; the fixture uses
fluxheim-collector-proof. Set vhost to a configured resource name or .*.
The SigNoz file uses OTLP histogram .bucket and .count component names,
not Prometheus _bucket / _count. See the upstream
PromQL UTF-8 syntax guide.
New installations may answer instant queries before the first minute-aligned
chart bucket has data; the gate waits for stored range-query observations too,
including two finite gauge samples so the browser can verify a plotted line.
Send metrics and traces through a Collector to the SigNoz ingester. For optional
logs, use the Collector filelog receiver against Fluxheim's JSON file. Parse
timestamp_unix_nanos as an integer epoch in nanoseconds, level as severity,
and correlation.trace_id / correlation.span_id into the OTLP log trace/span
fields. Legacy diagnostics use RFC3339 timestamp. Do not use ingest time as a
substitute for event time. Escaped newlines remain part of the JSON record.
SigNoz can then navigate from a log's trace ID to the same stored trace.
The gate also opens backend trace pages using links derived from captured
events. It does not add a native log viewer to Fluxheim or qualify a Loki data
source. This disposable Collector has no persistent filelog cursor: restarting
it can reread records. Configure Collector storage/retention for production;
neither retries nor this fixture promise exactly-once delivery.
Fluxheim does not export native OTLP logs in this release. Log files and rotated
replacements must remain confidential (0600 on Unix). Run a trusted local log
reader with appropriate identity/access; do not change files to 0640 or 0644
to accommodate a collector. Fluxheim intentionally rejects those permissions.
See logging for lifecycle and platform details.
Both files contain 17 panels generated from the same templates. Rate panels use a fixed one-minute window, not the whole visible time range. They need multiple samples; a scrape interval near or above one minute can produce no usable rate. Adjust queries deliberately for your scrape interval. Counts are process-lifetime observations and reset on restart unless described as rates.
| Panel | Meaning / interpretation |
|---|---|
| Requests / second | Sum of logical HTTP completion rates, not upstream attempt count |
| HTTP 5xx / second | Completed observations with 5xx status, not all transport failures |
| Request p95 seconds | Histogram estimate; preserves le when combining buckets, not an average of per-instance quantiles |
| Active requests | Instantaneous in-flight requests; short requests may always finish between scrapes |
| Active connections | Admitted connection tasks; not HTTP/2 stream count |
| Upstream attempts / second | Rates split by outcome; retries can exceed logical request rate |
| Failures by reason | Cumulative owner observations; several owners can report one incident |
| Cache operations / second | Histogram observation rate by phase; different phases can describe the same request |
| PHP requests / second | Native PHP handler requests, not PHP-FPM worker count or database queries |
| TLS handshakes | Cumulative outcomes, not certificate expiration or current sessions |
| ACME events (when enabled) | Bounded lifecycle event totals; an idle/absent producer can have no series |
| Exporter failures | Local fluxheim_otlp_failed_total; requires direct scraping, see the gap below |
| Connection admission | Cumulative accepted/rejected connection observations |
| Admin operations / reloads | Mutation outcome totals, not unique humans or durable audit records |
| Log sink errors | Cumulative worker write errors; zero can be normal, but worker state must also be checked |
| Metric cardinality overflow | Cumulative observations coalesced/discarded because identity/series budgets were exhausted |
| Load balancer events (when enabled) | Selection/retry/ejection events, not complete active-health inventory |
Grafana's job selector separates ingestion paths; its instance selector can
combine several processes. The vhost selector applies only to cache/PHP/LB
queries, not global traffic. SigNoz's service selector can combine every process
using that service.name; this file has no per-instance selector. A service-wide
total must not be mistaken for a particular server. Vhost inputs are regex
filters on configured names, not HTTP Host values. ACME/LB event panels exclude
the reserved overflow tuple, so inspect the separate overflow panel before
treating dimensional totals as complete.
Current limitation: the shipped SigNoz Exporter failures panel
queries a local-only health family that Fluxheim does not include in metric OTLP
payloads. Grafana has the same limitation when job=fluxheim-otlp is selected.
Those panels are unavailable through that path, even while export failures occur.
Select the direct scrape job to inspect it in Grafana. An OTLP-only deployment
needs separate monitoring of the exporter itself; delivery failure cannot be
reliably reported through the same failed path. The planned correction must
make dashboards signal-path-aware without silently inserting healthy zeros or
creating exporter feedback loops. An empty successful backend query is not
proof that a panel has data.
The five shipped rules are initial
operational examples, not complete coverage or application SLOs. They select
exactly job="fluxheim". Renaming your scrape job without adapting the rules
can yield a missing-job warning while real targets are ignored. The integration
test's fluxheim-scrape/fluxheim-otlp jobs are intentionally different.
| Alert | Expression boundary | Timing / action |
|---|---|---|
FluxheimScrapeDown |
A present target has up == 0 |
Critical after 2m continuously failing; check process, routing, credentials and scrape timeout |
FluxheimScrapeMissing |
No up series at all for the job |
Warning after 5m; check discovery/job spelling. Does not detect one removed target while another remains. |
FluxheimLogSinkFailure |
Per-instance sum of new sink errors over 5m | Warning at evaluation; inspect private log path/permissions, disk and worker state |
FluxheimMetricCardinalityOverflow |
New overflow observations over 5m | Warning at evaluation; reduce identity churn/oversized configured names and inspect bounded-series usage |
FluxheimOtlpLoss |
New locally scraped dropped batches over 5m, by signal | Warning at evaluation; check collector reachability, rejection, queue/byte budget and shutdown loss |
Only the first two rules use for; the remaining rules can fire on a single
evaluation of an increase. Counter reset handling belongs to increase, not
subtraction of arbitrary dashboard samples. There are no notification routes,
receivers or Alertmanager addresses in the example: displaying a firing rule
does not send email/page anybody. Configure and test that separately.
Current limitation: FluxheimLogSinkFailure can clear once its
five-minute increase ages out even when a worker remains dead. An already-dead
worker first observed with a flat error counter may never trigger it. This
rule detects new failures, not persistent logging availability. Inspect
fluxheim_log_dispatch_state{state="alive"} together with
state="available", expected lanes, configuration and scrape health. Do not
treat absence as a healthy zero or page intentionally absent pipelines.
the local follow-up will add sustained-state alert coverage with recovery/startup tests.
Other monitoring remains deployment work: expected target inventory, application error/latency SLOs, disk capacity, backend ingestion/storage health, notification delivery and audit durability. No single green Fluxheim panel establishes them.
Rule checks can be run without starting a backend:
promtool check rules examples/observability/alerts.yml
promtool test rules examples/observability/alerts-test.yml
promtool test rules examples/observability/alerts-contract-test.ymlThe last file deliberately characterizes the outstanding persistent-sink gap
and whole-job absence scope; it must change alongside the planned correction.
The live smoke_collector_guide.py check proves the direct-scrape/OTLP exporter
health distinction using real requests and a controlled failed/recovered receiver.
The generated fixtures in collector_configs.py and collector_signoz.py are deliberately single-host tests. Their plaintext OTLP endpoints are numeric loopback addresses inside the shared private namespace. Remote or private-network collectors require HTTPS; bearer tokens require HTTPS even on loopback. Do not copy these loopback exceptions to a remotely accessible production listener.
Do not publish the fixture's unauthenticated ClickHouse, Jaeger or Prometheus ports outside the host. The disposable credentials, test TLS keys, memory trace store and SQLite database are not a production deployment or retention policy. Logs and in-memory audit admission are not a durable, independently protected forensic journal. See logging.
Backend versions and immutable digests are locked together in images.json.
Update them deliberately from upstream release metadata, review migration and
dashboard/API compatibility, and run the entire required gate. Do not replace
digests with latest or treat a healthy login page as signal qualification.
Dashboard query definitions live in generate_observability_dashboards.py. After an intentional change, regenerate both JSON files and run the unit and live checks:
python3 scripts/generate_observability_dashboards.py
python3 scripts/test_collectors.py
python3 scripts/generate_observability_dashboards.py --checkThe Commit 10 evidence records tested versions, scope and remaining qualification. These container tests do not replace native macOS/Windows or extracted-release-profile tests in Commit 11. Tempo, Loki and hosted Grafana/SigNoz editions are not implicitly qualified by these results.