Skip to main content
Version: Next

Audit Service

The Audit Service is a pivotal component within navida pro ecosystem, designed to capture, manage, and rectify audit events generated by various services. This service plays a crucial role in maintaining transparency, accountability, and data integrity across the system. Not only does it log critical activities and interactions within the application, but it also offers a mechanism to address and rectify errors that might arise during the process.

Class diagram

Sequence Diagram

Process diagram

  • Frontend services (FE) logging exceptions through Kong and WAF to the Audit Service.
  • Backend services (BE) logging exceptions through the Audit Library, which sends the data to Kafka.
  • Kafka then forwards the exception data to the Audit Service.
  • The Audit Service pushes the exception data to Prometheus and logs it to an audit PostgreSQL database.
  • The audit service is implemented in Java Spring Boot.

Process diagram of pushing exception data from audit service to Prometheus:

This diagram shows:

  • An exception occurring in the audit service.
  • The exception being logged.
  • The logged exception data being pushed to Prometheus.
  • The audit service exposing a metrics endpoint.
  • Prometheus scraping the metrics from the audit service.