Logstash 5.0 started with an API that outputs metrics and status monitoring of its own processes. review
When you run Logstash, it automatically captures runtime metrics that can be used to monitor the health and performance of your Logstash deployment.
Address:The hyperlink login is visible.
Metrics collected by Logstash include:
Logstash node information, such as pipeline settings, operating system information, and JVM information. Plugin information, including a list of installed plugins. Node statistics such as JVM statistics, process statistics, event-related statistics, and pipeline runtime statistics.
You can retrieve these metrics using the monitoring API provided by Logstash. These APIs are available by default and do not require any additional configuration.
Node Info API:The hyperlink login is visible. Plugins Info API:The hyperlink login is visible. Node Stats API:The hyperlink login is visible. Hot Threads API:The hyperlink login is visible.
jvm
Gets JVM stats, including stats about threads, memory usage, garbage collectors, and uptime.
process
Gets process stats, including stats about file descriptors, memory consumption, and CPU usage.
events
Gets event-related statistics for the Logstash instance (regardless of how many pipelines were created and destroyed).
pipelines
Gets runtime stats about each Logstash pipeline.
reloads
Gets runtime stats about config reload successes and failures.
os
Gets runtime stats about cgroups when Logstash is running in a container.
View statistics
The following request returns a JSON document containing event-related statistics for your Logstash instance:
{ "host" : "DESKTOP-OL3CEUC", "version" : "7.10.2", "http_address" : "127.0.0.1:9600", "id" : "1aa23f91-e00b-4667-8a2c-65a3b0d85c81", "name" : "DESKTOP-OL3CEUC", "ephemeral_id" : "17960ea9-6cc1-44d9-85a9-83a718ba4682", "status" : "green", "snapshot" : false, "pipeline" : { "workers" : 8, "batch_size" : 125, "batch_delay" : 50 }, "events" : { "in" : 106160, "filtered" : 106160, "out" : 106160, "duration_in_millis" : 113552, "queue_push_duration_in_millis" : 6303 }
} (End)
|