metadata-jobs/mae-consumer-job/README.md
The Metadata Audit Event Consumer is a Spring job which can be deployed by itself, or as part of the Metadata Service.
Its main function is to listen to change log events emitted as a result of changes made to the Metadata Graph, converting changes in the metadata model into updates against secondary search & graph indexes (among other things)
Today the job consumes from two important Kafka topics:
MetadataChangeLog_Versioned_v1MetadataChangeLog_Timeseries_v1Where does the name Metadata Audit Event come from? Well, history. Previously, this job consumed a single
MetadataAuditEventtopic which has been deprecated and removed from the critical path. Hence, the name!
Follow the main developer guide to set up your development environment and install the required dependencies.
Metadata Audit Event Consumer Job is already built as part of top level build:
./gradlew build
However, if you only want to build MAE Consumer Job specifically:
./gradlew :metadata-jobs:mae-consumer-job:build
Before starting Metadata Audit Event Consumer Job, you need to make sure that all backend services, including Kafka and ElasticSearch, are up and running. If GMS is healthy, then Kafka and ElasticSearch should be healthy as well.
The quickest way to try out Metadata Audit Event Consumer Job is running the Docker image.
If you do modify things and want to try it out quickly without building the Docker image, you can also run the application directly from command line after a successful build:
MCL_CONSUMER_ENABLED=true ./gradlew :metadata-jobs:mae-consumer-job:bootRun
Spring boot actuator has been enabled for MAE Application.
healthcheck, metrics and info web endpoints are enabled by default.
healthcheck - http://localhost:9091/actuator/health
metrics - http://localhost:9091/actuator/metrics
To retrieve a specific metric - http://localhost:9091/actuator/metrics/process.uptime