Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding Additional docs
  • Loading branch information
arunvasudevan committed Apr 5, 2020
commit 2ff1b5678f1892a3728c5cac75b0c8a77f8393e9
9 changes: 9 additions & 0 deletions metadata-jobs/mce-consumer-job/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ the application directly from command line after a successful [build](#build):
```
./gradlew :metadata-jobs:mce-consumer-job:bootRun
```
## Endpoints
Spring boot actuator has been enabled for MCE Application.
`healthcheck`, `metrics` and `info` web endpoints are enabled by default.

`healthcheck` - http://localhost:9090/actuator/health
`metrics` - http://localhost:9090/actuator/metrics

To retrieve a specific metric - http://localhost:9090/actuator/metrics/kafka.consumer.records.consumed.total

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.linkedin.metadata.kafka.config;

import org.apache.http.client.methods.HttpGet;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand All @@ -23,10 +22,4 @@ public BaseRemoteWriterDAO remoteWriterDAO() {
Client restClient = DefaultRestliClientFactory.getRestLiClient(gmsHost, gmsPort);
return new RestliRemoteWriterDAO(restClient);
}

@Bean
public HttpGet healthCheckHttpRequest() {
return new HttpGet("http://" + gmsHost + ":" + gmsPort + "/health");
}

}