CN-122001765-A - Index pushing method, electronic equipment and computer readable storage medium
Abstract
The application discloses an index pushing method, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps of: the method comprises the steps of receiving index sending instructions, generating index names of indexes according to private index naming template configuration information of each index sender, registering the indexes based on the index names in the private index naming template configuration information to obtain each index, and pushing the corresponding index through each index sender. Therefore, the problem of index registration failure caused by index name conflict can be solved.
Inventors
- ZHANG LU
Assignees
- 浙江大华技术股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251226
Claims (10)
- 1. The index pushing method is characterized by comprising the following steps of: generating index names of the indexes according to private index naming template configuration information of the index transmitters in response to receiving the index transmission instruction; Performing index registration based on index names generated by the configuration information of each private index naming template to obtain each index; And pushing the corresponding index through each index transmitter.
- 2. The index pushing method according to claim 1, wherein the step of generating the index name of each index from the private index naming template configuration information of each index sender includes: acquiring an application identifier from private index naming template configuration information of the index transmitter; And determining the index name of the corresponding index according to the application identifier.
- 3. The method for pushing an index according to claim 1, wherein the index name includes a task configuration item, and the step of generating the index name of each index according to the private index naming template configuration information of each index sender includes: Acquiring task identifiers of all tasks from private index naming template configuration information of all index transmitters; and determining a task configuration item of the corresponding task based on the task identifier.
- 4. The method for pushing an index according to claim 1, wherein the index name includes an operator configuration item, and the step of generating the index name of each index according to the private index naming template configuration information of each index sender includes: acquiring operator identifiers of operators from private index naming template configuration information of each index transmitter; And determining operator configuration items of the corresponding operators based on the operator identifiers.
- 5. The method for pushing the index according to claim 1, wherein the step of registering the index based on the index name in the configuration information of each private index naming template to obtain each index includes: Creating an index management group and a scope component set of the index management group according to configuration information of each private index naming template, wherein the scope component set comprises a scope component; and registering the indexes by taking each scope component in the scope component set of each index management group as the index name to obtain each index.
- 6. The method of claim 5, wherein the private index naming template configuration information includes an application identifier, and wherein the creating an index management group and a set of scope components of the index management group based on each private index naming template configuration information comprises: creating the index management group based on the application identifier; and determining each scope component according to the configuration information of the private index naming template of each index sender, and forming a scope component set of the index management group by each scope component.
- 7. The index pushing method according to claim 1, wherein the step of pushing each index by each index transmitter includes: responding to the private index naming template configuration information representation of the index transmitter, and carrying out index pushing based on the modified private index naming template configuration information; and responding to the private index naming template configuration information of the index transmitter to indicate that no change exists, and pushing the index based on the default private index naming template configuration information.
- 8. The index pushing method according to claim 1, wherein after the step of pushing the corresponding index by each index transmitter, the method further comprises: And in response to completion of the task, storing the configuration items of the task, wherein the configuration items of the task comprise private index naming template configuration information of the index transmitter corresponding to the task.
- 9. An electronic device comprising a memory and a processor, wherein the memory stores program instructions and the processor invokes the program instructions from the memory to perform the method of any of claims 1-8.
- 10. A computer readable storage medium comprising program data stored thereon, which when executed by a processor is adapted to carry out the method according to any one of claims 1-8.
Description
Index pushing method, electronic equipment and computer readable storage medium Technical Field The present invention relates to the field of big data processing technologies, and in particular, to an index pushing method, an electronic device, and a computer readable storage medium. Background With the rapid development of information technology, distributed systems have become the dominant trend. However, due to the complexity of the distributed system, it is difficult for a user to quickly determine the failure point of a task and optimize task performance only through the job log. In order to facilitate a user to quickly locate a job fault point, optimize job configuration and the like, a flink open source framework is provided, and can collect job running states, detect job resource consumption and the like for the user in real time. However, the current flink open source framework may need to monitor hundreds of indexes at the same time, so that the indexes are easy to collide, and the indexes cannot be normally pushed to the user. Disclosure of Invention The application mainly solves the technical problem of providing an index pushing method, electronic equipment and a computer readable storage medium, which can improve the reliability of index transmission. In order to solve the technical problems, the technical scheme adopted by the application is that the index pushing method is provided, and the index pushing method comprises the steps of responding to an index sending instruction, generating index names of indexes according to private index naming template configuration information of each index sender, registering the indexes based on the index names generated by the private index naming template configuration information to obtain each index, and pushing the corresponding index through each index sender. In order to solve the technical problem, the application adopts another technical scheme that the electronic equipment comprises a memory and a processor, wherein the memory stores program instructions, and the processor invokes the program instructions from the memory to execute the index pushing method. In order to solve the above technical problem, another technical solution adopted by the present application is to provide a computer readable storage medium comprising stored program data, wherein the program data is used for implementing the above indicator pushing method when being executed by a processor. The index pushing method of the application responds to receiving the index sending instruction, generates index names of the indexes according to the private index naming template configuration information of each index sender, registers the indexes based on the index names of the private index naming template configuration information to obtain each index, and carries out pushing processing on the corresponding index through each index sender. Therefore, different private index naming template configuration information is established for different index transmitters, different index names can be generated based on the different private index naming template configuration information, differential management is realized, and the problem of index registration failure caused by index name conflict is solved. Drawings For a clearer description of an embodiment of the application or of the solutions of the prior art, the drawings that are needed in the embodiment will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art, in which: FIG. 1 is a flow chart of an exemplary embodiment of an indicator pushing method according to the present application; FIG. 2 is a flowchart of an exemplary embodiment of step S110 in the indicator pushing method shown in FIG. 1; FIG. 3 is a block diagram of an exemplary embodiment of an indicator pushing method according to the present application; FIG. 4 is a flow chart of an exemplary embodiment of an index storage process shown in the present application; FIG. 5 is a flowchart illustrating an exemplary embodiment of an indicator pushing method according to the present application; FIG. 6 is a schematic diagram of an exemplary embodiment of an indicator pushing device according to the present application; FIG. 7 is a schematic diagram of an embodiment of an electronic device according to the present application; Fig. 8 is a schematic structural diagram of an embodiment of a computer readable storage medium provided by the present application. Detailed Description The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are for purposes of illus