The invention provides a Promise-based AI platform resource monitoring method and
system, and relates to the technical field of resource monitoring, and the Promise-based AI platform resource monitoring method comprises the following steps: creating resource objects of a container management platform, and configuring a resource
label for each resource object; a pre-configured
label index set is used for screening resource labels meeting the monitoring requirement,
list connection association
processing is carried out on the screened resource labels and resource monitoring indexes provided by the
open source container
monitoring tool, and a wide
list is generated; aggregation
processing is carried out on the resource monitoring indexes in the wide table, and the total
resource use amount under the preset query dimension is calculated; and a global
index mapping rule base is constructed, and standardized access of different monitoring devices is adapted by configuring an
adaptation layer. According to the method, the complexity caused by different
equipment monitoring plug-ins is shielded through the unified query
adaptation layer, the code quantity and complexity of a query interface are reduced, and the
maintainability and
readability of codes are improved.