Contrail Insights Platform Health
All the Contrail Insights Platform components can be monitored from the Contrail Insights Platform Health page. To access this page, click the menu in the top right corner, and from the drop down list, select Platform Health. This page provides useful data such as connection statuses, usage statistics, and errors that provide an overview of the health of the components.
This page shows relevant health statistics for each of the Contrail Insights Platform components, namely, Controller, OpenStack Adapter, Agent, DataManager, Mongo, Redis, and HAProxy.
In addition to the UI, these health statistics can also be obtained using APIs.
Contrail Insights Controller
Health panel for Contrail Insights controller shows the RedisConnectionStatus, MongoConnectionStatus, ProcessStatuses, CeleryTaskStatus. For ProcessStatuses, the time the process last sent an update is tracked, hence checking liveness of the process, and errors logged by the process since last update.
API:
http://<appformix-vip>:<appformix-port>/appformix/controller/v2.0/controller_health
The response is a task_id
.
Using this task_id
, call the following
endpoint to get the result:
http://<appformix-vip>:<appformix-port>/appformix/controller/v2.0/task/<task_id>/result
Contrail Insights OpenStack Adapter
Similar to the Controller panel, OpenStack Adapter panel shows the statuses of various processes and any error logs.
API:
http://<appformix-vip>:<appformix-port>/appformix/openstack_adapter/v2.0/status
Contrail Insights Agent
The Contrail Insights Agent panel shows all the regular host level metrics along with host's Health and Risk.
Other Components
The captured metrics for other components can be seen on the UI, as shown in the following figures.
API:
Use the /data/metrics
API to collect
all the data for the platform node for the above plug-ins. To get
data for a specific platform node, note its host_id
. Then enter the following in your browser:
http://<appformix-vip>:<appformix-port>/appformix/controller/v2.0/data/metrics?start=<start_time_in_ms>&end=<end_time_in_ms>&entity_type=host&entity_id=<host_id>
The DataManager statistics can also be queried using:
http://<appformix-vip>:<appformix-port>/version/2.0/health_status