Skip to content

Add actuator health endpoint to app starter#737

Merged
yinan-symphony merged 1 commit intofinos:mainfrom
yinan-symphony:feature/health-check
Dec 9, 2022
Merged

Add actuator health endpoint to app starter#737
yinan-symphony merged 1 commit intofinos:mainfrom
yinan-symphony:feature/health-check

Conversation

@yinan-symphony
Copy link
Copy Markdown
Contributor

The health endpoint uses the HealthService to provide the core components health status, as well as the DatafeedLoop running process status, if the running process counter is not updated in a fixed time range, the process is considered as 'DOWN'.

Description

Closes #[ISSUE NUMBER]

Please put here the intent of your pull request.

Dependencies

List the other pull requests that should be merged before/along this one.

Checklist

  • Referenced an issue in the PR title or description
  • Filled properly the description and dependencies, if any
  • Unit/Integration tests updated or added
  • Javadoc added or updated
  • Updated the documentation in docs folder

@yinan-symphony yinan-symphony force-pushed the feature/health-check branch 7 times, most recently from 371b8f6 to ca50ad9 Compare December 8, 2022 15:41
The health endpoint uses the HealthService to provide the core
components health status, as well as the DatafeedLoop running process
status, if the running process counter is not updated in a fixed time
range, the process is considered as 'DOWN'.
Comment on lines +142 to +149
management:
endpoint:
web:
exposure:
include: 'symphonyBdk'
health:
show-details: "ALWAYS"
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need maybe to update configuration.md too with this new added config: https://github.com/finos/symphony-bdk-java/blob/main/docs/configuration.md

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just check this configuration.md content, il looks like it s more like BDK configuration only, if we put this into configuration.md, i feel that it s kinda mix between BDK and spring boot config, especially considering that this config is in app-starter only.

*
* @return timestamp value in long
*/
long lastPullTimestamp();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to expose this method in DF loop api to users.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then how to get this timestamp in a generic way ? another way is to move the health check method inside the DatafeedLoop, but i would say expose a last pull timestamp method in this interface is more relevant than exposing a health check method.

Copy link
Copy Markdown
Contributor

@symphony-soufiane symphony-soufiane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few comments.

@yinan-symphony yinan-symphony merged commit 32b7d9a into finos:main Dec 9, 2022
@symphony-soufiane symphony-soufiane linked an issue Dec 19, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Health Check

2 participants