Skip to content

Monitoring

Every service of the Platform serves Prometheus metrics, says it is alive on the message bus, and shows up on the console’s Platform health page.

Each HTTP service serves /metrics on its own port: the api on 8080, identity 8081, workbench 8082, logs 8083, assistant 8084, MCP 8085, HSM 8086, vault 8087, proxy 8088. The workers (simulator, runner, load generator, traffic) serve it on ISO8583SIM_PLATFORM_METRICS_PORT, which the Compose file sets to 9100. These ports are for the install’s own network: the web service proxies /api only, so nothing on the public address serves metrics.

deploy/monitoring/prometheus.yml is a scrape configuration for an install from the Compose file; run Prometheus on the same Docker network, or copy the targets. Every service exports:

  • process_cpu_seconds_total, process_resident_memory_bytes, process_open_fds, process_start_time_seconds;
  • platform_info{service, version};
  • bus_messages_total{direction}: messages published to (out) and taken from (in) the bus;
  • on an HTTP service, http_requests_total{method, route, status} and the histogram http_request_seconds{method, route}.

And each its own: runs_total{status} (api), simulator_responses_total{outcome} (simulator), runner_steps_total{status} (runner), loadgen_messages_total{direction} (load generator), identity_audit_events_total{action} (identity). No label carries a card number, a user or a name a customer typed.

deploy/monitoring/grafana-platform.json is a Grafana dashboard to import: request rate, error rate and p95 latency per HTTP service, bus traffic, runs and responses, and memory per process.

Every service sends OpenTelemetry traces to a collector once the install names one. Set ISO8583SIM_PLATFORM_TRACES_ENDPOINT to the collector’s OTLP/HTTP address (http://otel-collector:4318 is enough; /v1/traces is added) in the .env file of an install from the Compose file, and every service picks it up on its next start; the OpenTelemetry variables OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_EXPORTER_OTLP_TRACES_ENDPOINT work too. A hosted collector that wants a header takes ISO8583SIM_PLATFORM_TRACES_HEADERS=Authorization=Bearer <token> (key=value pairs, comma separated); the support bundle masks it like a secret. The Platform page shows which instances are sending.

What becomes a span: every HTTP request, named by its route as the service declares it (POST /runs, as the metrics label it) with the method, the full path, the route and the status; every bus message a service handles for another, in the trace the message carries, so a run reads as one tree across the api, the runner, the HSM, the vault and the simulated hosts; the run itself and each of its steps, with the step’s name and status; every database statement, by operation only. Attributes carry ids, kinds and outcomes: never field values, card numbers, users, request bodies or statement text.

Two ratios keep a busy install from flooding the collector. ISO8583SIM_PLATFORM_TRACES_SAMPLE (default 1.0) is the share of requests, runs and bus work that start a trace; children follow their parent, so a trace is whole or absent. ISO8583SIM_PLATFORM_TRACES_MESSAGES (default 0.01) is the share of the messages simulated hosts answer and the load generator sends that get a trace of their own, linked to the run that caused them: a load test at 10,000 messages a second then sends 100 traces a second, each with the MTI and the response code.

deploy/monitoring/otel-collector.yaml is an OpenTelemetry Collector configuration for an install from the Compose file: it receives OTLP/HTTP from the services and forwards to Grafana Tempo or Jaeger, whichever the operator runs; the comments say what to change. Spans are batched and sent every two seconds; a collector that can’t keep up loses spans at the services’ queue, logged once, never slowing a host.

The console’s Platform page (under Settings) shows the api’s own checks (database, bus) and every running instance of every service: its version, when it started, and when it was last heard from. A service says it is alive on the bus every five seconds; one not heard from for fifteen is shown as gone. The same list is at GET /api/platform/services; GET /api/health answers 503 when the api’s database or bus is down, for a load balancer’s check.

The Compose file’s own health checks still decide when a container is restarted; this page is for the people running the install.