Observability
Migrated page, not yet verified against the current code. Treat values, paths and examples as indicative until this notice is removed.
A control system has to answer two kinds of questions about itself:
- Is it healthy? Is the node primary, are the driver channels online, is the historian keeping up, is the PLC scanning on time?
- What happened to this action? Why was this setpoint refused, who signed it, did it reach the PLC?
eaxScada and eaxPLC answer both with standard tools and with nothing extra to install. This page explains the design. The metric names, configuration keys and formats are in the references: eaxScada metrics, logs and System Health and eaxPLC runtime metrics.
Three outputs, one source
Section titled “Three outputs, one source”Each product keeps its figures in one place, and three outputs read it.
GET /metricsin the Prometheus text format. Plants that already run a monitoring system that reads this format scrape it like any other target. It is in every edition: a standard format is not a paid feature.- The System Health workspace in eaxScada Studio. Most edge sites do not run a monitoring stack, and many may not add a server. So the workspace is built in: it shows the same figures and keeps a short history in eaxScada’s own historian.
- The operational log, one structured log per product, readable by a person, a log collector or a SIEM (syslog).
Because the workspace and /metrics read the same counters, a figure on screen and the figure a scraper collects cannot disagree.
Metrics that cost the plant nothing
Section titled “Metrics that cost the plant nothing”Monitoring must never slow the control loop.
- Counters are atomic increments on paths that already run. Totals that a component already keeps are read only when someone asks (at scrape time).
- eaxPLC reads its scan statistics with atomic loads and never takes the lock its scan records with. A scrape adds no work to the scan.
- Labels are bounded: driver channel ids, alarm states and priorities, HA roles, route patterns. Never a tag name, a user name or a raw URL. An unbounded label would let one client grow the server’s memory.
Who may read them
Section titled “Who may read them”Health figures reveal a lot about a plant: which node is primary, how many sign-ins failed, which channels are down. So /metrics is never anonymous by default:
- an engineer or administrator session;
- or a read-only token made for the scraper, which opens
/metricsand nothing else; - or, if the site opts in, a collector on the same machine without credentials. A request relayed by a local proxy does not count as local.
The embedded NATS broker has its own monitoring port, which has no authentication. eaxScada keeps it on 127.0.0.1 and publishes its figures through the authenticated /metrics instead.
One logger, with request ids
Section titled “One logger, with request ids”Both products log through one structured logger (Go’s log/slog). Every line has a level, a component and the node; a line written while serving a request also has its request id.
- The id comes from the client’s
X-Request-IDheader when it sends a plain one, or is made by the server. It is returned in the response. - eaxScada passes it on to the PLC with the calls it makes for that request. eaxPLC logs under the same id.
- A command arriving on NATS carries its own id; its write-policy decision and log lines use it.
So one id follows an operator’s click from the HMI request through the write policy to the PLC’s log. The eaxScada log table stores it in its trace_id column; a later release adds OpenTelemetry tracing on this same path.
The logger removes secrets before any output sees them: passwords, tokens, signature tickets, NKey seeds and ?token= URL parameters, whether they appear as a field, in a message or in an error text.
Operational telemetry is not the audit trail
Section titled “Operational telemetry is not the audit trail”21 CFR Part 11 and IEC 62443 ask for an audit trail: who changed what, when, and why, in a record that cannot be altered without detection. eaxScada (Starter, Pro and Enterprise, in its own database) and eaxPLC keep one: a hash-chained trail, verifiable on demand.
Logs and metrics have another job (troubleshooting, capacity) and another lifetime (rotated after days). If they copied the audit content, a plant would have a second, unvalidated record of its GxP data, outside the validated system.
So the rule is: operational telemetry refers to audit entries by id and never duplicates them.
- A log line about a write says that it happened, its outcome and its audit sequence number (
audit_seq). It never repeats the old and new values, the reason or the signature. - Counters such as
eaxscada_tag_writes_totalcount outcomes. They match the audit rows one for one, so an auditor can reconcile them; the audit trail stays the record.
The built-in history
Section titled “The built-in history”The System Health workspace keeps a few days of history without any external database:
- every 10 s, eaxScada writes about 25 key figures to read-only tags under
System/Health/<node>/; - the historian stores them like any tag, in the edition’s own store;
- an hourly job deletes the points older than the retention (72 h by default), for these tags only.
The namespace is reserved: an operator, a script, a driver mapping or a NATS command cannot write it, so a health figure cannot be faked from outside. Because they are ordinary tags, the figures can also be trended next to process values, and later raise alarms through the same alarm engine.
For the connected PLCs, the history comes from their heartbeats on the broker, which need no credential. The workspace also reads each PLC’s health snapshot live, with the viewer’s own credential, so a PLC shows a viewer only what that viewer may see.
What comes next
Section titled “What comes next”The observability strategy plans further phases: OpenTelemetry traces on the command path (linked to the eaxPLC cycle recorder), $sys system alarms on these figures, an IEC 62443 event catalogue with TLS syslog, and fleet roll-up through eaxCloud (in development, early access 2027).