Method and system for customizing Prometheus to collect log information indexes
The invention discloses a method and a system for customizing Prometheus log information collection indexes. The method comprises the following steps: configuring a configuration file of a log collector, and setting a name, a position and an output component of a log file to be collected; building a...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method and a system for customizing Prometheus log information collection indexes. The method comprises the following steps: configuring a configuration file of a log collector, and setting a name, a position and an output component of a log file to be collected; building a Kafka cluster, and receiving a log message pushed by the log collector; log content in the log message is analyzed, and an analysis result is written into Redis; the method comprises the following steps: processing a log analysis result in Redis through a user-defined Prometheus extender, outputting a user-defined log collection index to Prometheus, collecting the log collection index defined by the Prometheus extender in a timed manner through the Prometheus, and displaying the log collection index in a graphical manner through Grafana. According to the method and the device, the limitation that existing Prometheus can only collect some universal indexes is improved, log information is collected through the user- |
---|