Skip to content

[HealthEndpoint] Multiple Data Sources Support #2557

@sezal98

Description

@sezal98

runtime.data-source.health has a field called name. This is an optional field.
In case this field is supplied, we use this as the identifier or moniker to our data source. In case its not, we use the DB Type.

In case of multiple data sources
Case 1: Data sources are of different DB types
Case 2: Data sources are of same DB type
In both these scenarios, we use same DBIdentifier = runtime.data-source.health.name ?? runtime.data-source.database-type.
Here we dont care if the DB type is same, we would simply have two entries in the checks output array with the same DB Type.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions