Skip to main content

Health Checks

To successfully run the Business Intelligence, you need Grafana instance and Business Engine.

Depends on the configuration, Grafana might take longer time to launch than the Business Engine. This scenario may lead to the failure of the startup health check. Simply put, if the Business Engine does not find Grafana running, it shuts itself down.

To avoid this false health check failure, we added timing parameters that determine how long the Business Engine waits before checking Grafana's active status using Grafana token and URL to connect to.

By default, the waiting is 5 seconds. You can configure that by using the parameters below.

##
## Service Account
## - Viewer permission is required to access dashboards
## - Editor permission is required to access dashboards and add Annotations
##
GRAFANA_TOKEN=SERVICE-ACCOUNT-TOKEN

##
## Grafana HTTP API
##
GRAFANA_URL=http://grafana:3000

##
## Grafana Health-Check timeout, ms
## Waiting for Grafana availability for (Timeout * Number of Retries / 1000 ) seconds
##
GRAFANA_HEALTH_CHECK_TIMEOUT=1000

##
## Grafana Health-Check number of retries
##
GRAFANA_HEALTH_CHECK_RETRY=5