Module health Endpoints and K8s probes
Condition Monitoring offers 3 endpoints for each of its microservices: 018 Module Health Verification Endpoints and K8S Probes
-
Health endpoint: Will be used by monitoring to determine the health state of a microservice. The health endpoint will also include the states of the Liveness and Readiness probes.
-
Readiness endpoint: Will be polled by Kubernetes to check, if a microservice (pod) can accept traffic.
-
Liveness endpoint: Will be polled by Kubernetes to check, if a microservice’s internal state is valid.
If the modules get installed behind a reverse proxy i.e. /cm/* then the prefix has to be prepended to the given paths (i.e. /health gets to /cm/health).
Overall status
-
Health Endpoint
-
Endpoint Address: /health
-
Expected Status Code: HTTP Status 200
-
Failure Status Code: HTTP Status 503
Services
Condition Monitoring Core
| Endpoint | Description |
|---|---|
Health endpoint |
200 when service available Health endpoint is showing some details about the RabbitMQ, Database, Deviation Processor (SMDP), MACMA, MDM and Portal connection issue (only for authenticated users). |
Liveness endpoint |
200 The Micro service will still be alive, the internal liveness state is valid and do not need to get restarted. |
Readiness endpoint |
RabbitMQ, Deviation Processor, Portal, MDM 200
Database , MACMA, InfluxDB 503
|
| Dependency | Use cases | Impact |
|---|---|---|
RABBITMQ |
Lost connection to RabbitMQ. Reasons:
|
|
INFLUXDB |
Lost connection to InfluxDB. Reasons:
|
|
DATABASE |
Lost connection to the Database. Reasons:
|
|
MACMA |
Lost connection to MACMA. Reasons:
|
|
PORTAL |
Lost connection to Portal. Reasons:
|
|
MDM |
Lost connection to MDM. Reasons:
|
|
SMDP |
Lost connection to Smdp. Reasons:
|
|
Rule Service App
| Endpoint | Description |
|---|---|
Health endpoint |
200 when service available
|
Liveness endpoint |
200
|
Readiness endpoint |
RabbitMQ, Kafka , MDM 200
Database , MACMA 503
|
| Dependency | Use cases | Impact |
|---|---|---|
RABBITMQ |
Lost connection to RabbitMQ. Reasons:
|
|
Kafka |
Lost connection to Kafka. Reasons:
|
|
DATABASE |
Lost connection to Database. Reasons:
|
|
MACMA |
Lost connection to MACMA. Reasons:
|
|
MDM |
Lost connection to MDM. Reasons:
|
|
Stateful Function Executor
| Endpoint | Description |
|---|---|
Health endpoint |
200 when service available.
|
Liveness endpoint |
200
|
Readiness endpoint |
200
503
|
| Dependency | Use cases | Impact |
|---|---|---|
RABBITMQ |
Lost connection to RabbitMQ. Reasons:
|
|
INFLUXDB |
Lost connection to InfluxDB. Reasons:
|
|
Rule Value Aggregator
| Endpoint | Description |
|---|---|
Health endpoint |
200 when service available.
|
Liveness endpoint |
503
200
|
Readiness endpoint |
503 While connection is lost to Kafka and Kafka Streams is not in the RUNNING state.
200 While service is connected to Kafka and Kafka Streams is in the RUNNING state.
|
| Dependency | Use cases | Impact |
|---|---|---|
Kafka |
Lost connection to Kafka. Reasons:
|
|
Rule Value Provider
| Endpoint | Description |
|---|---|
Health endpoint |
200 when service available.
|
Liveness endpoint |
503
200
|
Readiness endpoint |
503 While connection is lost to Kafka and Kafka Streams is not in the RUNNING state.
200 While service is connected to Kafka and Kafka Streams is in the RUNNING state.
|
| Dependency | Use cases | Impact |
|---|---|---|
Kafka |
Lost connection to Kafka. Reasons:
|
|
Rule Result Aggregator
| Endpoint | Description |
|---|---|
Health endpoint |
200 when service available.
|
Liveness endpoint |
503
200
|
Readiness endpoint |
503 While connection is lost to Kafka and Kafka Streams is not in the RUNNING state.
200 While service is connected to Kafka and Kafka Streams is in the RUNNING state.
|
| Dependency | Use cases | Impact |
|---|---|---|
Kafka |
Lost connection to Kafka. Reasons:
|
|
Rule Function Executor
| Endpoint | Description |
|---|---|
Health endpoint |
200 when service available.
|
Liveness endpoint |
503
200
|
Readiness endpoint |
503 While connection is lost to Kafka and Kafka Streams is not in the RUNNING state.
200 While service is connected to Kafka and Kafka Streams is in the RUNNING state.
|
| Dependency | Use cases | Impact |
|---|---|---|
Kafka |
Lost connection to Kafka. Reasons:
|
|