prometheus-logstash-exporter
prometheus-logstash-exporter copied to clipboard
[Query]
Can I get sample queries which we can put for the rules like ?
Thanks Senthil.
Hi @senthil13 .
My apologize, but I am not sure, what you want?
All exposed metrics from exporter you can find on his endpoint. Looks like (data from my devel k8s cluster):
$ curl http://localhost:9198/metrics
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 2.0595e-05
go_gc_duration_seconds{quantile="0.25"} 6.5335e-05
go_gc_duration_seconds{quantile="0.5"} 8.9985e-05
go_gc_duration_seconds{quantile="0.75"} 0.00020829
go_gc_duration_seconds{quantile="1"} 0.007085562
go_gc_duration_seconds_sum 0.058868078
go_gc_duration_seconds_count 171
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 9
# HELP go_info Information about the Go environment.
# TYPE go_info gauge
go_info{version="go1.18.3"} 1
...
# HELP logstash_events_duration_in_millis
# TYPE logstash_events_duration_in_millis gauge
logstash_events_duration_in_millis 178536
# HELP logstash_events_filtered
# TYPE logstash_events_filtered gauge
logstash_events_filtered 117196
# HELP logstash_events_in
# TYPE logstash_events_in gauge
logstash_events_in 117196
# HELP logstash_events_out
# TYPE logstash_events_out gauge
logstash_events_out 117196
...
If I am wrong, please, be more descriptive or mention some examples. Thank you!