Metrics, health and logs#
Besides the console, Empowerment Center can be watched from your organization's tools: a container orchestrator that asks whether the server is alive, Prometheus collecting its figures and a syslog or a SIEM receiving its logs. This page explains what ECenter exposes for each one and how to enable it.
Before you start#
- What is configured here are environment variables of the backend (see Configuration) and it applies on restarting it.
/actuatordoes not go through the frontend's proxy, which only sends/api/,/embed/,/.well-known/oauth-protected-resource/and the single sign-on routes to the backend. The probes and Prometheus reach the backend directly, over the internal network.
Health#
| Route | What for | Session |
|---|---|---|
/actuator/health |
The status of the server and the own database | No |
/actuator/health/liveness |
Liveness probe for an orchestrator: if it fails, the container has to be restarted | No |
/actuator/health/readiness |
Readiness probe: if it fails, the load balancer does not send it requests | No |
/api/about |
The product and the version, without session or license. It is what the healthcheck of deploy/compose.yaml checks |
No |
Client databases do not count towards health: one not responding opens the Client DB unreachable alert, but the server keeps serving the other connections and must not leave the load balancer.
With Docker Compose, docker compose -f deploy/compose.yaml ps shows the services as healthy when they are ready.
The metrics#
ECenter publishes its figures with Micrometer. Its own ones begin with ecenter. and carry only low-cardinality tags (the job class, the outcome, the severity…), never logins, names, connections or identifiers.
| Metric | Type | Tags | What it measures |
|---|---|---|---|
ecenter.jobs.running, ecenter.jobs.queued |
Gauge | class |
Jobs running and queued, per class |
ecenter.sessions.active |
Gauge | — | Open sessions |
ecenter.workbooks.locked |
Gauge | — | Workbooks open for writing |
ecenter.alerts.open |
Gauge | severity |
Open operational alerts, per severity |
ecenter.connections.unreachable |
Gauge | — | Connections whose database does not respond |
ecenter.security.logins |
Counter | outcome (success, failure) |
Sign-ins |
ecenter.querying.queries |
Timer | outcome (success, failure, canceled) |
Statements against the client databases |
ecenter.distribution.deliveries |
Counter | status, reason |
Deliveries of subscriptions |
ecenter.distribution.evaluations |
Counter | result |
Evaluations of data alerts |
ecenter.distribution.subscriptions.active |
Gauge | — | Active subscriptions |
ecenter.distribution.runs.running |
Gauge | kind (subscription, alert) |
Sends and evaluations in progress |
ecenter.distribution.alerts |
Gauge | state |
Instances of active data alerts, per state |
ecenter.api.requests |
Counter | surface (query, mcp), outcome |
Requests to the query API and the MCP |
ecenter.api.rejections |
Counter | surface, reason |
Rejected requests (limit, heavy query, hidden columns…) |
ecenter.api.queries |
Timer | outcome, reason |
Finished API queries |
ecenter.api.runs.active |
Gauge | — | API queries in progress |
ecenter.api.tool.calls |
Counter | tool, outcome |
Calls to the MCP tools |
ecenter.credentials.active, ecenter.credentials.expiring |
Gauge | scope |
Valid service credentials and those expiring within 30 days |
ecenter.embedding.tokens.issued, .redeemed, .rejected |
Counter | source, stage, reason |
Embedding tokens |
ecenter.embedding.sessions.active |
Gauge | — | Live embedded sessions |
ecenter.render.renders |
Counter | result |
Drawings of the headless browser |
ecenter.render.duration |
Timer | — | How long each drawing takes |
ecenter.render.active |
Gauge | — | Drawings in progress |
ecenter.provisioning.requests |
Counter | resource, method, outcome |
SCIM requests from the identity provider |
ecenter.metadata.impact |
Timer | outcome |
Impact analyses when saving the metadata |
ecenter.usage-index.pending |
Gauge | module |
Objects left to re-index after an upgrade |
ecenter.metadata.groupings.loads |
Counter | outcome |
Loads of the groupings' work tables |
ecenter.metadata.exchange |
Counter | kind, outcome |
Exports, analyses, imports and restores of the metadata |
ecenter.portal.layout.restores |
Counter | outcome |
Restores of template backups |
ecenter.bookmarks |
Gauge | scope, visibility |
Bookmarks |
There are also those of Spring Boot: JVM (memory, garbage collection, threads), process, HTTP requests per route template and the own database's pool. The client databases' pools publish no metrics: they are seen in the console.
Counters are per instance and start at zero when it starts. With several instances, collect each one.
The management port for Prometheus#
Prometheus collects the metrics in its format at /actuator/prometheus, which only responds on a separate management port, meant for the internal network and turned off by default.
Enable it#
- Choose a port you do not publish outside the ECenter network, for example
9090. -
Set it in the backend's environment file:
To bind it to a single interface, add
MANAGEMENT_SERVER_ADDRESSwith its address. -
Restart the backend.
-
Check it from the internal network:
The result is text with lines such as
ecenter_jobs_running{class="cube"} 2.0(job classes go in lowercase in theclasstag).
How Actuator changes with the management port#
| Without a management port | With a management port | |
|---|---|---|
/actuator/prometheus |
Responds to nobody | Without a session, on the management port |
/actuator/health and its probes |
Without a session, on the application port | Without a session, on the management port |
/actuator/info |
Without a session, on the application port | Without a session, on the management port |
/actuator/metrics and the rest |
With a System administration session | Denied (403) |
/actuator on the application port |
Yes | It ceases to exist |
The management port has no cookies, CSRF or sessions, and the application does not come through it (/api/ does not exist there). With it active, also point the orchestrator's probes at that port: http://<instance>:<port>/actuator/health/liveness and /readiness.
Configure Prometheus#
scrape_configs:
- job_name: ecenter
metrics_path: /actuator/prometheus
static_configs:
- targets: ['ecenter-1:9090', 'ecenter-2:9090']
The names change to the Prometheus format: ecenter.jobs.running is ecenter_jobs_running, and counters carry _total (ecenter_api_requests_total).
The logs#
The backend writes its log to standard output. With Docker Compose it is read with:
deploy/compose.yaml makes the logs rotate: Docker's json-file driver with at most 5 files of 50 MB per service. Without rotation, the logs would grow without limit, because each sign-in is a line. If your organization collects logs with journald or syslog, change the driver in the x-logging anchor of deploy/compose.yaml, and rotation then becomes that system's.
Loggers of interest#
| Logger | What it writes | Default level |
|---|---|---|
ecenter.operations.alert |
One line per operational alert that opens (ERROR or WARN) or is resolved (INFO), and the startup |
Active |
ecenter.audit |
One line per audit entry, in ecenter.audit.<category> |
info |
ecenter.audit.query |
One line per query to a client database | warn (off) |
ecenter.audit.job |
One line per finished job | warn (off) |
The levels are changed like any Spring Boot property. For example, to also write the queries to the log:
The audit lines and how to take them to a syslog or a SIEM are explained in the Audit chapter.
What to look for in the log#
The server log is written in Spanish; these are the lines as they appear.
- On startup, the installation identifier (“Instalación …”), which is the one Action Ware asks for the license.
- An internal failure of a request: “Fallo interno en una petición de …” with the stack trace. It is what lies behind a 500
INTERNAL_ERRORor a job that failed with an internal error. - Mail not configured: “Hay avisos de operación por correo pero no hay servidor de correo (spring.mail.host)”, only once.
- A notice that could not be sent: “No se pudo avisar por correo: …”.