ores.telemetry.service

Table of Contents

1. Diagram

ores.telemetry.service component diagram

Figure 1: ores.telemetry.service

2. Summary

ores.telemetry.service is the NATS service entrypoint that receives log records from other services and persists them to the telemetry database. It registers NATS handlers for log ingestion, runs the event loop, and forwards records to ores.telemetry.database for storage.

3. Inputs

  • Configuration file: NATS server URL, PostgreSQL connection string.
  • NATS messages on the six telemetry.v1.> subjects: log entries published by wrapper nodes, heartbeats from every service, and the four queries.
  • NATS server and stream samples the service polls from the NATS HTTP monitoring API.

4. Outputs

  • Log records, service samples and NATS samples persisted to the ores_telemetry schema via ores.telemetry.database.
  • Replies to the four query subjects.

5. Entry points

  • src/main.cpp, src/app/, src/config/, src/messaging/.

6. Dependencies

  • ores.telemetry.database, ores.telemetry.core, ores.service, ores.nats, ores.logging, nats.c.

7. See also

Emacs 29.3 (Org mode 9.6.15)